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

Last change on this file was 130350, checked in by jmr@…, 2 years ago

py-pil: remove 24 and 25 subports

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 130350 2014-12-30 04:10:45Z ryandesign@macports.org $
2
3PortSystem      1.0
4PortGroup       python 1.0
5
6name            py-pil
7version         1.1.7
8revision        7
9license         MIT
10maintainers     jmr openmaintainer
11description     Python Imaging Library
12long_description    The Python Imaging Library (PIL) adds image \
13                    processing capabilities to your Python interpreter. \
14                    This library supports many file formats, and \
15                    provides powerful image processing and graphics \
16                    capabilities.
17categories-append   graphics
18platforms       darwin freebsd
19homepage        http://www.pythonware.com/products/pil/
20master_sites    http://effbot.org/downloads/
21distname        Imaging-${version}
22checksums       md5 fc14a54e1ce02a0225be8854bfba478e \
23                sha1 76c37504251171fda8da8e63ecb8bc42a69a5c81 \
24                rmd160 9af570fe100e250a4860314341fe3e6d695d7fde
25
26python.versions 26 27
27
28if {$subport ne $name} {
29    conflicts       py${python.version}-Pillow
30
31    patchfiles      patch-setup.py pil-2009-raclette-fb7ce579f5f9.diff \
32                    patch-PIL-TiffImagePlugin.py.diff \
33                    patch-_imagingft.c.diff
34
35    depends_lib-append  port:freetype \
36                        port:lcms \
37                        port:py${python.version}-tkinter
38   
39    post-patch {
40        reinplace s,__PREFIX__,${prefix},g ${worksrcpath}/setup.py
41    }
42   
43    post-destroot {
44        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${subport}
45        xinstall -m 0644 -W ${worksrcpath} BUILDME CHANGES CONTENTS README \
46            ${destroot}${prefix}/share/doc/${subport}
47    }
48    livecheck.type  none
49} else {
50    livecheck.type  regex
51    livecheck.url   ${homepage}
52    livecheck.regex {Imaging-([0-9\.]+)\.tar\.gz}
53}
Note: See TracBrowser for help on using the repository browser.