Revision
100771
Author
jmr@macports.org
Date
2012-12-23 15:39:43 -0800 (Sun, 23 Dec 2012)

Log Message

py-unum: use unified portgroup, license, noarch

Modified Paths

Diff

Modified: trunk/dports/python/py-unum/Portfile (100770 => 100771)


--- trunk/dports/python/py-unum/Portfile	2012-12-23 22:52:25 UTC (rev 100770)
+++ trunk/dports/python/py-unum/Portfile	2012-12-23 23:39:43 UTC (rev 100771)
@@ -1,12 +1,13 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-unum
 version			4.0
-categories		python
 platforms		darwin
+supported_archs	noarch
+license			GPL-2+
 maintainers		nomaintainer
 description		python module for using numbers with units, like volts, meters
 long_description	Unum stands for unit-numbers. It is a Python module \
@@ -23,12 +24,16 @@
 checksums		md5 45fc2f8fdec624fbd7cb88b20b744778
 use_zip			yes
 
-test.run		yes
-test.env		PYTHONPATH=${worksrcpath}/build/lib
-test.cmd		${python.bin} unum/tools/test.py
-test.target
+python.versions	24
 
-post-destroot	{
-	xinstall -m 644 ${worksrcpath}/README.txt \
-		${destroot}${prefix}/share/doc/${name}
+if {$subport != $name} {
+    test.run		yes
+    test.env		PYTHONPATH=${worksrcpath}/build/lib
+    test.cmd		${python.bin} unum/tools/test.py
+    test.target
+    
+    post-destroot	{
+        xinstall -m 644 ${worksrcpath}/README.txt \
+            ${destroot}${prefix}/share/doc/${subport}
+    }
 }