# -*- 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 89712 2012-02-07 21:20:59Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       github 1.0

# no real version available (no tags inside git repo)
github.setup    basho rebar 0.0.2
categories      erlang devel
platforms       darwin
maintainers     uwe-arzt.de:mail openmaintainer
supported_archs noarch
license         Apache-2.0

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).
                 
homepage            ${github.homepage}/wiki

fetch.type          git
git.branch          d203ff17d79a3a3cd6dc01b77e53268483251d22

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
}

