Permalink
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (35 sloc) 1.57 KB
# -*- 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.57 v
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 93ad30d386737014ff33ac393fe3a304c28f3183 \
sha256 b3da19425f2cdcb8bb219a6cebc2b96b1ae3b8b1fb8a1a97a4154164e9b5516a
python.versions 27
if {${name} ne ${subport}} {
patchfiles patch-Setup.py.diff
depends_lib-append \
port:gd2 \
port:giflib
post-patch {
file rename ${worksrcpath}/Setup.py ${worksrcpath}/_Setup.py
file rename ${worksrcpath}/_Setup.py ${worksrcpath}/setup.py
reinplace "s|PREFIX|${prefix}|g" ${worksrcpath}/setup.py
}
build.env LDFLAGS="-L${prefix}/lib"
post-destroot {
xinstall -m 644 -W ${worksrcpath} README gd-ref.html \
install_notes.html ${destroot}${prefix}/share/doc/${subport}
xinstall -m 644 ${worksrcpath}/gddemo.py \
${destroot}${prefix}/share/doc/${subport}/examples/
}
}