[32782] trunk/dports/www/zopeedit/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun Jan 13 03:15:08 PST 2008


Revision: 32782
          http://trac.macosforge.org/projects/macports/changeset/32782
Author:   ryandesign at macports.org
Date:     2008-01-13 03:15:07 -0800 (Sun, 13 Jan 2008)

Log Message:
-----------
zopeedit: no longer use the deprecated 'cd' command

Modified Paths:
--------------
    trunk/dports/www/zopeedit/Portfile

Modified: trunk/dports/www/zopeedit/Portfile
===================================================================
--- trunk/dports/www/zopeedit/Portfile	2008-01-13 11:14:46 UTC (rev 32781)
+++ trunk/dports/www/zopeedit/Portfile	2008-01-13 11:15:07 UTC (rev 32782)
@@ -27,8 +27,7 @@
 }
 
 configure {
-	cd ${worksrcpath}
-	reinplace "s|/usr/bin/${name}|${prefix}/bin/${name}|g" man/${name}.1
+	reinplace "s|/usr/bin/${name}|${prefix}/bin/${name}|g" ${worksrcpath}/man/${name}.1
 }
 
 build.cmd		${python} setup.py
@@ -38,15 +37,16 @@
 destroot.destdir
 destroot.args	--prefix=${destroot}${prefix}
 post-destroot {
-	cd ${worksrcpath}
 	file rename ${destroot}${prefix}/bin/${name}.py \
 		${destroot}${prefix}/bin/${name}
 	xinstall -d -m 0755 ${destroot}${prefix}/share/man/man1
-	xinstall -m 0644 man/${name}.1 ${destroot}${prefix}/share/man/man1
+	xinstall -m 0644 -W ${worksrcpath} man/${name}.1 ${destroot}${prefix}/share/man/man1
 	xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 0644 README.txt ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 0644 CHANGES.txt ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 0644 INSTALL-UNIX.txt ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 0644 LICENSE.txt ${destroot}${prefix}/share/doc/${name}
+	xinstall -m 0644 -W ${worksrcpath} \
+		README.txt \
+		CHANGES.txt \
+		INSTALL-UNIX.txt \
+		LICENSE.txt \
+		${destroot}${prefix}/share/doc/${name}
 }
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080113/07936abc/attachment.html


More information about the macports-changes mailing list