# -*- 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
github.setup dlang dlang.org 2.088.0 v
maintainers {takeshi @tenomoto} openmaintainer
description HTML files for dman of the D programming language compiler
D is a language with C-like syntax and static typing. \
It pragmatically combines efficiency, control, \
and modeling power, with safety and programmer productivity. \
This port provides the html files required to build the dman command of \
the D programming language compiler.
homepage http://dlang.org/
checksums rmd160 613ec4cf4bb12d7b2105b8aada112e9cd2b70d23 \
sha256 70ca50d4ff947f8ca1654e982c98ea0378433a2d5c8d1ed628617e2879db2d2a \
depends_build port:phobos
if {${build_arch} eq "x86_64"} {
set dmd ${prefix}/bin/dmd
set ddocflags " -c -o- -Df"
set ddoc "macros.ddoc doc.ddoc"
set stddocflags "-m${model} -d -c -o- -version=StdDoc"
file mkdir ${worksrcpath}/dmd
${dmd} ${ddocflags}dmd/expression.html ${ddoc} spec/expression.dd;
${dmd} ${ddocflags}dmd/statement.html ${ddoc} spec/statement.dd
foreach f [glob ${prefix}/include/phobos/std/*.d] {
set html std_[file rootname [file tail ${f}]].html
${dmd} ${stddocflags} ${stddoc} -Dfdmd/${html} ${f}
xinstall -d -m 755 ${destroot}${prefix}/share/doc
file copy ${worksrcpath}/dmd ${destroot}${prefix}/share/doc