[126374] trunk/dports/python

jmr at macports.org jmr at macports.org
Wed Oct 8 21:27:17 PDT 2014


Revision: 126374
          https://trac.macports.org/changeset/126374
Author:   jmr at macports.org
Date:     2014-10-08 21:27:17 -0700 (Wed, 08 Oct 2014)
Log Message:
-----------
py27-gslib: use unified python portgroup

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

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

Removed Paths:
-------------
    trunk/dports/python/py27-gslib/

Modified: trunk/dports/python/py-gslib/Portfile
===================================================================
--- trunk/dports/python/py27-gslib/Portfile	2014-10-09 03:58:40 UTC (rev 126372)
+++ trunk/dports/python/py-gslib/Portfile	2014-10-09 04:27:17 UTC (rev 126374)
@@ -1,9 +1,9 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python27 1.0
+PortGroup           python 1.0
 
-name                py27-gslib
+name                py-gslib
 set module_name     gslib
 set proj_name       gsutil
 version             20110908
@@ -30,14 +30,18 @@
 # store file in gstil port: both ports use the same file
 dist_subdir         ${proj_name}
 
-depends_lib         port:py27-boto
-
 checksums           md5     65577aea58479c4eea190dd93b72c42b \
                     sha1    58bb5e5b4443576c548bb795f5aa30c3d12ea8c5 \
                     rmd160  b08b6f303d43eb23bc3be165cdfc68c30ae8d82e
 
-build {}
-destroot {
-    xinstall -d ${destroot}${python.pkgd}
-    move ${worksrcpath} ${destroot}${python.pkgd}/${module_name}
+python.versions     27
+
+if {$subport ne $name} {
+    depends_lib         port:py${python.version}-boto
+
+    build {}
+    destroot {
+        xinstall -d ${destroot}${python.pkgd}
+        move ${worksrcpath} ${destroot}${python.pkgd}/${module_name}
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141008/6b820d01/attachment.html>


More information about the macports-changes mailing list