[105732] trunk/dports/python
jmr at macports.org
jmr at macports.org
Fri May 3 16:39:36 PDT 2013
Revision: 105732
https://trac.macports.org/changeset/105732
Author: jmr at macports.org
Date: 2013-05-03 16:39:36 -0700 (Fri, 03 May 2013)
Log Message:
-----------
py27-pylibelf: use unified portgroup
Modified Paths:
--------------
trunk/dports/python/py-pylibelf/Portfile
Added Paths:
-----------
trunk/dports/python/py-pylibelf/
Removed Paths:
-------------
trunk/dports/python/py27-pylibelf/
Modified: trunk/dports/python/py-pylibelf/Portfile
===================================================================
--- trunk/dports/python/py27-pylibelf/Portfile 2013-05-03 22:31:06 UTC (rev 105728)
+++ trunk/dports/python/py-pylibelf/Portfile 2013-05-03 23:39:36 UTC (rev 105732)
@@ -2,10 +2,10 @@
# $Id$
PortSystem 1.0
-PortGroup python27 1.0
+PortGroup python 1.0
set myname pylibelf
-name py27-${myname}
+name py-${myname}
version 0.1.20110915
categories-append devel
platforms darwin
@@ -16,21 +16,28 @@
${description}
homepage http://eggy.yolky.org/pylibelf/static/docs/index.html
-fetch.type hg
-hg.url https://bitbucket.org/eggy/pylibelf
-hg.tag 81d39db22cbd
-worksrcdir ${name}-${version}
-patch.pre_args -p1
-patchfiles setup.diff
+python.versions 27
-post-patch {
- reinplace "s|@@PREFIX@@|${prefix}|g" \
- ${worksrcpath}/setup.py \
- ${worksrcpath}/constfile2cython.py
-}
+if {$subport != $name} {
+ fetch.type hg
+ hg.url https://bitbucket.org/eggy/pylibelf
+ hg.tag 81d39db22cbd
+ worksrcdir ${myname}-${version}
-depends_lib-append port:py27-cython port:py27-ply
+ patch.pre_args -p1
+ patchfiles setup.diff
-livecheck.type regex
-livecheck.regex ${myname}\\s+v\\d+(.\\d+)\\s+documentation
+ post-patch {
+ reinplace "s|@@PREFIX@@|${prefix}|g" \
+ ${worksrcpath}/setup.py \
+ ${worksrcpath}/constfile2cython.py
+ }
+
+ depends_lib-append port:py${python.version}-cython port:py${python.version}-ply
+
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.regex ${myname}\\s+v\\d+(.\\d+)\\s+documentation
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130503/e3fc1926/attachment.html>
More information about the macports-changes
mailing list