[125258] trunk/dports/python

jmr at macports.org jmr at macports.org
Thu Sep 11 12:59:48 PDT 2014


Revision: 125258
          https://trac.macports.org/changeset/125258
Author:   jmr at macports.org
Date:     2014-09-11 12:59:48 -0700 (Thu, 11 Sep 2014)
Log Message:
-----------
py26-clnum: use unified python portgroup

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

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

Removed Paths:
-------------
    trunk/dports/python/py26-clnum/

Modified: trunk/dports/python/py-clnum/Portfile
===================================================================
--- trunk/dports/python/py26-clnum/Portfile	2014-09-10 06:46:56 UTC (rev 125210)
+++ trunk/dports/python/py-clnum/Portfile	2014-09-11 19:59:48 UTC (rev 125258)
@@ -2,9 +2,9 @@
 # $Id$
 
 PortSystem                  1.0
-PortGroup                   python26 1.0
+PortGroup                   python 1.0
 
-name                        py26-clnum
+name                        py-clnum
 set my_name                 clnum
 version                     1.6
 platforms                   darwin
@@ -24,19 +24,24 @@
                             sha1    13d22216539b157d0369f44483c30390495c6a63 \
                             rmd160  1e86c3df9ab44c7a777c637f274a736c81e4b231
 
-depends_lib-append          port:cln
+python.versions             26
 
-build.env                   CPPFLAGS="${configure.cppflags}"
+if {${subport} ne ${name}} {
+    depends_lib-append          port:cln
 
-post-destroot {
-    set docdir ${destroot}${prefix}/share/doc/${name}
-    xinstall -d ${docdir}
-    xinstall -W ${worksrcpath} \
-        COPYING \
-        README \
-        changelog \
-        clnumManual.html \
-        ${docdir}
+    build.env                   CPPFLAGS="${configure.cppflags}"
+
+    post-destroot {
+        set docdir ${destroot}${prefix}/share/doc/${subport}
+        xinstall -d ${docdir}
+        xinstall -W ${worksrcpath} \
+            COPYING \
+            README \
+            changelog \
+            clnumManual.html \
+            ${docdir}
+    }
+    livecheck.type              none
+} else {
+    livecheck.regex             /${my_name}-(\[0-9.\]+)${extract.suffix}
 }
-
-livecheck.regex             /${my_name}-(\[0-9.\]+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140911/59faea6d/attachment.html>


More information about the macports-changes mailing list