[56464] trunk/dports/devel/perforce/Portfile

ryandesign at macports.org ryandesign at macports.org
Fri Aug 28 01:31:41 PDT 2009


Revision: 56464
          http://trac.macports.org/changeset/56464
Author:   ryandesign at macports.org
Date:     2009-08-28 01:31:41 -0700 (Fri, 28 Aug 2009)
Log Message:
-----------
perforce: simplify destroot using xinstall, and no longer require being root to install this port

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

Modified: trunk/dports/devel/perforce/Portfile
===================================================================
--- trunk/dports/devel/perforce/Portfile	2009-08-28 08:28:32 UTC (rev 56463)
+++ trunk/dports/devel/perforce/Portfile	2009-08-28 08:31:41 UTC (rev 56464)
@@ -39,10 +39,10 @@
 build {}
 
 destroot {
-    system "cd ${worksrcpath} && install -o root -m 755 -c p4 ${destroot}${prefix}/bin"
-    system "cd ${worksrcpath} && install -o root -m 755 -c p4d ${destroot}${prefix}/sbin"
-    system "cd ${worksrcpath} && install -o root -m 644 -c p4.1 ${destroot}${prefix}/share/man/man1"
-    system "cd ${worksrcpath} && install -o root -m 644 -c p4d.1 ${destroot}${prefix}/share/man/man8"
+    xinstall -W ${worksrcpath} p4 ${destroot}${prefix}/bin
+    xinstall -W ${worksrcpath} p4d ${destroot}${prefix}/sbin
+    xinstall -W ${worksrcpath} -m 644 p4.1 ${destroot}${prefix}/share/man/man1
+    xinstall -W ${worksrcpath} -m 644 p4d.1 ${destroot}${prefix}/share/man/man8
 }
 
 variant server {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090828/af4606f0/attachment.html>


More information about the macports-changes mailing list