Ticket #46017: Portfile

File Portfile, 1.4 KB (added by luc-j-bourhis (Luc J. Bourhis), 10 years ago)
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$
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        D-Programming-Language dub 0.9.22 v
8categories          devel
9platforms           darwin
10license             MIT
11description         Package and build management system for D
12long_description    DUB is a build tool for D projects with support for automatically  \
13                    retrieving dependencies and integrating them in the build process. \
14                    The design emphasis is on maximum simplicity for simple projects,  \
15                    while providing the opportunity to customize things when needed.
16homepage            http://code.dlang.org/about
17maintainers         mac.com:luc_j_bourhis openmaintainer
18
19checksums           rmd160 524457873ffc9963bb440ff4a91035f51e89204c \
20                    sha256 4acc573912d3b10739190be756305ef9f8732bd050549b4126e187f7ce073b3d
21
22depends_lib         port:curl \
23                    port:dmd
24
25patch {
26    reinplace "s/GITVER=unknown/GITVER=${version}/" ${worksrcpath}/build.sh
27}
28
29use_configure       no
30
31build.cmd           ./build.sh
32build.target        ""
33
34test.run            yes
35test.env-append     DUB=./bin/dub \
36                    COMPILER=${prefix}/bin/dmd
37test.cmd            ./test/run-unittest.sh
38
39destroot {
40    xinstall -m 755 ${worksrcpath}/bin/dub ${destroot}${prefix}/bin
41}