[80093] trunk/dports/textproc/asciidoc/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sun Jul 3 22:36:45 PDT 2011


Revision: 80093
          http://trac.macports.org/changeset/80093
Author:   jeremyhu at macports.org
Date:     2011-07-03 22:36:43 -0700 (Sun, 03 Jul 2011)
Log Message:
-----------
asciidoc: Version bump to 8.6.5 and addi python variants

Modified Paths:
--------------
    trunk/dports/textproc/asciidoc/Portfile

Modified: trunk/dports/textproc/asciidoc/Portfile
===================================================================
--- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110703/ca445493/attachment.html>


More information about the macports-changes mailing list