[89483] trunk/dports/python

macsforever2000 at macports.org macsforever2000 at macports.org
Tue Jan 31 13:22:28 PST 2012


Revision: 89483
          http://trac.macports.org/changeset/89483
Author:   macsforever2000 at macports.org
Date:     2012-01-31 13:22:28 -0800 (Tue, 31 Jan 2012)
Log Message:
-----------
py-scikits-umfpack: unify

Modified Paths:
--------------
    trunk/dports/python/py-scikits-umfpack/Portfile

Added Paths:
-----------
    trunk/dports/python/py-scikits-umfpack/

Removed Paths:
-------------
    trunk/dports/python/py26-scikits-umfpack/

Modified: trunk/dports/python/py-scikits-umfpack/Portfile
===================================================================
--- trunk/dports/python/py26-scikits-umfpack/Portfile	2012-01-31 21:04:17 UTC (rev 89481)
+++ trunk/dports/python/py-scikits-umfpack/Portfile	2012-01-31 21:22:28 UTC (rev 89483)
@@ -2,9 +2,9 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python26 1.0
+PortGroup           python 1.0
 
-name                py26-scikits-umfpack
+name                py-scikits-umfpack
 version             1.0
 maintainers         macsforever2000
 license             GPL
@@ -19,20 +19,24 @@
 homepage            http://www.cise.ufl.edu/research/sparse/umfpack/
 distname            umfpack
 
+python.versions     24 25 26 27
+
 fetch.type          svn
 svn.url             http://svn.scipy.org/svn/scikits/trunk/umfpack/scikits/umfpack/
 svn.revision        2267
 
 patchfiles          patch-setup.py.diff
 
-depends_lib         port:py26-scipy \
-                    port:py26-scikits-module
-
-post-patch {
-    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
+if {$subport != $name} {
+    depends_lib         port:py${python.version}-scipy \
+                        port:py${python.version}-scikits-module
+    
+    post-patch {
+        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
+    }
+    
+    post-destroot {
+        # scikits/__init__.py is provided by scikits-module
+        file delete ${destroot}${python.pkgd}/scikits/__init__.py
+    }
 }
-
-post-destroot {
-    # scikits/__init__.py is provided by scikits-module
-    file delete ${destroot}${python.pkgd}/scikits/__init__.py
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120131/218caaef/attachment.html>


More information about the macports-changes mailing list