[99008] trunk/dports/python
jmr at macports.org
jmr at macports.org
Tue Oct 23 10:05:41 PDT 2012
Revision: 99008
http://trac.macports.org//changeset/99008
Author: jmr at macports.org
Date: 2012-10-23 10:05:41 -0700 (Tue, 23 Oct 2012)
Log Message:
-----------
py*-celementtree: unify
Modified Paths:
--------------
trunk/dports/python/py-celementtree/Portfile
Removed Paths:
-------------
trunk/dports/python/py25-celementtree/
trunk/dports/python/py26-celementtree/
Modified: trunk/dports/python/py-celementtree/Portfile
===================================================================
--- trunk/dports/python/py-celementtree/Portfile 2012-10-23 16:51:27 UTC (rev 99007)
+++ trunk/dports/python/py-celementtree/Portfile 2012-10-23 17:05:41 UTC (rev 99008)
@@ -1,13 +1,13 @@
# $Id$
PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
name py-celementtree
version 1.0.5-20051216
-categories python
+license MIT BSD
platforms darwin
-maintainers nomaintainer
+maintainers afb openmaintainer
description C implementation of the ElementTree API, py-elementtree
long_description The cElementTree module is a C implementation of the \
ElementTree API. On typical documents, it's 15-20 times faster \
@@ -20,17 +20,25 @@
checksums sha1 b36c95fd90d53746424c10db45b102b8fab260b8
use_zip yes
-depends_lib-append port:py24-elementtree
+python.versions 24 25 26
-test.run yes
-test.cmd ${python.bin}
-test.target selftest.py
+if {$subport != $name} {
+ depends_lib-append port:py${python.version}-elementtree
-post-destroot {
- xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
- xinstall -m 644 -W ${worksrcpath}/samples simple-ns.xml simple.xml \
- ${destroot}${prefix}/share/doc/${name}/examples
+ test.run yes
+ test.cmd ${python.bin}
+ test.target selftest.py
+
+ post-destroot {
+ xinstall -m 644 -W ${worksrcpath} CHANGES README \
+ ${destroot}${prefix}/share/doc/${subport}
+ xinstall -m 755 -d ${destroot}${prefix}/share/examples/${subport}
+ eval xinstall -m 644 [glob ${worksrcpath}/samples/*] \
+ ${destroot}${prefix}/share/examples/${subport}
+ }
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url http://effbot.org/downloads/
+ livecheck.regex cElementTree-(\[0-9\.-\]+).tar.gz
}
-livecheck.type regex
-livecheck.url http://effbot.org/downloads/
-livecheck.regex cElementTree-(\[0-9\.-\]+).tar.gz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121023/85eec402/attachment.html>
More information about the macports-changes
mailing list