[110061] trunk/dports/python/py-logilab-common/Portfile

stromnov at macports.org stromnov at macports.org
Sun Aug 25 12:58:50 PDT 2013


Revision: 110061
          https://trac.macports.org/changeset/110061
Author:   stromnov at macports.org
Date:     2013-08-25 12:58:49 -0700 (Sun, 25 Aug 2013)
Log Message:
-----------
py-logilab-common: reformat

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

Modified: trunk/dports/python/py-logilab-common/Portfile
===================================================================
--- trunk/dports/python/py-logilab-common/Portfile	2013-08-25 19:25:49 UTC (rev 110060)
+++ trunk/dports/python/py-logilab-common/Portfile	2013-08-25 19:58:49 UTC (rev 110061)
@@ -5,52 +5,56 @@
 PortGroup           python 1.0
 
 name                py-logilab-common
-if {$subport != "py24-logilab-common"} {
-    version         0.58.3
-} else {
-    epoch           1
-    version         0.50.3
-}
+version             0.58.3
+revision            0
+categories-append   devel
+platforms           darwin
 license             LGPL-2.1+
+supported_archs     noarch
+
+python.versions     24 25 26 27
+
 maintainers         dh stromnov openmaintainer
+
 description         A number of modules used by various projects from Logilab
 long_description    ${description}
 
-platforms           darwin
-
 homepage            http://www.logilab.org/project/logilab-common
 master_sites        http://download.logilab.org/pub/common/ \
                     ftp://ftp.logilab.fr/pub/common
+
 distname            logilab-common-${version}
 
-if {$subport != "py24-logilab-common"} {
-    checksums       md5     d6ea36a311381de92b7d7de3ec69e018 \
-                    sha1    da1c1b0ff9fd9f76166ef965209b29fa518b4503 \
-                    rmd160  d104e8978c31824f9d7861a1c41937207dd69445
-} else {
-    checksums       md5     b3ac2d2d3cc690c9446749048c177560 \
-                    sha1    abf35852ce0030b2724b1beeacc42f3ca03934c5 \
-                    rmd160  33ff2aa0216fcf717bf2e1b1063a6345bd98b51d
+checksums           rmd160  d104e8978c31824f9d7861a1c41937207dd69445 \
+                    sha256  ad8c9cafe1dbbd54753694733562f39d4bbcb8467308fb64f7803dfe30ea5e86
+
+if {$subport == "py24-logilab-common"} {
+    epoch               1
+    version             0.50.3
+    distname            logilab-common-${version}
+    checksums           rmd160  33ff2aa0216fcf717bf2e1b1063a6345bd98b51d \
+                        sha256  e08f26783622c3c8b19250c7030e7124ff7c4313881bae692972ca55bdd7a07b
 }
 
-python.versions 24 25 26 27
-
 if {$subport != $name} {
-    # Extracted files do not have correct 'group' and 'other' permissions. 
-    post-extract { 
-        system "find ${worksrcpath} -type d -print0 | xargs -0 chmod a+rx" 
-        system "find ${worksrcpath} -type f -print0 | xargs -0 chmod a+r" 
-    } 
+    depends_build-append \
+                        port:py${python.version}-setuptools
 
+    # Extracted files do not have correct 'group' and 'other' permissions.
+    post-extract {
+        system "find ${worksrcpath} -type d -print0 | xargs -0 chmod a+rx"
+        system "find ${worksrcpath} -type f -print0 | xargs -0 chmod a+r"
+    }
+
     post-destroot {
         xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
         xinstall -m 644 -W ${worksrcpath} ChangeLog README \
         ${destroot}${prefix}/share/doc/${subport}
     }
-    
+
     livecheck.type  none
 } else {
     livecheck.type      regex
     livecheck.url       http://ftp.logilab.org/pub/common/
-    livecheck.regex     {logilab-common-(\d+(?:\.\d+)*)\.tar\.gz}
+    livecheck.regex     {logilab-common-(\d+(?:\.\d+)*)\.[tz]}
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130825/44cb8e15/attachment.html>


More information about the macports-changes mailing list