[94744] trunk/dports/python

jmr at macports.org jmr at macports.org
Thu Jun 28 04:23:21 PDT 2012


Revision: 94744
          https://trac.macports.org/changeset/94744
Author:   jmr at macports.org
Date:     2012-06-28 04:23:17 -0700 (Thu, 28 Jun 2012)
Log Message:
-----------
py*-pcapy: unify, add py27 (#32365)

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

Removed Paths:
-------------
    trunk/dports/python/py25-pcapy/
    trunk/dports/python/py26-pcapy/

Modified: trunk/dports/python/py-pcapy/Portfile
===================================================================
--- trunk/dports/python/py-pcapy/Portfile	2012-06-28 10:12:10 UTC (rev 94743)
+++ trunk/dports/python/py-pcapy/Portfile	2012-06-28 11:23:17 UTC (rev 94744)
@@ -1,11 +1,12 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python24 1.0
+PortGroup           python 1.0
 
 name                py-pcapy
 version             0.10.5
 categories-append   net
+license             Apache-1.1
 maintainers         nomaintainer
 
 description         python interface to libpcap
@@ -24,19 +25,24 @@
                     sha1    e7e803b423f2c2e3401ee616cddfd6ab237fc8d8 \
                     rmd160  fef424f4b912ba73e95e192355a0ad2e527492ff
 
-depends_lib-append  port:libpcap
+python.versions     24 25 26 27
 
-build.env           CPPFLAGS="-I${prefix}/include -L${prefix}/lib" \
+if {$subport != $name} {
+    depends_lib-append  port:libpcap
+
+    build.env       CPPFLAGS="-I${prefix}/include -L${prefix}/lib" \
                     CFLAGS=-I${prefix}/include \
                     LDFLAGS=-L${prefix}/lib
 
-post-destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
-    eval file rename [glob ${destroot}${prefix}/share/doc/pcapy/*] \
-        ${destroot}${prefix}/share/doc/${name}
-    xinstall -m 644 -W ${worksrcpath} ChangeLog PKG-INFO \
-        ${destroot}${prefix}/share/doc/${name}
+    post-destroot {
+        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
+        eval file rename [glob ${destroot}${python.prefix}/share/doc/pcapy/*] \
+            ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath} ChangeLog PKG-INFO \
+            ${destroot}${prefix}/share/doc/${subport}
+    }
+    livecheck.type      none
+} else {
+    livecheck.type      regex
+    livecheck.regex     {pcapy-([0-9.]+)\.tar}
 }
-
-livecheck.type      regex
-livecheck.regex     {pcapy-([0-9.]+)\.tar}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120628/579da58d/attachment.html>


More information about the macports-changes mailing list