Revision
98326
Author
blair@macports.org
Date
2012-10-02 18:16:55 -0700 (Tue, 02 Oct 2012)

Log Message

py-fpconst: move from a Python 2.4 only to a Python 2.x port.

Modified Paths

Diff

Modified: trunk/dports/python/py-fpconst/Portfile (98325 => 98326)


--- trunk/dports/python/py-fpconst/Portfile	2012-10-03 01:10:07 UTC (rev 98325)
+++ trunk/dports/python/py-fpconst/Portfile	2012-10-03 01:16:55 UTC (rev 98326)
@@ -1,11 +1,11 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup       python24 1.0
+PortGroup       python 1.0
 
 name            py-fpconst
 version         0.7.2
-revision        1
+revision        2
 license         Apache-2
 platforms       darwin freebsd
 supported_archs noarch
@@ -25,11 +25,15 @@
 dist_subdir     ${name}/${version}
 checksums       md5 10ba9e04129af23108d24c22c3a698b1
 
-post-destroot {
-    xinstall -m 644 -W ${worksrcpath} README \
-        ${destroot}${prefix}/share/doc/${name}
+python.versions 24 25 26 27
+
+if {$subport != $name} {
+    post-destroot {
+        xinstall -m 644 -W ${worksrcpath} README \
+            ${destroot}${prefix}/share/doc/${subport}
+    }
+} else {
+    livecheck.type  regex
+    livecheck.url   http://cheeseshop.python.org/pypi/fpconst/
+    livecheck.regex fpconst-(\[0-9\.\]+).tar.gz
 }
-               
-livecheck.type  regex
-livecheck.url   http://cheeseshop.python.org/pypi/fpconst/
-livecheck.regex fpconst-(\[0-9\.\]+).tar.gz