# -*- 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 set realname tools name dmd-${realname} version 2.060 categories lang platforms darwin license DMD maintainers takeshi openmaintainer description Ancilliary tools for the D programming language compiler long_description \ 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 ancilliary tools for the D programming language compiler. homepage http://dlang.org/ set dlang D-Programming-Language set site d-programming-language.org master_sites https://github.com/${dlang}/${realname}/tarball/v${version}:src \ https://github.com/${dlang}/${site}/tarball/v${version}:doc set dbranch-src f07897 set dbranch-doc 221d4e distname ${dlang}-${realname}-v${version}-0-g${dbranch-src} set src ${distname}${extract.suffix} set doc ${dlang}-${site}-v${version}-0-g${dbranch-doc}${extract.suffix} distfiles ${src}:src \ ${doc}:doc checksums ${src} \ rmd160 cfb17f072f9ca8315b7196b10fdcaab2fa476fec \ sha256 1aa8d01744de36f74a7979669364fa783cd9c7de5e7b4d8985e5d6c38061973f \ ${doc} \ rmd160 d0ac82cad995374fa7bbb5a2b8583144cc2092dd \ sha256 71698d61c65249fde449c5ddc3f85ebd40cde7a8b1568b350760e1a7f7317694 depends_lib port:phobos worksrcdir ${dlang}-${realname}-d92f5a7/ patchfiles patch-findtags.d.diff use_configure no set bin "catdoc ddemangle detab findtags rdmd tolf" set dmd ${prefix}/bin/dmd set dflags "-O -d" set ddocflags " -c -o- -Df" set ddoc "macros.ddoc doc.ddoc" build { system "mv ${workpath}/${dlang}-${site}-* ${workpath}/doc; cd ${workpath}/doc; ${dmd} ${ddocflags}expression.html ${ddoc} expression.dd ${dmd} ${ddocflags}statement.html ${ddoc} statement.dd cd ${worksrcpath}; for f in ${bin}; do ${dmd} ${dflags} \$f.d done ./findtags ../doc/expression.html > expression.tag ./findtags ../doc/statement.html > statement.tag ${dmd} ${dflags} -J. dman.d " } destroot { foreach f "${bin} dman" { xinstall -m 755 ${worksrcpath}/${f} \ ${destroot}${prefix}/bin } }