[82228] trunk/dports/python

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


Revision: 82228
          http://trac.macports.org/changeset/82228
Author:   snc at macports.org
Date:     2011-08-10 12:56:03 -0700 (Wed, 10 Aug 2011)
Log Message:
-----------
py-xlrd: unify

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

Added Paths:
-----------
    trunk/dports/python/py-xlrd/

Removed Paths:
-------------
    trunk/dports/python/py25-xlrd/
    trunk/dports/python/py26-xlrd/
    trunk/dports/python/py27-xlrd/

Modified: trunk/dports/python/py-xlrd/Portfile
===================================================================
--- trunk/dports/python/py27-xlrd/Portfile	2011-08-10 19:29:12 UTC (rev 82226)
+++ trunk/dports/python/py-xlrd/Portfile	2011-08-10 19:56:03 UTC (rev 82228)
@@ -2,10 +2,12 @@
 # $Id$
 
 PortSystem 		1.0
-PortGroup 		python27 1.0
+PortGroup 		python 1.0
 
-name			py27-xlrd
+name			py-xlrd
 version			0.7.1
+python.versions     25 26 27
+python.default_version  27
 categories		python
 platforms		darwin
 maintainers		snc openmaintainer
@@ -21,6 +23,14 @@
 
 use_zip			yes
 
+if {$subport != $name} {
+    if {${python.version} == 25} {
+        post-destroot {
+            move ${destroot}${prefix}/bin/runxlrd.py ${destroot}${prefix}/bin/runxlrd.py-2.5
+        }
+    }
+}
+
 livecheck.type      regex
 livecheck.url       http://pypi.python.org/pypi/xlrd
 livecheck.regex     xlrd (\\d+\\.\\d+\\.\\d+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110810/dda57340/attachment.html>


More information about the macports-changes mailing list