[101413] trunk/dports/python/py-pyb/Portfile

jmr at macports.org jmr at macports.org
Thu Jan 10 11:21:05 PST 2013


Revision: 101413
          https://trac.macports.org/changeset/101413
Author:   jmr at macports.org
Date:     2013-01-10 11:21:05 -0800 (Thu, 10 Jan 2013)
Log Message:
-----------
py-pyb: use unified portgroup, license, noarch

Modified Paths:
--------------
    trunk/dports/python/py-pyb/Portfile

Modified: trunk/dports/python/py-pyb/Portfile
===================================================================
--- trunk/dports/python/py-pyb/Portfile	2013-01-10 19:14:06 UTC (rev 101412)
+++ trunk/dports/python/py-pyb/Portfile	2013-01-10 19:21:05 UTC (rev 101413)
@@ -1,11 +1,13 @@
 # $Id$
 
 PortSystem			1.0
-PortGroup			python24 1.0
+PortGroup			python 1.0
+
 name				py-pyb
 version				0.4
 revision			1
 categories-append	devel
+license				GPL-2+
 maintainers			nomaintainer
 description			python-based ant-like build tool
 long_description \
@@ -13,6 +15,7 @@
 	using Python for build scripts instead of XML.
 
 platforms			darwin
+supported_archs		noarch
 
 homepage			http://pyb.sf.net/
 master_sites		sourceforge:pyb
@@ -20,11 +23,14 @@
 
 checksums			md5 66aee64f05f81bcae00172d143c3449b
 
-post-destroot {
-	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 644 -W ${worksrcpath} CHANGELOG.txt README.txt \
-		${destroot}${prefix}/share/doc/${name}
-	eval file copy [glob ${worksrcpath}/docs/*] \
-		${destroot}${prefix}/share/doc/${name}
+python.versions		24
+
+if {$subport != $name} {
+    post-destroot {
+        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath} CHANGELOG.txt README.txt \
+            ${destroot}${prefix}/share/doc/${subport}
+        eval file copy [glob ${worksrcpath}/docs/*] \
+            ${destroot}${prefix}/share/doc/${subport}
+    }
 }
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130110/0436836e/attachment-0001.html>


More information about the macports-changes mailing list