[36065] trunk/dports/devel/bugzilla/Portfile

wsiegrist at apple.com wsiegrist at apple.com
Wed Apr 16 09:44:48 PDT 2008


Revision: 36065
          http://trac.macosforge.org/projects/macports/changeset/36065
Author:   wsiegrist at apple.com
Date:     2008-04-16 09:44:46 -0700 (Wed, 16 Apr 2008)

Log Message:
-----------
Removed the use of "cd" and made subsequent find/file operatations specify the worksrcpath.

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

Modified: trunk/dports/devel/bugzilla/Portfile
===================================================================
--- trunk/dports/devel/bugzilla/Portfile	2008-04-16 16:26:16 UTC (rev 36064)
+++ trunk/dports/devel/bugzilla/Portfile	2008-04-16 16:44:46 UTC (rev 36065)
@@ -55,17 +55,19 @@
 
 patchfiles		patch-checksetup.pl
 post-patch {
-	system "cd ${worksrcpath}"
-	foreach item [exec find . -type f -name .cvsignore] {
+	foreach item [exec find ${worksrcpath} -type f -name .cvsignore] {
 		file delete -force ${item}
 	}
-	foreach item [exec find . -type d -name CVS] {
+	foreach item [exec find ${worksrcpath} -type d -name CVS] {
 		file delete -force ${item}
 	}
-	foreach item [glob *.cgi *.pl contrib/*.pl docs/*.pl] {
+	foreach item [glob ${worksrcpath}/*.cgi ${worksrcpath}/*.pl \
+                           ${worksrcpath}/contrib/*.pl ${worksrcpath}/docs/*.pl] {
 		reinplace "s%^#!.*perl%#!${prefix}/bin/perl%" ${item}
 	}
-	foreach item [glob *.pl contrib/*.pl Bugzilla/*.pm docs/html/*.html docs/txt/*.txt docs/xml/*.xml] {
+	foreach item [glob ${worksrcpath}/*.pl ${worksrcpath}/contrib/*.pl \
+                           ${worksrcpath}/Bugzilla/*.pm ${worksrcpath}/docs/html/*.html \
+                           ${worksrcpath}/docs/txt/*.txt ${worksrcpath}/docs/xml/*.xml] {
 		reinplace "s%/usr/lib/sendmail%/usr/sbin/sendmail%g" ${item}
 	}
 }
@@ -109,12 +111,13 @@
 
 	set docPath "${prefix}/share/doc/${name}"
 	xinstall -d -m 0755 ${destroot}${docPath}
-	system "cd ${worksrcpath}"
 	xinstall -m 0644 \
-		README QUICKSTART UPGRADING UPGRADING-pre-2.8 \
+		${worksrcpath}/README ${worksrcpath}/QUICKSTART \
+                ${worksrcpath}/UPGRADING \
+                ${worksrcpath}/UPGRADING-pre-2.8 \
 		${destroot}${docPath}/
 	ui_info "copying docs\n     to ${destroot}${docPath}/guide"
-	system "cp -R docs ${destroot}${docPath}/guide"
+	system "cp -R ${worksrcpath}/docs ${destroot}${docPath}/guide"
 	foreach item [exec find ${destroot}${docPath}/guide -type f] {
 		file attributes ${item} -permissions go+r
 	}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080416/58ba5109/attachment.html


More information about the macports-changes mailing list