Modified: trunk/dports/textproc/asciidoc/Portfile (80092 => 80093)
--- trunk/dports/textproc/asciidoc/Portfile 2011-07-04 04:29:59 UTC (rev 80092)
+++ trunk/dports/textproc/asciidoc/Portfile 2011-07-04 05:36:43 UTC (rev 80093)
@@ -3,7 +3,7 @@
PortSystem 1.0
name asciidoc
-version 8.6.3
+version 8.6.5
categories textproc
maintainers boeyms openmaintainer
description Formatter/translator for text files to numerous formats
@@ -22,26 +22,53 @@
homepage http://www.methods.co.nz/asciidoc/
master_sites sourceforge
-checksums md5 1ef39786ee1b4c8a788584e73db2c55a \
- sha1 96ac2a3593cd0787627288359d629f8b7e69f03f \
- rmd160 4ec1a9e1363ffa68b357455e5db9bda9472f5a1f
+checksums md5 9247724283501ec1cfb27d5eae9e5eaf \
+ sha1 520cbf7f8b8695a3c033c183cee5802f36d0127e \
+ rmd160 9828f2a8cc6f0971b4ed829f47fc1b9ecbf1c62c
-depends_run port:python26 \
- port:docbook-xml-4.5 \
- port:fop
+depends_run port:docbook-xml-4.5 \
+ port:fop
-destroot.target install docs vimdir=${prefix}/share/vim/vimfiles/
+variant python25 conflicts python26 python27 description {Use python 2.5} {
+ configure.python ${prefix}/bin/python2.5
-pre-destroot {
- file mkdir ${destroot}${prefix}/share/vim/vimfiles/
+ post-destroot {
+ reinplace "s:#!/usr/bin/env python:#!${prefix}/bin/python25:" \
+ ${destroot}${prefix}/bin/asciidoc \
+ ${destroot}${prefix}/bin/a2x
+ }
}
-post-destroot {
- reinplace "s:#!/usr/bin/env python:#!${prefix}/bin/python2.6:" \
+variant python26 conflicts python25 python27 description {Use python 2.6} {
+ configure.python ${prefix}/bin/python2.6
+
+ post-destroot {
+ reinplace "s:#!/usr/bin/env python:#!${prefix}/bin/python26:" \
${destroot}${prefix}/bin/asciidoc \
${destroot}${prefix}/bin/a2x
+ }
}
+variant python27 conflicts python25 python26 description {Use python 2.7} {
+ configure.python ${prefix}/bin/python2.7
+
+ post-destroot {
+ reinplace "s:#!/usr/bin/env python:#!${prefix}/bin/python27:" \
+ ${destroot}${prefix}/bin/asciidoc \
+ ${destroot}${prefix}/bin/a2x
+ }
+}
+
+if {![variant_isset python25] && ![variant_isset python26]} {
+ default_variants +python27
+}
+
+destroot.target install docs vimdir=${prefix}/share/vim/vimfiles/
+
+pre-destroot {
+ file mkdir ${destroot}${prefix}/share/vim/vimfiles/
+}
+
platform darwin {
# Avoid hidden dependency on gsed
configure.env-append SED=/usr/bin/sed