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

Last change on this file was 130478, checked in by larryv@…, 3 years ago

py{24,25,26}-gd: Replace with py27

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# -*- 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
2# $Id: Portfile 130478 2014-12-31 02:14:57Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           python 1.0
7
8github.setup        Solomoriah gdmodule 0.57 v
9name                py-gd
10categories-append   graphics
11maintainers         nomaintainer
12platforms           darwin
13
14description         py-gd is a python wrapper for the GD library
15
16long_description    py-gd is a python wrapper for the graphics library GD \
17                    so you can use python to create/manipulate images \
18                    (png, jpeg) by drawing lines, text, doing flood-fills, \
19                    etc.
20
21checksums           rmd160  93ad30d386737014ff33ac393fe3a304c28f3183 \
22                    sha256  b3da19425f2cdcb8bb219a6cebc2b96b1ae3b8b1fb8a1a97a4154164e9b5516a
23
24python.versions     27
25
26if {${name} ne ${subport}} {
27    patchfiles      patch-Setup.py.diff
28
29    depends_lib-append \
30                    port:gd2 \
31                    port:giflib
32
33    post-patch  {
34        file rename ${worksrcpath}/Setup.py ${worksrcpath}/_Setup.py
35        file rename ${worksrcpath}/_Setup.py ${worksrcpath}/setup.py
36        reinplace "s|PREFIX|${prefix}|g" ${worksrcpath}/setup.py
37    }
38
39    build.env       LDFLAGS="-L${prefix}/lib"
40
41    post-destroot   {
42        xinstall -m 644 -W ${worksrcpath} README gd-ref.html \
43            install_notes.html ${destroot}${prefix}/share/doc/${subport}
44        xinstall -m 644 ${worksrcpath}/gddemo.py \
45            ${destroot}${prefix}/share/doc/${subport}/examples/
46    }
47}
Note: See TracBrowser for help on using the repository browser.