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

ryandesign at macports.org ryandesign at macports.org
Mon Dec 10 04:25:52 PST 2007


Revision: 31858
          http://trac.macosforge.org/projects/macports/changeset/31858
Author:   ryandesign at macports.org
Date:     2007-12-10 04:25:44 -0800 (Mon, 10 Dec 2007)

Log Message:
-----------
asciidoc: don't use 'cd' anymore since it's gone in trunk. Fixes #13537.

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

Modified: trunk/dports/textproc/asciidoc/Portfile
===================================================================
--- trunk/dports/textproc/asciidoc/Portfile	2007-12-10 11:50:36 UTC (rev 31857)
+++ trunk/dports/textproc/asciidoc/Portfile	2007-12-10 12:25:44 UTC (rev 31858)
@@ -30,24 +30,45 @@
 build				{}
 
 destroot {
-	cd ${worksrcpath}
-	xinstall -m 755 -d ${destroot}${prefix}/share/${name} \
+	xinstall -d \
+		${destroot}${prefix}/share/${name} \
 		${destroot}${prefix}/etc/${name}/images/
 
-	xinstall -m 755 asciidoc.py ${destroot}${prefix}/bin/${name}
-	xinstall -m 755 a2x ${destroot}${prefix}/bin/a2x
+	xinstall -W ${worksrcpath} -m 755 asciidoc.py ${destroot}${prefix}/bin/${name}
+	xinstall -W ${worksrcpath} -m 755 a2x ${destroot}${prefix}/bin/a2x
 
-	eval file copy [glob *.conf] docbook-xsl filters javascripts stylesheets \
+	eval file copy \
+		[glob -d ${worksrcpath} *.conf] \
+		${worksrcpath}/docbook-xsl \
+		${worksrcpath}/filters \
+		${worksrcpath}/javascripts \
+		${worksrcpath}/stylesheets \
 		${destroot}${prefix}/etc/${name}/
-	file copy images/icons ${destroot}${prefix}/etc/${name}/images/
+	file copy ${worksrcpath}/images/icons ${destroot}${prefix}/etc/${name}/images/
 
 	# Note, doc and examples (per porthier(7)) should be in their own subdir
 	# of ${prefix}/share, but asciidoc has quite a few symlinks in the
 	# examples, so they go under ${prefix}/share/${name} to keep things working
-	eval file copy doc examples images javascripts stylesheets BUGS BUGS.txt \
-		CHANGELOG CHANGELOG.txt COPYING COPYRIGHT README README.txt \
+	file copy \
+		${worksrcpath}/doc \
+		${worksrcpath}/examples \
+		${worksrcpath}/images \
+		${worksrcpath}/javascripts \
+		${worksrcpath}/stylesheets \
 		${destroot}${prefix}/share/${name}
-	xinstall -m 644 doc/${name}.1 doc/a2x.1 \
+	xinstall -W ${worksrcpath} \
+		BUGS \
+		BUGS.txt \
+		CHANGELOG \
+		CHANGELOG.txt \
+		COPYING \
+		COPYRIGHT \
+		README \
+		README.txt \
+		${destroot}${prefix}/share/${name}
+	xinstall -W ${worksrcpath} \
+		doc/${name}.1 \
+		doc/a2x.1 \
 		${destroot}${prefix}/share/man/man1
 
 	reinplace "s|^#!/usr/bin/env python|#!${prefix}/bin/python|" \

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071210/53bd5006/attachment.html


More information about the macports-changes mailing list