[92765] trunk/dports/lang/dmd/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat May 5 17:22:46 PDT 2012


Revision: 92765
          https://trac.macports.org/changeset/92765
Author:   ryandesign at macports.org
Date:     2012-05-05 17:22:45 -0700 (Sat, 05 May 2012)
Log Message:
-----------
dmd: simplify destroot by letting xinstall create intermediate directories automatically instead of doing so explicitly in the port, and using eval to xinstall the glob of files directly rather than using a foreach loop

Modified Paths:
--------------
    trunk/dports/lang/dmd/Portfile

Modified: trunk/dports/lang/dmd/Portfile
===================================================================
--- trunk/dports/lang/dmd/Portfile	2012-05-06 00:16:52 UTC (rev 92764)
+++ trunk/dports/lang/dmd/Portfile	2012-05-06 00:22:45 UTC (rev 92765)
@@ -60,18 +60,14 @@
     xinstall -m 644 ${worksrcpath}/docs/man/man1/dmd.conf.5 \
         ${destroot}${prefix}/share/man/man5
 # bin
-    xinstall -d -m 755 ${destroot}${prefix}/lib/${name}
     xinstall -d -m 755 ${destroot}${prefix}/lib/${name}/bin
     xinstall -m 755 -W ${destroot.dir} \
         dmd idgen impcnvgen optabgen \
         ${destroot}${prefix}/lib/${name}/bin
     ln -s ${prefix}/lib/${name}/bin/dmd ${destroot}${prefix}/bin
 # samples
-    xinstall -d -m 755 ${destroot}${prefix}/share/${name}
     xinstall -d -m 755 ${destroot}${prefix}/share/${name}/samples
-    foreach f [glob ${worksrcpath}/samples/*.d] {
-        xinstall -m 644 ${f} ${destroot}${prefix}/share/${name}/samples
-    }
+    eval xinstall -m 644 [glob ${worksrcpath}/samples/*.d] ${destroot}${prefix}/share/${name}/samples
 # conf
     xinstall -d -m 755 ${destroot}${prefix}/etc/${name}
     set conf [open ${destroot}${prefix}/etc/${name}/${name}.conf w]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120505/67e07c5f/attachment.html>


More information about the macports-changes mailing list