[100670] trunk/dports/python

jmr at macports.org jmr at macports.org
Wed Dec 19 16:13:00 PST 2012


Revision: 100670
          https://trac.macports.org/changeset/100670
Author:   jmr at macports.org
Date:     2012-12-19 16:13:00 -0800 (Wed, 19 Dec 2012)
Log Message:
-----------
py*-gd: unify

Modified Paths:
--------------
    trunk/dports/python/py-gd/Portfile

Removed Paths:
-------------
    trunk/dports/python/py25-gd/
    trunk/dports/python/py26-gd/

Modified: trunk/dports/python/py-gd/Portfile
===================================================================
--- trunk/dports/python/py-gd/Portfile	2012-12-19 23:51:26 UTC (rev 100669)
+++ trunk/dports/python/py-gd/Portfile	2012-12-20 00:13:00 UTC (rev 100670)
@@ -1,7 +1,7 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-gd
 version			0.56
@@ -20,21 +20,26 @@
 checksums		md5     6a6db28a089d4caf5a921cd266a62b3d \
 				sha1    519a64e14897599d879b82a5f5b0f308a14826e3 \
 				rmd160  fb3c2e77a59840272d12c786d187b096e1eec53d
-patchfiles		patch-Setup.py.diff
 
-depends_lib-append	port:gd2 port:giflib
+python.versions	24 25 26
 
-post-patch	{
-	file rename ${worksrcpath}/Setup.py ${worksrcpath}/_Setup.py
-	file rename ${worksrcpath}/_Setup.py ${worksrcpath}/setup.py
-	reinplace "s|PREFIX|${prefix}|g" ${worksrcpath}/setup.py
+if {$subport != $name} {
+    patchfiles		patch-Setup.py.diff
+    
+    depends_lib-append	port:gd2 port:giflib
+    
+    post-patch	{
+        file rename ${worksrcpath}/Setup.py ${worksrcpath}/_Setup.py
+        file rename ${worksrcpath}/_Setup.py ${worksrcpath}/setup.py
+        reinplace "s|PREFIX|${prefix}|g" ${worksrcpath}/setup.py
+    }
+    
+    build.env	LDFLAGS="-L${prefix}/lib"
+    
+    post-destroot   {
+        xinstall -m 644 -W ${worksrcpath} README gd-ref.html \
+            install_notes.html ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 ${worksrcpath}/gddemo.py \
+            ${destroot}${prefix}/share/doc/${subport}/examples/
+    }
 }
-
-build.env	LDFLAGS="-L${prefix}/lib"
-
-post-destroot   {
-	xinstall -m 644 -W ${worksrcpath} README gd-ref.html \
-		install_notes.html ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 644 ${worksrcpath}/gddemo.py \
-		${destroot}${prefix}/share/doc/${name}/examples/
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121219/35271331/attachment-0001.html>


More information about the macports-changes mailing list