[32660] trunk/dports/devel/cvsgraph/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Jan 10 05:10:51 PST 2008


Revision: 32660
          http://trac.macosforge.org/projects/macports/changeset/32660
Author:   ryandesign at macports.org
Date:     2008-01-10 05:09:48 -0800 (Thu, 10 Jan 2008)

Log Message:
-----------
cvsgraph: don't use deprecated 'cd' command

Modified Paths:
--------------
    trunk/dports/devel/cvsgraph/Portfile

Modified: trunk/dports/devel/cvsgraph/Portfile
===================================================================
--- trunk/dports/devel/cvsgraph/Portfile	2008-01-10 13:06:25 UTC (rev 32659)
+++ trunk/dports/devel/cvsgraph/Portfile	2008-01-10 13:09:48 UTC (rev 32660)
@@ -19,20 +19,18 @@
 depends_lib     port:gd2
 
 post-patch {
-    cd ${worksrcpath}
-    reinplace "s|/usr/local|${prefix}|g" ${name}.1 README
+    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/${name}.1 ${worksrcpath}/README
 }
 
 configure.args  --with-gd-inc=${prefix}/include \
                 --with-gd-lib=${prefix}/lib
 
 destroot {
-    cd ${worksrcpath}
-    xinstall -m 0755 ${name} ${destroot}${prefix}/bin/
-    xinstall -m 0644 ${name}.1 ${destroot}${prefix}/share/man/man1/
-    xinstall -m 0644 ${name}.conf ${destroot}${prefix}/etc/${name}.conf.sample
-    xinstall -m 0644 ${name}.conf.5 ${destroot}${prefix}/share/man/man5/
+    xinstall -m 0755 -W ${worksrcpath} ${name} ${destroot}${prefix}/bin/
+    xinstall -m 0644 -W ${worksrcpath} ${name}.1 ${destroot}${prefix}/share/man/man1/
+    xinstall -m 0644 -W ${worksrcpath} ${name}.conf ${destroot}${prefix}/etc/${name}.conf.sample
+    xinstall -m 0644 -W ${worksrcpath} ${name}.conf.5 ${destroot}${prefix}/share/man/man5/
     xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
-    xinstall -m 0644 ChangeLog contrib/cvsgraphwrapper.php3 LICENSE contrib/mkimage.php3 README ${destroot}${prefix}/share/doc/${name}/
+    xinstall -m 0644 -W ${worksrcpath} ChangeLog contrib/cvsgraphwrapper.php3 LICENSE contrib/mkimage.php3 README ${destroot}${prefix}/share/doc/${name}/
 }
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080110/68d81308/attachment.html


More information about the macports-changes mailing list