source: trunk/dports/python/py-gd/Portfile @ 109415

Last change on this file since 109415 was 109415, checked in by ryandesign@…, 7 years ago

revbump ports that link with libgd in their default configuration to rebuild with gd2 @2.1.0 (libgd.3.dylib) (#39550)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 109415 2013-08-15 06:58:50Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name                    py-gd
7version                 0.56
8revision                1
9categories-append       graphics
10maintainers             nomaintainer
11platforms               darwin
12description             py-gd is a python wrapper for the GD library
13long_description        py-gd is a python wrapper for the graphics library GD \
14                                so you can use python to create/manipulate images \
15                                (png, jpeg) by drawing lines, text, doing flood-fills, \
16                                etc.
17
18homepage                http://newcenturycomputers.net/projects/gdmodule.html
19master_sites    http://newcenturycomputers.net/projects/download.cgi/
20distname                gdmodule-${version}
21checksums               md5     6a6db28a089d4caf5a921cd266a62b3d \
22                                sha1    519a64e14897599d879b82a5f5b0f308a14826e3 \
23                                rmd160  fb3c2e77a59840272d12c786d187b096e1eec53d
24
25python.versions 24 25 26
26
27if {$subport != $name} {
28    patchfiles          patch-Setup.py.diff
29   
30    depends_lib-append  port:gd2 port:giflib
31   
32    post-patch  {
33        file rename ${worksrcpath}/Setup.py ${worksrcpath}/_Setup.py
34        file rename ${worksrcpath}/_Setup.py ${worksrcpath}/setup.py
35        reinplace "s|PREFIX|${prefix}|g" ${worksrcpath}/setup.py
36    }
37   
38    build.env   LDFLAGS="-L${prefix}/lib"
39   
40    post-destroot   {
41        xinstall -m 644 -W ${worksrcpath} README gd-ref.html \
42            install_notes.html ${destroot}${prefix}/share/doc/${subport}
43        xinstall -m 644 ${worksrcpath}/gddemo.py \
44            ${destroot}${prefix}/share/doc/${subport}/examples/
45    }
46}
Note: See TracBrowser for help on using the repository browser.