source: trunk/dports/lang/druntime/Portfile

Last change on this file was 148693, checked in by mcalhoun@…, 18 months ago

dmd ecosystem: version update 2.069.2->2.071.0 (fixes #51340)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- 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
2# $Id: Portfile 148693 2016-05-15 08:39:30Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           muniversal 1.0
7
8github.setup        dlang druntime 2.071.0 v
9categories          lang
10platforms           darwin
11license             Boost-1
12maintainers         takeshi openmaintainer
13description         Low level runtime library for the D programming language
14long_description \
15    Druntime is the minimum library required to support the D programming \
16    language. It includes the system code required to support the garbage \
17    collector, associative arrays, exception handling, array vector operations, \
18    startup/shutdown, etc.
19homepage            http://dlang.org/
20
21checksums           rmd160  7ed028441170847a782bf4190db410c3e1a3f2a3 \
22                    sha256  fab224d31c68b34fd036e9c1d508547fe95ad191b66b966946f337c9943cc480
23
24depends_lib         port:dmd
25
26patchfiles          patch-posix.diff
27
28use_configure       no
29
30post-extract {
31    xinstall -m 0644 ${filespath}/makefile_macports_install ${build.dir}
32}
33
34post-patch {
35    reinplace \
36        "s|__MACPORTS_CFLAGS__|${configure.cflags}|g" \
37        ${worksrcpath}/posix.mak
38}
39
40build.args          -f posix.mak \
41                    CC=${configure.cc} \
42                    DMD=${prefix}/bin/dmd \
43                    DRUNTIME_BASE=${name}
44build.target        ""
45
46if { ![variant_isset universal] } {
47    if { ${build_arch} eq "x86_64" || ${build_arch} eq "ppc64" } {
48        build.args-append MODEL=64
49    } else {
50        build.args-append MODEL=32
51    }
52} else {
53    lappend merger_build_args(x86_64) MODEL=64
54    lappend merger_build_args(i386)   MODEL=32
55    lappend merger_build_args(ppc64)  MODEL=64
56    lappend merger_build_args(ppc)    MODEL=32
57}
58
59destroot.args \
60    -f makefile_macports_install \
61    PREFIX=${prefix}
62
63livecheck.regex     archive/[join ${github.tag_prefix} ""](\[^"-\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.