[101638] trunk/dports/python

jmr at macports.org jmr at macports.org
Tue Jan 15 15:51:24 PST 2013


Revision: 101638
          https://trac.macports.org/changeset/101638
Author:   jmr at macports.org
Date:     2013-01-15 15:51:24 -0800 (Tue, 15 Jan 2013)
Log Message:
-----------
py*-numarray: unify

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

Removed Paths:
-------------
    trunk/dports/python/py25-numarray/
    trunk/dports/python/py26-numarray/

Modified: trunk/dports/python/py-numarray/Portfile
===================================================================
--- trunk/dports/python/py-numarray/Portfile	2013-01-15 22:57:32 UTC (rev 101637)
+++ trunk/dports/python/py-numarray/Portfile	2013-01-15 23:51:24 UTC (rev 101638)
@@ -1,11 +1,12 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-numarray
 version			1.5.2
 categories		python devel math
+license			BSD
 platforms		darwin
 maintainers		nomaintainer
 description		array manipulation and computational library for python
@@ -21,21 +22,29 @@
 distname		numarray-${version}
 checksums		sha1 17f6c4bb5f0d97e93923b8ca4f55fccc1ee985e9
 
-build.args		--gencode
+python.versions	24 25 26
 
-variant smp description {Specify this to try to exploit multiple processors. A work in progress ...} {
-	build.args		--smp
-	destroot.args	--smp
-}
+if {$subport != $name} {
+    # numarray does not understand setup.py --no-user-cfg from PortGroup
+    build.cmd		${python.bin} setup.py
+    build.args		--gencode
+    destroot.cmd	${python.bin} setup.py
 
-post-destroot {
-	xinstall -m 644 -W ${worksrcpath} Doc/Announce.txt \
-		Doc/Repackaging.txt Doc/INSTALL.txt Doc/Design.txt \
-		Doc/UsersGuide.txt LICENSE.txt README.txt \
-		${destroot}${prefix}/share/doc/${name}
-	file delete ${destroot}${prefix}/share/doc/${name}/examples
-	file copy ${worksrcpath}/Examples \
-		${destroot}${prefix}/share/doc/${name}/examples
+    variant smp description {Specify this to try to exploit multiple processors. A work in progress ...} {
+        build.args-append		--smp
+        destroot.args-append	--smp
+    }
+
+    post-destroot {
+        xinstall -m 644 -W ${worksrcpath} Doc/Announce.txt \
+            Doc/Repackaging.txt Doc/INSTALL.txt Doc/Design.txt \
+            Doc/UsersGuide.txt LICENSE.txt README.txt \
+            ${destroot}${prefix}/share/doc/${subport}
+        file delete ${destroot}${prefix}/share/doc/${subport}/examples
+        file copy ${worksrcpath}/Examples \
+            ${destroot}${prefix}/share/doc/${subport}/examples
+    }
+    livecheck.type none
+} else {
+    livecheck.regex "<title>Old Numarray (.*) released.*</title>"
 }
-
-livecheck.regex "<title>Old Numarray (.*) released.*</title>"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130115/89582665/attachment.html>


More information about the macports-changes mailing list