[92334] trunk/dports/python
stromnov at macports.org
stromnov at macports.org
Wed Apr 25 04:57:59 PDT 2012
Revision: 92334
https://trac.macports.org/changeset/92334
Author: stromnov at macports.org
Date: 2012-04-25 04:57:59 -0700 (Wed, 25 Apr 2012)
Log Message:
-----------
py2*-cython: unify
Modified Paths:
--------------
trunk/dports/python/py-cython/Portfile
Removed Paths:
-------------
trunk/dports/python/py25-cython/
trunk/dports/python/py26-cython/
trunk/dports/python/py27-cython/
Modified: trunk/dports/python/py-cython/Portfile
===================================================================
--- trunk/dports/python/py-cython/Portfile 2012-04-25 11:37:58 UTC (rev 92333)
+++ trunk/dports/python/py-cython/Portfile 2012-04-25 11:57:59 UTC (rev 92334)
@@ -2,12 +2,12 @@
# $Id$
PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
name py-cython
version 0.15
-revision 0
-categories python devel
+revision 1
+categories-append devel
license Apache-2
platforms darwin
@@ -30,16 +30,30 @@
sha1 b91780124a4061a9b77561b9467eaaea9933a799 \
rmd160 15d8833b035fd423cb39117911e9c54e494ab778
-post-destroot {
- xinstall -m 644 -W ${worksrcpath}/Doc About.html FAQ.html \
- extension_types.html index.html overview.html primes.c sharing.html \
- special_methods.html ${destroot}${prefix}/share/doc/${name}
- xinstall -m 644 -W ${worksrcpath} INSTALL.txt README.txt\
- ToDo.txt USAGE.txt ${destroot}${prefix}/share/doc/${name}
- move ${destroot}${prefix}/bin/cython \
- ${destroot}${prefix}/bin/cython-${python.branch}
+python.versions 24 25 26 27
+
+if {$subport != $name} {
+
+ post-destroot {
+ if {$subport == "py24-cython" || $subport == "py25-cython"} {
+ xinstall -m 644 -W ${worksrcpath}/Doc About.html FAQ.html \
+ extension_types.html index.html overview.html primes.c sharing.html \
+ special_methods.html ${destroot}${prefix}/share/doc/${subport}
+ xinstall -m 644 -W ${worksrcpath} INSTALL.txt README.txt \
+ ToDo.txt USAGE.txt ${destroot}${prefix}/share/doc/${subport}
+ move ${destroot}${prefix}/bin/cython \
+ ${destroot}${prefix}/bin/cython-${python.branch}
+ } else {
+ xinstall -m 755 -d ${destroot}${python.prefix}/share/doc/cython
+ xinstall -m 644 -W ${worksrcpath}/Doc About.html FAQ.html \
+ extension_types.html index.html overview.html primes.c sharing.html \
+ special_methods.html ${destroot}${python.prefix}/share/doc/cython
+ xinstall -m 644 -W ${worksrcpath} INSTALL.txt README.txt\
+ ToDo.txt USAGE.txt ${destroot}${python.prefix}/share/doc/cython
+ }
+ }
}
livecheck.type regex
-livecheck.url ${master_sites}
+livecheck.url [lindex ${master_sites} 0]
livecheck.regex "Cython-(\\d+(?:\\.\\d+)*)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120425/c41a35d7/attachment.html>
More information about the macports-changes
mailing list