Revision
100747
Author
jmr@macports.org
Date
2012-12-21 15:53:21 -0800 (Fri, 21 Dec 2012)

Log Message

py-glewpy: move to unified portgroup

Modified Paths

Diff

Modified: trunk/dports/python/py-glewpy/Portfile (100746 => 100747)


--- 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}