[105209] trunk/dports/lang/dmd-tools/Portfile

takeshi at macports.org takeshi at macports.org
Sat Apr 13 02:44:13 PDT 2013


Revision: 105209
          https://trac.macports.org/changeset/105209
Author:   takeshi at macports.org
Date:     2013-04-13 02:44:13 -0700 (Sat, 13 Apr 2013)
Log Message:
-----------
dmd-tools: cleanup. closing #35862

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

Modified: trunk/dports/lang/dmd-tools/Portfile
===================================================================
--- trunk/dports/lang/dmd-tools/Portfile	2013-04-13 08:37:44 UTC (rev 105208)
+++ trunk/dports/lang/dmd-tools/Portfile	2013-04-13 09:44:13 UTC (rev 105209)
@@ -4,9 +4,9 @@
 PortSystem          1.0
 PortGroup           github 1.0
 
-set realname        tools
-github.setup        D-Programming-Language ${realname} 2.062 v
-name                dmd-${realname}
+github.setup        D-Programming-Language tools 2.062 v
+revision            1
+name                dmd-${github.project}
 categories          lang
 platforms           darwin
 license             DMD
@@ -18,7 +18,6 @@
     and modeling power, with safety and programmer productivity. \
     This port provides the ancilliary tools for the D programming language compiler.
 homepage            http://dlang.org/
-set dlang           D-Programming-Language
 set site            d-programming-language.org
 checksums           rmd160  ab1a218d2624a1d364fff91fc02eac529a4e6947 \
                     sha256  1d9c208664f71b07c2a2866daca021ed9df002642a3232ff2216f2f61209fe78
@@ -46,30 +45,22 @@
                     DMD=${dmd} \
                     MODEL=${model}
 build {
-    system "
-        cd ${worksrcpath};
+    system -W ${worksrcpath} "
         for f in ${bin}; do
             ${dmd} ${dflags} \$f.d
         done
     "
     foreach f [glob ${prefix}/share/doc/dmd/*.html] {
         set tag [file rootname [file tail ${f}]].tag
-        system "
-            cd ${worksrcpath};
+        system -W ${worksrcpath} "
             ./findtags ${f} > ${tag}
         "
     }
-    system "
-        cd ${worksrcpath};
-        ${dmd} ${dflags} -J. dman.d
-    "
+    system -W ${worksrcpath} "${dmd} ${dflags} -J. dman.d"
 }
 
 destroot {
-    foreach f "${bin} dman" {
-        xinstall -m 755 ${worksrcpath}/${f} \
-            ${destroot}${prefix}/bin
-    }
+    eval xinstall -W ${worksrcpath} -m 755 "${bin} dman" ${destroot}${prefix}/bin
 }
 
 livecheck.type      regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130413/d1895584/attachment.html>


More information about the macports-changes mailing list