Revision
100886
Author
jmr@macports.org
Date
2012-12-30 21:06:47 -0800 (Sun, 30 Dec 2012)

Log Message

py-tarfile: use unified portgroup, set license

Modified Paths

Diff

Modified: trunk/dports/python/py-tarfile/Portfile (100885 => 100886)


--- trunk/dports/python/py-tarfile/Portfile	2012-12-31 04:14:09 UTC (rev 100885)
+++ trunk/dports/python/py-tarfile/Portfile	2012-12-31 05:06:47 UTC (rev 100886)
@@ -1,11 +1,11 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-tarfile
 version			0.7.5
-categories		python
+license			MIT
 platforms		darwin freebsd
 maintainers		nomaintainer
 description		implementation of the tar format as modules for Python
@@ -21,14 +21,18 @@
 distname		tarfile-${version}
 checksums		md5 56b67b2706e27898b2e7434356139701
 
-test.run		yes
-test.cmd		${python.bin} test_tarfile.py
-test.target
+python.versions	24
 
-post-destroot	{
-	xinstall -m 644 -W ${worksrcpath}/doc lib.css module-tarfile.html \
-		tar-examples.html tarfile-objects.html tarinfo-objects.html \
-		${destroot}${prefix}/share/doc/${name}
-	xinstall -m 644 -W ${worksrcpath} HISTORY README README.python-2.x \
-		TODO ${destroot}${prefix}/share/doc/${name}
+if {$subport != $name} {
+    test.run		yes
+    test.cmd		${python.bin} test_tarfile.py
+    test.target
+    
+    post-destroot	{
+        xinstall -m 644 -W ${worksrcpath}/doc lib.css module-tarfile.html \
+            tar-examples.html tarfile-objects.html tarinfo-objects.html \
+            ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath} HISTORY README README.python-2.x \
+            TODO ${destroot}${prefix}/share/doc/${subport}
+    }
 }