[100747] trunk/dports/python/py-glewpy/Portfile

jmr at macports.org jmr at macports.org
Fri Dec 21 15:53:21 PST 2012


Revision: 100747
          https://trac.macports.org/changeset/100747
Author:   jmr at macports.org
Date:     2012-12-21 15:53:21 -0800 (Fri, 21 Dec 2012)
Log Message:
-----------
py-glewpy: move to unified portgroup

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

Modified: trunk/dports/python/py-glewpy/Portfile
===================================================================
--- trunk/dports/python/py-glewpy/Portfile	2012-12-21 23:38:39 UTC (rev 100746)
+++ trunk/dports/python/py-glewpy/Portfile	2012-12-21 23:53:21 UTC (rev 100747)
@@ -1,7 +1,7 @@
 # $Id$
 
 PortSystem              1.0
-PortGroup               python24 1.0
+PortGroup               python 1.0
 
 name                    py-glewpy
 version                 0.7.4
@@ -19,18 +19,24 @@
 master_sites            sourceforge:project/glewpy/glewpy/glewpy-${version}
 distname                glewpy-${version}
 checksums               md5 3d2aae86aae328ab60897915bf9530fc 
-patchfiles              patch-setup.py
 
-depends_lib-append      port:glew \
-                        port:py-pyrex
+python.versions         24
 
-post-patch {
-    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/setup.py
+if {$subport != $name} {
+    patchfiles              patch-setup.py
+    
+    depends_lib-append      port:glew \
+                            port:py${python.version}-pyrex
+    
+    post-patch {
+        reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/setup.py
+    }
+    post-destroot {
+            xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${subport}
+    }
+    livecheck.type          none
+} else {
+    livecheck.type          sourceforge
+    livecheck.name          glewpy
+    livecheck.regex         /${livecheck.name}-(\[0-9.\]+)${extract.suffix}
 }
-post-destroot {
-        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
-}
-
-livecheck.type          sourceforge
-livecheck.name          glewpy
-livecheck.regex         /${livecheck.name}-(\[0-9.\]+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121221/2229d7b3/attachment.html>


More information about the macports-changes mailing list