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

ryandesign at macports.org ryandesign at macports.org
Sat May 5 15:34:53 PDT 2012


Revision: 92757
          https://trac.macports.org/changeset/92757
Author:   ryandesign at macports.org
Date:     2012-05-05 15:34:50 -0700 (Sat, 05 May 2012)
Log Message:
-----------
dmd: simplify port by using worksrcpath, build.dir, destroot.dir for their intended purposes

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

Modified: trunk/dports/lang/dmd/Portfile
===================================================================
--- trunk/dports/lang/dmd/Portfile	2012-05-05 21:44:34 UTC (rev 92756)
+++ trunk/dports/lang/dmd/Portfile	2012-05-05 22:34:50 UTC (rev 92757)
@@ -42,9 +42,8 @@
                     -Iroot -fno-exceptions -x c++\
                     -D__pascal= -DMARS=1 -DTARGET_OSX=1
 
-pre-build {
-    worksrcdir      ${name}/src
-}
+build.dir           ${worksrcpath}/src
+
 build.args          -f posix.mak \
                     HOST_CC=${configure.cxx} \
                     CC=\"${configure.cxx}\" \
@@ -54,24 +53,23 @@
                     ENVP=\"MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target}\"
 
 destroot {
-    worksrcdir      ${name}/src
 # man
-    xinstall -m 644 -W ${workpath}/dmd/docs/man/man1 \
+    xinstall -m 644 -W ${worksrcpath}/docs/man/man1 \
         dmd.1 dumpobj.1 obj2asm.1 rdmd.1 \
         ${destroot}${prefix}/share/man/man1
-    xinstall -m 644 ${workpath}/dmd/docs/man/man1/dmd.conf.5 \
+    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 ${worksrcpath} \
+    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 ${workpath}/dmd/samples/*.d] {
+    foreach f [glob ${worksrcpath}/samples/*.d] {
         xinstall -m 644 ${f} ${destroot}${prefix}/share/${name}/samples
     }
 # conf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120505/ded797ea/attachment.html>


More information about the macports-changes mailing list