[129909] trunk/dports/python
jmr at macports.org
jmr at macports.org
Mon Dec 22 16:20:21 PST 2014
Revision: 129909
https://trac.macports.org/changeset/129909
Author: jmr at macports.org
Date: 2014-12-22 16:20:20 -0800 (Mon, 22 Dec 2014)
Log Message:
-----------
py*-libdnet: unify, remove python24 and python25 versions (#46274, maintainer timeout)
Modified Paths:
--------------
trunk/dports/python/py-libdnet/Portfile
Removed Paths:
-------------
trunk/dports/python/py25-libdnet/
trunk/dports/python/py26-libdnet/
trunk/dports/python/py27-libdnet/
Modified: trunk/dports/python/py-libdnet/Portfile
===================================================================
--- trunk/dports/python/py-libdnet/Portfile 2014-12-23 00:16:48 UTC (rev 129908)
+++ trunk/dports/python/py-libdnet/Portfile 2014-12-23 00:20:20 UTC (rev 129909)
@@ -2,12 +2,11 @@
PortSystem 1.0
-set python.bin ${prefix}/bin/python2.4
-
name py-libdnet
version 1.12
categories python net
-maintainers consault.com:chris.owen
+license BSD
+maintainers nzbox.com:msavory consault.com:chris.owen
platforms darwin
description A python module for the libdnet low-level networking library.
@@ -28,13 +27,41 @@
sha1 71302be302e84fc19b559e811951b5d600d976f8 \
rmd160 4b849f07c3513522fda65af067928b7e6d504aab
-depends_lib port:python24 port:libdnet
+subport py27-libdnet {
+ set python.bin ${prefix}/bin/python2.7
+ set python.prefix ${frameworks_dir}/Python.framework/Versions/2.7
+ depends_lib-append port:python27
+}
+subport py26-libdnet {
+ set python.bin ${prefix}/bin/python2.6
+ set python.prefix ${frameworks_dir}/Python.framework/Versions/2.6
+ depends_lib-append port:python26
+}
-# libdnet is not universal
-universal_variant no
+if {$subport ne $name} {
+ depends_lib-append port:libdnet
-pre-destroot {
- worksrcdir ${worksrcdir}/python
+ # libdnet is not universal
+ universal_variant no
+
+ pre-destroot {
+ worksrcdir ${worksrcdir}/python
+ }
+ destroot.cmd ${python.bin} setup.py --no-user-cfg install
+ destroot.destdir --prefix=${python.prefix} --root=${destroot}
+ livecheck.type none
+} else {
+ livecheck.regex "libdnet-(\\d+(?:\\.\\d+)*)${extract.suffix}"
+
+ # py-libdnet was previously for python 2.4
+ revision 1
+ replaced_by py27-libdnet
+ depends_lib port:py27-libdnet
+ supported_archs noarch
+ use_configure no
+ build {}
+ destroot {
+ xinstall -d ${destroot}${prefix}/share/doc/${name}
+ system "echo This port is a stub. > ${destroot}${prefix}/share/doc/${name}/README"
+ }
}
-destroot.cmd ${python.bin} setup.py
-destroot.destdir --prefix=${prefix} --root=${destroot}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141222/c4229d74/attachment.html>
More information about the macports-changes
mailing list