Revision
100773
Author
jmr@macports.org
Date
2012-12-23 20:24:50 -0800 (Sun, 23 Dec 2012)

Log Message

py-unit: use unified portgroup, license, noarch

Modified Paths

Diff

Modified: trunk/dports/python/py-unit/Portfile (100772 => 100773)


--- trunk/dports/python/py-unit/Portfile	2012-12-24 01:11:23 UTC (rev 100772)
+++ trunk/dports/python/py-unit/Portfile	2012-12-24 04:24:50 UTC (rev 100773)
@@ -1,14 +1,16 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-unit
 version			1.4.1
 revision		1
 categories		python devel
+license			PSF
 maintainers		nomaintainer
 platforms		darwin freebsd
+supported_archs	noarch
 description		python testing framework
 long_description	python testing framework, py-unit is the python \
 				language version of JUnit
@@ -18,10 +20,14 @@
 distname		pyunit-${version}
 checksums		md5 658ff16afc469a3898260cc72bbea993
 
-post-destroot	{
-	xinstall -m 644 -W ${worksrcpath} doc/PyUnit.html CHANGES \
-		${destroot}${prefix}/share/doc/${name}
-	xinstall -m 644 -W ${worksrcpath}/examples README alltests.py \
-		listtests.py manytests.py widget.py widgettests.py \
-		withjpython.py ${destroot}${prefix}/share/doc/${name}/examples
+python.versions	24
+
+if {$subport != $name} {
+    post-destroot	{
+        xinstall -m 644 -W ${worksrcpath} doc/PyUnit.html CHANGES \
+            ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath}/examples README alltests.py \
+            listtests.py manytests.py widget.py widgettests.py \
+            withjpython.py ${destroot}${prefix}/share/doc/${subport}/examples
+    }
 }