[125384] trunk/dports/python
jmr at macports.org
jmr at macports.org
Mon Sep 15 18:58:21 PDT 2014
Revision: 125384
https://trac.macports.org/changeset/125384
Author: jmr at macports.org
Date: 2014-09-15 18:58:21 -0700 (Mon, 15 Sep 2014)
Log Message:
-----------
py26-pyxb: use unified python portgroup
Modified Paths:
--------------
trunk/dports/python/py-pyxb/Portfile
Added Paths:
-----------
trunk/dports/python/py-pyxb/
Removed Paths:
-------------
trunk/dports/python/py26-pyxb/
Modified: trunk/dports/python/py-pyxb/Portfile
===================================================================
--- trunk/dports/python/py26-pyxb/Portfile 2014-09-15 12:59:18 UTC (rev 125376)
+++ trunk/dports/python/py-pyxb/Portfile 2014-09-16 01:58:21 UTC (rev 125384)
@@ -1,9 +1,9 @@
# $Id$
PortSystem 1.0
-PortGroup python26 1.0
+PortGroup python 1.0
-name py26-pyxb
+name py-pyxb
version 1.1.2
revision 1
categories-append devel textproc
@@ -27,27 +27,32 @@
sha1 9f575749aa4c73d33b1b672e39422e87ab274997 \
rmd160 92c4996fc94c603eb6e2eff57d1aa75922153385
-post-extract {
- delete ${worksrcpath}/tests/bugs/test-200908271556.py
-}
+python.versions 26
-worksrcdir PyXB-${version}
+if {$subport ne $name} {
+ post-extract {
+ delete ${worksrcpath}/tests/bugs/test-200908271556.py
+ }
-test.run yes
-test.cmd ${python.bin} -u setup.py
+ worksrcdir PyXB-${version}
-post-destroot {
- set docdir ${prefix}/share/doc/${name}
- xinstall -d ${destroot}${docdir}
- xinstall -m 644 -W ${worksrcpath} LICENSE NOTICE README.txt \
- ${destroot}${docdir}
- copy ${worksrcpath}/doc/html ${destroot}${docdir}/html
+ test.run yes
+ test.cmd ${python.bin} -u setup.py
- set examplesdir ${prefix}/share/examples/${name}
- xinstall -d [file dirname ${destroot}${examplesdir}]
- copy ${worksrcpath}/examples ${destroot}${examplesdir}
+ post-destroot {
+ set docdir ${prefix}/share/doc/${subport}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 644 -W ${worksrcpath} LICENSE NOTICE README.txt \
+ ${destroot}${docdir}
+ copy ${worksrcpath}/doc/html ${destroot}${docdir}/html
+
+ set examplesdir ${prefix}/share/examples/${subport}
+ xinstall -d [file dirname ${destroot}${examplesdir}]
+ copy ${worksrcpath}/examples ${destroot}${examplesdir}
+ }
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url ${homepage}
+ livecheck.regex {PyXB v(\d+(?:\.\d+)*)}
}
-
-livecheck.type regex
-livecheck.url ${homepage}
-livecheck.regex {PyXB v(\d+(?:\.\d+)*)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140915/22665ebf/attachment.html>
More information about the macports-changes
mailing list