# $Id$

PortSystem 1.0
PortGroup       github 1.0

github.setup    typesafehub zinc 0.3.5.3 v
categories      devel java
license         Apache-2
maintainers     openmaintainer blair
description     A stand-alone version of sbt's incremental scala compiler
long_description \
                Zinc is a stand-alone version of sbt's incremental scala \
                compiler.
platforms       darwin
supported_archs noarch

master_sites    http://downloads.typesafe.com/zinc/${version}

use_configure   no
build           {}

extract.suffix  .tgz
checksums       md5    a1e71c996bfc875acaa32ea192ef8df8 \
                sha1   ff91434ce32ba4fcfadb8621896edfd271a9bd21 \
                sha256 92bdeb4d1ba1a08f8a3aa1a0b10d36a06060c47f16fc523856f3ada598362020

destroot {
    set sharedir ${destroot}${prefix}/share
    set zincdir ${sharedir}/${name}
    set bindir ${zincdir}/bin

    xinstall -d -m 755 ${sharedir}
    file copy ${worksrcpath} ${zincdir}

    foreach f {nailgun zinc} {
        file attributes ${bindir}/${f} -permissions 0755
        ln -s ../share/${name}/bin/${f} \
            ${destroot}${prefix}/bin/${f}
    }
}