[84542] trunk/dports/python

snc at macports.org snc at macports.org
Tue Sep 27 13:03:42 PDT 2011


Revision: 84542
          http://trac.macports.org/changeset/84542
Author:   snc at macports.org
Date:     2011-09-27 13:03:42 -0700 (Tue, 27 Sep 2011)
Log Message:
-----------
py-elementtree:
 * unify
 * license
 * take over maintainership with permission

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

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

Modified: trunk/dports/python/py-elementtree/Portfile
===================================================================
--- trunk/dports/python/py-elementtree/Portfile	2011-09-27 20:03:07 UTC (rev 84541)
+++ trunk/dports/python/py-elementtree/Portfile	2011-09-27 20:03:42 UTC (rev 84542)
@@ -2,14 +2,17 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-elementtree
+# if version or revision change, be sure to update the py24 subport revision
 version			1.2.6-20050316
-revision		1
+python.versions 24 25 26 27
+# originally for py24
+# python.default_version 24
 categories		python
 platforms		darwin
-maintainers		mww
+maintainers		snc openmaintainer
 license         MIT
 description		flexible container object for python
 long_description	The Element type is a simple but flexible container \
@@ -19,28 +22,36 @@
 				dictionary.
 
 homepage		http://effbot.org/zone/element-index.htm
-master_sites	http://effbot.org/downloads/
-distname		elementtree-${version}
-checksums		md5 6751a9005efbd2c543ef32905d4a0acd
-use_zip			yes
-patchfiles		patch-setup.py 
 
-depends_build-append	port:py24-distribute
+if {${subport} != ${name}} {
+    if {${python.version} == 24} {
+        revision        1
+    }
+    master_sites	http://effbot.org/downloads/
+    distname		elementtree-${version}
+    checksums           rmd160  813aaf07a0fcdfb23d29b648a8e082e1674539f5 \
+                        sha256  b5dd2c4e234f325abc1c7fb17815cb6cbcfef062f01065ddb05a6d6b96452f18
+    use_zip			yes
+    patchfiles		patch-setup.py
 
-post-extract { file copy ${filespath}/ez_setup.py ${worksrcpath} }
+    depends_build-append	port:py${python.version}-distribute
 
-test.run		yes
-test.cmd		${python.bin}
-test.target		selftest.py
+    post-extract { file copy ${filespath}/ez_setup.py ${worksrcpath} }
 
-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
-	eval file copy [glob ${worksrcpath}/docs/*] \
-		${destroot}${prefix}/share/doc/${name}
+    test.run		yes
+    test.cmd		${python.bin}
+    test.target		selftest.py
+
+    post-destroot	{
+        xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${subport}
+        xinstall -d ${destroot}${prefix}/share/doc/${subport}/examples
+        xinstall -m 644 -W ${worksrcpath}/samples simple-ns.xml simple.xml \
+            ${destroot}${prefix}/share/doc/${subport}/examples
+        eval file copy [glob ${worksrcpath}/docs/*] \
+            ${destroot}${prefix}/share/doc/${subport}
+    }
+} else {
+    livecheck.type	regex
+    livecheck.url	http://effbot.org/downloads/
+    livecheck.regex	elementtree-(\[0-9\.-\]+).tar.gz
 }
-
-livecheck.type	regex
-livecheck.url	http://effbot.org/downloads/
-livecheck.regex	elementtree-(\[0-9\.-\]+).tar.gz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110927/7440953b/attachment.html>


More information about the macports-changes mailing list