# -*- 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

PortSystem      1.0
PortGroup       github 1.0

github.setup    rebar rebar 2.6.4
categories      erlang devel
platforms       darwin
maintainers     {ciserlohn @ci42}
supported_archs noarch
license         Apache-2

description     Rebar is an Erlang build tool that makes it easy to compile \
                    and test Erlang applications, port drivers and releases.
long_description    Rebar is a self-contained Erlang script, so it's easy to \
                    distribute or even embed directly in a project. Where possible, \
                    Rebar uses standard Erlang/OTP conventions for project \
                    structures, thus minimizing the amount of build configuration \
                    work. Rebar also provides dependency management, enabling \
                    application writers to easily re-use common libraries from a \
                    variety of locations (Git, Hg, etc).
                 
checksums           rmd160  8415c14c4de7f6d9951fd2804b5b84f01ce8af10 \
                    sha256  275e7f5ae911d6025832151e2f7fe40e1d02535843cb751720cc0e9d910bb864

depends_lib         port:erlang

# configure and build phase
use_configure       no

# destroot phase
destroot {
  xinstall -m 755 ${worksrcpath}/rebar ${destroot}${prefix}/bin
}