# -*- 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
PortGroup           github 1.0

github.setup        dlang dub 1.0.0 v
revision            1
categories          devel
platforms           darwin
license             GPL-3
maintainers         sean openmaintainer
description         Package and build management system for D
long_description    Package and build manager for D applications and libraries.

depends_lib         port:dmd \
                    port:druntime \
                    port:phobos \
                    port:dmd-tools

checksums           rmd160  41d8b57c93fdd0d86621b36ce7cdb05d30fa8f42 \
                    sha256  855c290d2d70eedb5e98d6ef8f9774fd44920314f874838b00caceb77431da7b

# 0.9.24 had a stealth update
dist_subdir         ${name}/${version}_1

use_configure       no

build.cmd           ./build.sh
build.target
build.env           CC=${configure.cc}

destroot {
    xinstall -d -m 755 ${destroot}${prefix}/bin
    copy ${worksrcpath}/bin/dub ${destroot}${prefix}/bin
}

livecheck.regex     archive/[join ${github.tag_prefix} ""](\[^"rba\]+)${extract.suffix}