source: trunk/dports/lang/dmd-tools/Portfile

Last change on this file was 148693, checked in by mcalhoun@…, 17 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.2 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 tools 2.071.0 v
9name                dmd-${github.project}
10categories          lang
11platforms           darwin
12license             DMD
13maintainers         takeshi openmaintainer
14description         Ancilliary tools for the D programming language compiler
15long_description \
16    D is a language with C-like syntax and static typing. \
17    It pragmatically combines efficiency, control, \
18    and modeling power, with safety and programmer productivity. \
19    This port provides the ancilliary tools for the D programming language compiler.
20homepage            http://dlang.org/
21
22checksums           rmd160  7b4653a25d06286dd0da489ca8a2f88aa09d5a29 \
23                    sha256  c930b4393b2829002f089d29e77a56d4420e80634cbfd6c21bd19874581703ec
24
25depends_lib         port:phobos \
26                    port:curl
27
28use_configure       no
29
30patchfiles          patch-posix.diff
31
32build.args          -f posix.mak \
33                    DRUNTIME=${prefix}/lib/libdruntime.a \
34                    DRUNTIME_PATH=${prefix}/include/druntime \
35                    CC=${configure.cc} \
36                    DMD=${prefix}/bin/dmd
37
38destroot.args       -f posix.mak PREFIX=${prefix}
39
40if { ![variant_isset universal] } {
41    if { ${build_arch} eq "x86_64" || ${build_arch} eq "ppc64" } {
42        build.args-append    MODEL=64
43        destroot.args-append MODEL=64
44    } else {
45        build.args-append    MODEL=32
46        destroot.args-append MODEL=32
47    }
48} else {
49    lappend merger_build_args(x86_64)    MODEL=64
50    lappend merger_build_args(i386)      MODEL=32
51    lappend merger_build_args(ppc64)     MODEL=64
52    lappend merger_build_args(ppc)       MODEL=32
53
54    lappend merger_destroot_args(x86_64) MODEL=64
55    lappend merger_destroot_args(i386)   MODEL=32
56    lappend merger_destroot_args(ppc64)  MODEL=64
57    lappend merger_destroot_args(ppc)    MODEL=32
58}
59
60post-destroot {
61    xinstall -W ${worksrcpath} -m 644 man/man1/rdmd.1 ${destroot}${prefix}/share/man/man1
62}
63
64livecheck.regex     archive/[join ${github.tag_prefix} ""](\[^"-\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.