[84847] trunk/dports/python
jmr at macports.org
jmr at macports.org
Mon Oct 3 08:56:40 PDT 2011
Revision: 84847
http://trac.macports.org/changeset/84847
Author: jmr at macports.org
Date: 2011-10-03 08:56:40 -0700 (Mon, 03 Oct 2011)
Log Message:
-----------
unify py*-pygments (#31422), part 2
Modified Paths:
--------------
trunk/dports/python/py-pygments/Portfile
Added Paths:
-----------
trunk/dports/python/py-pygments/
Removed Paths:
-------------
trunk/dports/python/py32-pygments/
Modified: trunk/dports/python/py-pygments/Portfile
===================================================================
--- trunk/dports/python/py32-pygments/Portfile 2011-10-03 11:36:00 UTC (rev 84838)
+++ trunk/dports/python/py-pygments/Portfile 2011-10-03 15:56:40 UTC (rev 84847)
@@ -1,13 +1,14 @@
# $Id$
PortSystem 1.0
-PortGroup python32 1.0
+PortGroup python 1.0
-name py32-pygments
+name py-pygments
version 1.4
+revision 1
license BSD
categories-append devel
-maintainers singingwolfboy openmaintainer
+maintainers erickt singingwolfboy openmaintainer
description Python syntax highlighter
long_description \
Pygments is a fast syntax highlighter written in Python with a \
@@ -18,33 +19,48 @@
platforms darwin
supported_archs noarch
-homepage http://pygments.org
+homepage http://pygments.org/
master_sites http://pypi.python.org/packages/source/P/Pygments
distname Pygments-${version}
-depends_lib port:py32-distribute
-
checksums md5 d77ac8c93a7fb27545f2522abe9cc462 \
sha1 d34f96421a86004aa5d26ecf975edefd09f948b1 \
rmd160 52775927f5e1b61c4203ae21fa9347c376f59287
-post-destroot {
- ln -sf ${python.prefix}/bin/pygmentize \
- ${destroot}${prefix}/bin/pygmentize-${python.branch}
+python.versions 24 25 26 27 31 32
- set docdir ${prefix}/share/doc/${name}
- xinstall -d ${destroot}${docdir}
- xinstall -m 644 -W ${worksrcpath} AUTHORS CHANGES LICENSE TODO \
- ${destroot}${docdir}
- copy ${worksrcpath}/docs/build ${destroot}${docdir}/html
+if {$subport != $name} {
+ depends_lib port:py${python.version}-distribute
- set man1 ${python.prefix}/share/man/man1
- xinstall -d ${destroot}${man1}
- xinstall -m 644 ${worksrcpath}/docs/pygmentize.1 ${destroot}${man1}
- ln -sf ${man1}/pygmentize.1 \
- ${destroot}${prefix}/share/man/man1/pygmentize-${python.branch}.1
+ post-destroot {
+ if {${python.version} >= 26} {
+ ln -sf ${python.prefix}/bin/pygmentize \
+ ${destroot}${prefix}/bin/pygmentize-${python.branch}
+ } else {
+ move ${destroot}${prefix}/bin/pygmentize \
+ ${destroot}${prefix}/bin/pygmentize-${python.branch}
+ }
+
+ set docdir ${prefix}/share/doc/${subport}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 644 -W ${worksrcpath} AUTHORS CHANGES LICENSE TODO \
+ ${destroot}${docdir}
+ copy ${worksrcpath}/docs/build ${destroot}${docdir}/html
+
+ if {${python.version} >= 26} {
+ set man1 ${python.prefix}/share/man/man1
+ xinstall -d ${destroot}${man1}
+ xinstall -m 644 ${worksrcpath}/docs/pygmentize.1 ${destroot}${man1}
+ ln -sf ${man1}/pygmentize.1 \
+ ${destroot}${prefix}/share/man/man1/pygmentize-${python.branch}.1
+ } else {
+ xinstall -m 644 ${worksrcpath}/docs/pygmentize.1 \
+ ${destroot}${prefix}/share/man/man1/pygmentize-${python.branch}.1
+ }
+ }
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url ${master_sites}
+ livecheck.regex {Pygments-(\d+(?:\.\d+)*)}
}
-
-livecheck.type regex
-livecheck.url ${master_sites}
-livecheck.regex {Pygments-(\d+(?:\.\d+)*)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111003/1c37b395/attachment.html>
More information about the macports-changes
mailing list