[101106] trunk/dports/python/py-spark/Portfile

jmr at macports.org jmr at macports.org
Fri Jan 4 04:23:54 PST 2013


Revision: 101106
          https://trac.macports.org/changeset/101106
Author:   jmr at macports.org
Date:     2013-01-04 04:23:54 -0800 (Fri, 04 Jan 2013)
Log Message:
-----------
py-spark: use unified portgroup, license, noarch

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

Modified: trunk/dports/python/py-spark/Portfile
===================================================================
--- trunk/dports/python/py-spark/Portfile	2013-01-04 12:18:38 UTC (rev 101105)
+++ trunk/dports/python/py-spark/Portfile	2013-01-04 12:23:54 UTC (rev 101106)
@@ -1,13 +1,14 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-spark
 version			0.6.1
 revision		1
-categories		python
+license			MIT
 platforms		darwin freebsd
+supported_archs	noarch
 maintainers		nomaintainer
 description		spark is the little language compiler framework for python
 long_description	SPARK stands for the Scanning, Parsing, and Rewriting \
@@ -22,20 +23,24 @@
 distname		spark-${version}
 checksums		md5 28c4c3b1031a6a4e4c4bd42726d22b65
 
-patch	{
-	file delete ${worksrcpath}/generic.py
-	file copy ${portpath}/files/setup.py ${worksrcpath}
-	reinplace "s|PORTVERSION|${version}|g" ${worksrcpath}/setup.py
-}
+python.versions	24
 
-post-destroot	{
-	xinstall -m 644 ${worksrcpath}/doc/doc.html \
-		${destroot}${prefix}/share/doc/${name}
-	file delete ${destroot}${prefix}/share/doc/${name}/examples
-	file copy ${worksrcpath}/examples \
-		${destroot}${prefix}/share/doc/${name}/
-	file delete \
-		${destroot}${prefix}/share/doc/${name}/examples/auto/spark.py \
-		${destroot}${prefix}/share/doc/${name}/examples/paper/spark.py \
-		${destroot}${prefix}/share/doc/${name}/examples/python/spark.py
+if {$subport != $name} {
+    patch	{
+        file delete ${worksrcpath}/generic.py
+        file copy ${portpath}/files/setup.py ${worksrcpath}
+        reinplace "s|PORTVERSION|${version}|g" ${worksrcpath}/setup.py
+    }
+
+    post-destroot	{
+        xinstall -m 644 ${worksrcpath}/doc/doc.html \
+            ${destroot}${prefix}/share/doc/${subport}
+        file delete ${destroot}${prefix}/share/doc/${subport}/examples
+        file copy ${worksrcpath}/examples \
+            ${destroot}${prefix}/share/doc/${subport}/
+        file delete \
+            ${destroot}${prefix}/share/doc/${subport}/examples/auto/spark.py \
+            ${destroot}${prefix}/share/doc/${subport}/examples/paper/spark.py \
+            ${destroot}${prefix}/share/doc/${subport}/examples/python/spark.py
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130104/f337474a/attachment.html>


More information about the macports-changes mailing list