# -*- 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        rbenv rbenv 1.3.2 v
github.tarball_from archive
revision            0
license             MIT
categories          ruby
platforms           any
supported_archs     noarch

maintainers         nomaintainer

description         Simple Ruby Version Management
long_description    {*}${description}

checksums           rmd160  03198a84fbb27ea664bd680c12e26bc6f9a6684f \
                    sha256  e2104f6472d7a8477409c46d4de39562b4d01899148a3dbed73c1d99a0b4bb2a \
                    size    31736

use_configure       no
build {}
destroot {
    copy ${worksrcpath}/libexec ${destroot}${prefix}/libexec/rbenv
    ln -s ../libexec/rbenv/rbenv ${destroot}${prefix}/bin/rbenv
    xinstall -d ${destroot}${prefix}/etc/bash_completion.d
    xinstall ${worksrcpath}/completions/rbenv.bash \
        ${destroot}${prefix}/etc/bash_completion.d/rbenv
}

notes {
    To enable the rbenv subcommand 'install', install port ruby-build.
}
