# -*- 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: Portfile 105570 2013-04-25 14:24:24Z ciserlohn@macports.org $

PortSystem      1.0
PortGroup       github 1.0

github.setup    basho rebar 2.0.0
categories      erlang devel
platforms       darwin
maintainers     uwe-arzt.de:mail openmaintainer
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  25d2cf63ae346cb92a11ab8d84e43f848b9ff734 \
                    sha256  237561ee22e221924edbe7364b556151d1be89a3c661a1d8983c7b99384ea978

depends_lib         port:erlang

# configure and build phase
use_configure       no
build.cmd           ./bootstrap

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

