# -*- 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 105694 2013-05-02 14:21:00Z kimuraw@macports.org $

PortSystem          1.0
PortGroup           github 1.0

github.setup        sstephenson rbenv 0.4.0 v
license             MIT
platforms           darwin
supported_archs     noarch

maintainers         nomaintainer

description         Simple Ruby Version Management
long_description    ${description}

checksums           rmd160  1201f1072c63464ffa829d332c363ddc0d2ef1b6 \
                    sha256  e9b54d2d3669e52aed439094fa92aab36d826573e1a4f8dd65241406204a3e23

use_configure       no
build {}
destroot {
    delete ${destroot}${prefix}/bin
    copy ${worksrcpath}/libexec ${destroot}${prefix}/bin
    xinstall -d ${destroot}${prefix}/etc/bash_completion.d
    xinstall ${worksrcpath}/completions/rbenv.bash \
        ${destroot}${prefix}/etc/bash_completion.d/rbenv
    xinstall -d ${destroot}${prefix}/share/zsh/site-functions
    xinstall ${worksrcpath}/completions/rbenv.zsh \
        ${destroot}${prefix}/share/zsh/site-functions/rbenv.zsh_completion
}
