[81303] trunk/dports/python
jmr at macports.org
jmr at macports.org
Thu Jul 28 22:51:49 PDT 2011
Revision: 81303
http://trac.macports.org/changeset/81303
Author: jmr at macports.org
Date: 2011-07-28 22:51:47 -0700 (Thu, 28 Jul 2011)
Log Message:
-----------
unify py*-pil
Modified Paths:
--------------
trunk/dports/python/py-pil/Portfile
Added Paths:
-----------
trunk/dports/python/py-pil/files/patch-PIL-TiffImagePlugin.py.diff
Removed Paths:
-------------
trunk/dports/python/py25-pil/
trunk/dports/python/py26-pil/
trunk/dports/python/py27-pil/
Modified: trunk/dports/python/py-pil/Portfile
===================================================================
--- trunk/dports/python/py-pil/Portfile 2011-07-29 05:38:23 UTC (rev 81302)
+++ trunk/dports/python/py-pil/Portfile 2011-07-29 05:51:47 UTC (rev 81303)
@@ -1,41 +1,49 @@
# $Id$
-PortSystem 1.0
-PortGroup python24 1.0
+PortSystem 1.0
+PortGroup python 1.0
-name py-pil
-version 1.1.7
-maintainers nomaintainer
-description Python Imaging Library
-long_description The Python Imaging Library (PIL) adds image \
- processing capabilities to your Python interpreter. \
- This library supports many file formats, and \
- provides powerful image processing and graphics \
- capabilities.
-categories-append graphics
-platforms darwin freebsd
-homepage http://www.pythonware.com/
-master_sites http://effbot.org/downloads/
-distname Imaging-${version}
-checksums md5 fc14a54e1ce02a0225be8854bfba478e \
- sha1 76c37504251171fda8da8e63ecb8bc42a69a5c81 \
- rmd160 9af570fe100e250a4860314341fe3e6d695d7fde
-patchfiles patch-setup.py pil-2009-raclette-fb7ce579f5f9.diff
+name py-pil
+version 1.1.7
+revision 3
+license MIT
+maintainers jmr openmaintainer
+description Python Imaging Library
+long_description The Python Imaging Library (PIL) adds image \
+ processing capabilities to your Python interpreter. \
+ This library supports many file formats, and \
+ provides powerful image processing and graphics \
+ capabilities.
+categories-append graphics
+platforms darwin freebsd
+homepage http://www.pythonware.com/products/pil/
+master_sites http://effbot.org/downloads/
+distname Imaging-${version}
+checksums md5 fc14a54e1ce02a0225be8854bfba478e \
+ sha1 76c37504251171fda8da8e63ecb8bc42a69a5c81 \
+ rmd160 9af570fe100e250a4860314341fe3e6d695d7fde
-depends_lib-append port:freetype \
- port:lcms \
- port:py-tkinter
+python.versions 24 25 26 27
-post-patch {
- reinplace s,__PREFIX__,${prefix},g ${worksrcpath}/setup.py
-}
+if {$subport != $name} {
+ patchfiles patch-setup.py pil-2009-raclette-fb7ce579f5f9.diff \
+ patch-PIL-TiffImagePlugin.py.diff
-post-destroot {
- xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
- xinstall -m 0644 -W ${worksrcpath} BUILDME CHANGES CONTENTS README \
- ${destroot}${prefix}/share/doc/${name}
+ depends_lib-append port:freetype \
+ port:lcms \
+ port:py${python.version}-tkinter
+
+ post-patch {
+ reinplace s,__PREFIX__,${prefix},g ${worksrcpath}/setup.py
+ }
+
+ post-destroot {
+ xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 0644 -W ${worksrcpath} BUILDME CHANGES CONTENTS README \
+ ${destroot}${prefix}/share/doc/${name}
+ }
}
-variant no_tk description {do not require the python tk interface} {
- depends_lib-delete port:py-tkinter
-}
+livecheck.type regex
+livecheck.url ${homepage}
+livecheck.regex {Imaging-([0-9\.]+)\.tar\.gz}
Added: trunk/dports/python/py-pil/files/patch-PIL-TiffImagePlugin.py.diff
===================================================================
--- trunk/dports/python/py-pil/files/patch-PIL-TiffImagePlugin.py.diff (rev 0)
+++ trunk/dports/python/py-pil/files/patch-PIL-TiffImagePlugin.py.diff 2011-07-29 05:51:47 UTC (rev 81303)
@@ -0,0 +1,10 @@
+--- PIL/TiffImagePlugin.py.b 2011-02-23 16:43:49.000000000 -0800
++++ PIL/TiffImagePlugin.py 2011-02-23 11:45:06.000000000 -0800
+@@ -138,6 +138,7 @@
+ (II, 1, 1, 2, (1,), ()): ("1", "1;R"),
+ (II, 1, 1, 1, (8,), ()): ("L", "L"),
+ (II, 1, 1, 1, (8,8), (2,)): ("LA", "LA"),
++ (II, 1, 1, 1, (1,1), (2,)): ("1", "1"),
+ (II, 1, 1, 2, (8,), ()): ("L", "L;R"),
+ (II, 1, 1, 1, (16,), ()): ("I;16", "I;16"),
+ (II, 1, 2, 1, (16,), ()): ("I;16S", "I;16S"),
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110728/1d235aba/attachment.html>
More information about the macports-changes
mailing list