[148213] trunk/dports/lang

mcalhoun at macports.org mcalhoun at macports.org
Sat Apr 30 08:07:17 PDT 2016


Revision: 148213
          https://trac.macports.org/changeset/148213
Author:   mcalhoun at macports.org
Date:     2016-04-30 08:07:17 -0700 (Sat, 30 Apr 2016)
Log Message:
-----------
dmd-bootstrap: new port to prevent dmd from downloading files in build phase

Added Paths:
-----------
    trunk/dports/lang/dmd-bootstrap/
    trunk/dports/lang/dmd-bootstrap/Portfile

Added: trunk/dports/lang/dmd-bootstrap/Portfile
===================================================================
--- trunk/dports/lang/dmd-bootstrap/Portfile	                        (rev 0)
+++ trunk/dports/lang/dmd-bootstrap/Portfile	2016-04-30 15:07:17 UTC (rev 148213)
@@ -0,0 +1,63 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                dmd-bootstrap
+# version should be same as HOST_DMD_VER found in posix.mak from dmd port
+version             2.067.1
+categories          lang
+platforms           darwin
+license             {GPL-1 Artistic-1} Boost-1 Restrictive
+maintainers         mcalhoun openmaintainer
+description         dmd Digital Mars D bootstrap compiler
+long_description \
+                    This is a package that installs a binary \
+                    bootstrap dmd compiler.
+homepage            http://dlang.org/
+master_sites        http://downloads.dlang.org/releases/2.x/${version}
+
+supported_archs     x86_64
+universal_variant   no
+
+use_zip             yes
+distfiles           dmd.${version}.osx${extract.suffix}
+checksums           rmd160 48d087dec7c07951a3920c0881b34713a8b3ef1e \
+                    sha256 aa76bb83c38b3f7495516eb08977fc9700c664d7a945ba3ac3c0004a6a8509f2
+
+worksrcdir          dmd2
+
+use_configure       no
+
+build {}
+
+destroot {
+    xinstall -d -m 0755 ${destroot}${prefix}/libexec/${name}/bin
+    xinstall -d -m 0755 ${destroot}${prefix}/libexec/${name}/lib
+    xinstall -d -m 0755 ${destroot}${prefix}/libexec/${name}/include/druntime
+    xinstall -d -m 0755 ${destroot}${prefix}/libexec/${name}/include/phobos
+
+    # only install the one program needed to bootstrap dmd
+    xinstall -m 0755 \
+        -W ${worksrcpath}/osx/bin \
+        dmd \
+        ${destroot}${prefix}/libexec/${name}/bin
+
+    # install runtime environment
+    file copy ${worksrcpath}/src/druntime/import  ${destroot}${prefix}/libexec/${name}/include/druntime
+    file copy ${worksrcpath}/src/phobos/etc       ${destroot}${prefix}/libexec/${name}/include/phobos
+    file copy ${worksrcpath}/src/phobos/std       ${destroot}${prefix}/libexec/${name}/include/phobos
+    xinstall -m 0644 \
+        {*}[glob ${worksrcpath}/src/phobos/*.d]   ${destroot}${prefix}/libexec/${name}/include/phobos
+
+    xinstall -m 0644 \
+        -W ${worksrcpath}/osx/lib \
+        libphobos2.a \
+        ${destroot}${prefix}/libexec/${name}/lib
+
+    # install configuration file
+    set conf [open ${destroot}${prefix}/libexec/${name}/bin/dmd.conf w]
+    puts ${conf} "\[Environment\]
+DFLAGS=-I%@P%/../include/phobos -I%@P%/../include/druntime/import -L-L%@P%/../lib"
+    close ${conf}
+}


Property changes on: trunk/dports/lang/dmd-bootstrap/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160430/fae2c1dd/attachment.html>


More information about the macports-changes mailing list