[106889] trunk/dports/python

jmr at macports.org jmr at macports.org
Mon Jun 10 03:32:24 PDT 2013


Revision: 106889
          https://trac.macports.org/changeset/106889
Author:   jmr at macports.org
Date:     2013-06-10 03:32:24 -0700 (Mon, 10 Jun 2013)
Log Message:
-----------
py25-libmemcached: use unified portgroup, set license

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

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

Removed Paths:
-------------
    trunk/dports/python/py25-libmemcached/

Modified: trunk/dports/python/py-libmemcached/Portfile
===================================================================
--- trunk/dports/python/py25-libmemcached/Portfile	2013-06-10 02:01:43 UTC (rev 106886)
+++ trunk/dports/python/py-libmemcached/Portfile	2013-06-10 10:32:24 UTC (rev 106889)
@@ -2,34 +2,41 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python25 1.0
+PortGroup           python 1.0
 
-name                py25-libmemcached
+name                py-libmemcached
 version             0.13.1
 revision            3
+license             Apache-2
 maintainers         akitada openmaintainer
 description         python memcached client wrapped on libmemcached
 long_description    python memcached client wrapped on libmemcached.
 platforms           darwin
 homepage            http://code.google.com/p/python-libmemcached/
-master_sites        http://python-libmemcached.googlecode.com/files/
+master_sites        http://python-libmemcached.googlecode.com/files/ \
+                    http://distfiles.macports.org/python/
 distname            python-libmemcached-${version}
 extract.suffix      .tgz
 worksrcdir          python-libmemcached
 checksums           md5 ee728adeb6a7de34fc9241bcd2b360be \
                     sha1 6c82deed9980cfb5efbce051c0f4f381c24151a3 \
                     rmd160 4047d121d48ff918851c404ec3f0bd8aebdfee6d
-depends_build       port:py25-distribute
-depends_lib         port:libmemcached \
-                    port:py25-pyrex
-patchfiles          patch-setup.py.diff
 
-configure {
-    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/setup.py
-}
+python.versions     25
 
-post-destroot {
-    xinstall -m 644 -W ${worksrcpath} \
-        AUTHORS COPYING ChangeLog benchmark.py readme \
-         ${destroot}${prefix}/share/doc/${name}
+if {$subport != $name} {
+    depends_build       port:py${python.version}-distribute
+    depends_lib         port:libmemcached \
+                        port:py${python.version}-pyrex
+    patchfiles          patch-setup.py.diff
+
+    configure {
+        reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/setup.py
+    }
+
+    post-destroot {
+        xinstall -m 644 -W ${worksrcpath} \
+            AUTHORS COPYING ChangeLog benchmark.py readme \
+             ${destroot}${prefix}/share/doc/${subport}
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130610/d1cbdd32/attachment.html>


More information about the macports-changes mailing list