Files
2019-03-23 20:31:04 +11:00

48 lines
1.5 KiB
Tcl

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup github 1.0
PortGroup python 1.0
github.setup Solomoriah gdmodule 0.59 v
revision 1
license Permissive
name py-gd
categories-append graphics
maintainers nomaintainer
platforms darwin
description py-gd is a python wrapper for the GD library
long_description py-gd is a python wrapper for the graphics library GD \
so you can use python to create/manipulate images \
(png, jpeg) by drawing lines, text, doing flood-fills, \
etc.
checksums rmd160 db42ca554886f7de403610abcc05bef0b5dddb41 \
sha256 31ece8f08009610f8dab3bd08efc6d316073edd602d7b374445714c06cb41a5d \
size 76511
python.versions 27
if {${name} ne ${subport}} {
patchfiles patch-setup.py.diff
depends_lib-append \
port:gd2 \
port:giflib
post-patch {
reinplace "s|PREFIX|${prefix}|g" ${worksrcpath}/setup.py
}
build.env LDFLAGS=-L${prefix}/lib
post-destroot {
xinstall -m 644 -W ${worksrcpath} README LICENSE gd-ref.html \
install_notes.html ${destroot}${prefix}/share/doc/${subport}
xinstall -m 644 ${worksrcpath}/demo/gddemo.py \
${destroot}${prefix}/share/doc/${subport}/examples/
}
}