[105852] trunk/dports/python

jmr at macports.org jmr at macports.org
Tue May 7 22:27:53 PDT 2013


Revision: 105852
          https://trac.macports.org/changeset/105852
Author:   jmr at macports.org
Date:     2013-05-07 22:27:53 -0700 (Tue, 07 May 2013)
Log Message:
-----------
py*-mcrypt: unify, set license

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

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

Removed Paths:
-------------
    trunk/dports/python/py26-mcrypt/
    trunk/dports/python/py27-mcrypt/

Modified: trunk/dports/python/py-mcrypt/Portfile
===================================================================
--- trunk/dports/python/py27-mcrypt/Portfile	2013-05-08 01:30:40 UTC (rev 105846)
+++ trunk/dports/python/py-mcrypt/Portfile	2013-05-08 05:27:53 UTC (rev 105852)
@@ -2,10 +2,11 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python27 1.0
+PortGroup           python 1.0
 
-name                py27-mcrypt
+name                py-mcrypt
 version             1.1
+license             LGPL-2.1+
 platforms           darwin
 maintainers         nomaintainer
 
@@ -26,14 +27,20 @@
 checksums           sha1    a6bed6ef183ed042a1261e8da1edb462deadc891 \
                     rmd160  eb02c61e4ea11836716c442c24078da56cf4d1c1
 
-depends_lib-append  port:mcrypt
+python.versions     26 27
 
-patchfiles          patch-setup.py.diff
+if {$subport != $name} {
+    depends_lib-append  port:mcrypt
 
-post-patch {
-    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
+    patchfiles          patch-setup.py.diff
+
+    post-patch {
+        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
+    }
+
+    livecheck.type      none
+} else {
+    livecheck.type      regex
+    livecheck.url       ${homepage}
+    livecheck.regex     "python-mcrypt-(\\d+(?:\\.\\d+)*)"
 }
-
-livecheck.type      regex
-livecheck.url       ${homepage}
-livecheck.regex     "python-mcrypt-(\\d+(?:\\.\\d+)*)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130507/b536338f/attachment.html>


More information about the macports-changes mailing list