[27445] trunk/dports/python

source_changes at macosforge.org source_changes at macosforge.org
Fri Aug 3 22:57:59 PDT 2007


Revision: 27445
          http://trac.macosforge.org/projects/macports/changeset/27445
Author:   stechert at macports.org
Date:     2007-08-03 22:57:58 -0700 (Fri, 03 Aug 2007)

Log Message:
-----------
adding pil for python 2.5

Added Paths:
-----------
    trunk/dports/python/py25-pil/
    trunk/dports/python/py25-pil/Portfile
    trunk/dports/python/py25-pil/files/
    trunk/dports/python/py25-pil/files/patch-setup.py

Added: trunk/dports/python/py25-pil/Portfile
===================================================================
--- trunk/dports/python/py25-pil/Portfile	                        (rev 0)
+++ trunk/dports/python/py25-pil/Portfile	2007-08-04 05:57:58 UTC (rev 27445)
@@ -0,0 +1,35 @@
+# $Id: Portfile 24708 2007-04-30 22:11:20Z jann at macports.org $
+
+PortSystem		1.0
+PortGroup		python25 1.0
+
+name			py25-pil
+version			1.1.6
+maintainers		stechert at macports.org
+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 3a9b5c20ca52f0a9900512d2c7347622
+patchfiles		patch-setup.py
+
+depends_lib-append	port:jpeg \
+					port:freetype \
+					port:zlib
+
+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}
+}

Added: trunk/dports/python/py25-pil/files/patch-setup.py
===================================================================
--- trunk/dports/python/py25-pil/files/patch-setup.py	                        (rev 0)
+++ trunk/dports/python/py25-pil/files/patch-setup.py	2007-08-04 05:57:58 UTC (rev 27445)
@@ -0,0 +1,19 @@
+--- setup.py	2005-03-23 19:16:40.000000000 +0100
++++ setup.py	2005-07-11 18:50:55.000000000 +0200
+@@ -28,11 +28,11 @@
+ #
+ # TIFF_ROOT = libinclude("/opt/tiff")
+ 
+-FREETYPE_ROOT = None
+-JPEG_ROOT = None
+-TIFF_ROOT = None
+-ZLIB_ROOT = None
+-TCL_ROOT = None
++FREETYPE_ROOT = "__PREFIX__/lib/", "__PREFIX__/include/freetype2/"
++JPEG_ROOT = "__PREFIX__/lib", "__PREFIX__/include"
++TIFF_ROOT = "__PREFIX__/lib", "__PREFIX__/include"
++ZLIB_ROOT = "__PREFIX__/lib", "__PREFIX__/include"
++TCL_ROOT = "__PREFIX__/lib", "__PREFIX__/include"
+ 
+ # FIXME: add mechanism to explicitly *disable* the use of a library
+ 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070803/cdea49ba/attachment.html


More information about the macports-changes mailing list