[96714] trunk/dports/python

blair at macports.org blair at macports.org
Fri Aug 17 14:27:43 PDT 2012


Revision: 96714
          https://trac.macports.org/changeset/96714
Author:   blair at macports.org
Date:     2012-08-17 14:27:39 -0700 (Fri, 17 Aug 2012)
Log Message:
-----------
py{4,5,6,7}-logilab-astng: unify into py-logilab-astng.

Modified Paths:
--------------
    trunk/dports/python/py-logilab-astng/Portfile

Removed Paths:
-------------
    trunk/dports/python/py-logilab-astng/files/
    trunk/dports/python/py24-logilab-astng/
    trunk/dports/python/py25-logilab-astng/
    trunk/dports/python/py26-logilab-astng/
    trunk/dports/python/py27-logilab-astng/

Modified: trunk/dports/python/py-logilab-astng/Portfile
===================================================================
--- trunk/dports/python/py-logilab-astng/Portfile	2012-08-17 20:56:37 UTC (rev 96713)
+++ trunk/dports/python/py-logilab-astng/Portfile	2012-08-17 21:27:39 UTC (rev 96714)
@@ -2,14 +2,18 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python24 1.0
+PortGroup           python 1.0
 
 name                py-logilab-astng
-version             0.21.1
-revision            1
+if {$subport != "py24-logilab-astng"} {
+    version         0.24.0
+} else {
+    epoch           1
+    version         0.20.1
+}
 platforms           darwin
 
-maintainers         dh openmaintainer
+maintainers         dh openmaintainer stromnov
 
 description         Python Abstract Syntax Tree New Generation
 long_description    The aim of this module is to provide a common base representation of python source code for \
@@ -24,21 +28,36 @@
 
 distname            logilab-astng-${version}
 
-checksums           md5     064a1cb970c283cf18e05a990db48576 \
-                    sha1    b5c8324e46ab4634f046012a1052c4ad73b1c137 \
-                    rmd160  63bb8d7f956d046661fe926415ae48e0f61b45b3
+if {$subport != "py24-logilab-astng"} {
+    checksums       md5     9383047bfe2be4405af491fbe5c7f1c6 \
+                    sha1    7883e6b87ae9defa33feb469924fcd9943214036 \
+                    rmd160  b545a2862e48e75d19207c872881c26b5c714baf
+} else {
+    checksums       md5     bd9612c3d6225346050347ac13b0e4c6 \
+                    sha1    ac4a7fc9c098393fd207eb2165b470b25ecb6f55 \
+                    rmd160  add5f8d561617313762f79ddca9728ab8a11eed6
+}
 
-patchfiles          patch-utils.py.diff
+python.versions 24 25 26 27
 
-depends_lib-append  port:py24-logilab-common
+if {$subport != $name} {
+    # Fix files not being world-readable.
+    post-extract {
+        foreach f [exec find ${workpath}] {
+        file attributes $f -permissions a+r
+        }
+    }
 
-post-destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
-    xinstall -m 644 -W ${worksrcpath} ChangeLog README \
-        ${destroot}${prefix}/share/doc/${name}
-    file delete ${destroot}${python.pkgd}/logilab/__init__.py
+    depends_lib-append  port:py${python.version}-logilab-common
+
+    post-destroot {
+        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath} ChangeLog README \
+            ${destroot}${prefix}/share/doc/${subport}
+        file delete ${destroot}${python.pkgd}/logilab/__init__.py
+    }
+} else {
+    livecheck.url   http://ftp.logilab.org/pub/astng/
+    livecheck.type  regex
+    livecheck.regex {logilab-astng-(\d+(?:\.\d+)*)\.tar\.gz}
 }
-
-livecheck.url       http://ftp.logilab.org/pub/astng/
-livecheck.type      regex
-livecheck.regex     {logilab-astng-(\d+(?:\.\d+)*)\.tar\.gz}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120817/41ce7ca5/attachment.html>


More information about the macports-changes mailing list