source: trunk/dports/lang/dmd-doc/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.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
6
7github.setup        dlang dlang.org 2.071.0 v
8name                dmd-doc
9categories          lang
10platforms           darwin
11license             DMD
12maintainers         takeshi openmaintainer
13supported_archs     noarch
14
15description         HTML files for dman of the D programming language compiler
16long_description \
17    D is a language with C-like syntax and static typing. \
18    It pragmatically combines efficiency, control, \
19    and modeling power, with safety and programmer productivity. \
20    This port provides the html files required to build the dman command of \
21    the D programming language compiler.
22homepage            http://dlang.org/
23
24checksums           rmd160  0946e754810c59508ab63706bdd7abd7a0c4d2e0 \
25                    sha256  17c2c20c53a01447656a2618a0d63d455f72f68b041b908ae0074617c67cd15c
26
27depends_build       port:phobos
28
29use_configure       no
30
31if {${build_arch} eq "x86_64"} {
32    set model 64
33} else {
34    set model 32
35}
36
37set dmd ${prefix}/bin/dmd
38set dflags "-O -d"
39set ddocflags " -c -o- -Df"
40set ddoc "macros.ddoc doc.ddoc"
41set stddoc "std.ddoc"
42set stddocflags "-m${model} -d -c -o- -version=StdDoc"
43build {
44   file mkdir ${worksrcpath}/dmd
45    system "
46        cd ${worksrcpath};
47        ${dmd} ${ddocflags}dmd/expression.html ${ddoc} spec/expression.dd;
48        ${dmd} ${ddocflags}dmd/statement.html ${ddoc} spec/statement.dd
49    "
50    foreach f [glob ${prefix}/include/phobos/std/*.d] {
51        set html std_[file rootname [file tail ${f}]].html
52        system "
53            cd ${worksrcpath};
54            ${dmd} ${stddocflags} ${stddoc} -Dfdmd/${html} ${f}
55        "
56    }
57}
58
59destroot {
60    xinstall -d -m 755 ${destroot}${prefix}/share/doc
61    file copy ${worksrcpath}/dmd ${destroot}${prefix}/share/doc
62}
63
64livecheck.regex     archive/[join ${github.tag_prefix} ""](\[^"-\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.