[82225] trunk/dports/python

snc at macports.org snc at macports.org
Wed Aug 10 12:21:21 PDT 2011


Revision: 82225
          http://trac.macports.org/changeset/82225
Author:   snc at macports.org
Date:     2011-08-10 12:21:20 -0700 (Wed, 10 Aug 2011)
Log Message:
-----------
py-igraph: unify

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

Added Paths:
-----------
    trunk/dports/python/py-igraph/
    trunk/dports/python/py-igraph/files/

Removed Paths:
-------------
    trunk/dports/python/py-igraph/files/
    trunk/dports/python/py25-igraph/
    trunk/dports/python/py26-igraph/
    trunk/dports/python/py27-igraph/

Modified: trunk/dports/python/py-igraph/Portfile
===================================================================
--- trunk/dports/python/py25-igraph/Portfile	2011-08-10 19:02:11 UTC (rev 82224)
+++ trunk/dports/python/py-igraph/Portfile	2011-08-10 19:21:20 UTC (rev 82225)
@@ -2,10 +2,12 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python25 1.0
+PortGroup           python 1.0
 
-name                py25-igraph
+name                py-igraph
 version             0.5.4
+python.versions     25 26 27
+python.default_version   27
 categories-append   math
 maintainers         snc openmaintainer
 description         Python interface to the igraph library
@@ -24,15 +26,17 @@
 
 platforms           darwin
 
-depends_lib         port:igraph \
-                    port:py25-distribute
+if {$subport != $name} {
+    depends_lib         port:igraph \
+                        port:py${python.version}-distribute
 
-patchfiles          patch-setup.cfg.diff \
-                    patch-setup.py.diff
+    patchfiles          patch-setup.cfg.diff \
+                        patch-setup.py.diff
 
-post-patch {
-	reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/setup.cfg
-	reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/setup.py
+    post-patch {
+        reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/setup.cfg
+        reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/setup.py
+    }
 }
 
 livecheck.type      regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110810/dbceb82d/attachment.html>


More information about the macports-changes mailing list