Revision
100770
Author
jmr@macports.org
Date
2012-12-23 14:52:25 -0800 (Sun, 23 Dec 2012)

Log Message

py-url: use unified portgroup

Modified Paths

Diff

Modified: trunk/dports/python/py-url/Portfile (100769 => 100770)


--- trunk/dports/python/py-url/Portfile	2012-12-23 22:46:22 UTC (rev 100769)
+++ trunk/dports/python/py-url/Portfile	2012-12-23 22:52:25 UTC (rev 100770)
@@ -1,12 +1,11 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-url
 version			0.15.1
 revision		1
-categories		python
 license			MIT
 platforms		darwin freebsd
 maintainers		phw openmaintainer
@@ -22,11 +21,16 @@
 checksums       md5     ffa18a0ba9512b0d32c3331241c9e751
 use_bzip2		yes
 
-post-destroot	{
-	xinstall -m 644 -W ${worksrcpath} HOWTO INSTALL NEWS README \
-		${destroot}${prefix}/share/doc/${name}
+python.versions	24
+
+if {$subport != $name} {
+    post-destroot	{
+        xinstall -m 644 -W ${worksrcpath} HOWTO INSTALL NEWS README \
+            ${destroot}${prefix}/share/doc/${subport}
+    }
+    livecheck.type	none
+} else {
+    livecheck.type  regex
+    livecheck.url   ${master_sites}
+    livecheck.regex {"ll-url-([0-9\.]+).tar.gz"}
 }
-
-livecheck.type  regex
-livecheck.url   ${master_sites}
-livecheck.regex {"ll-url-([0-9\.]+).tar.gz"}