source: trunk/dports/ruby/rbenv/Portfile

Last change on this file was 147496, checked in by mojca@…, 16 months ago

rbenv: executables should be in libexec rather than in bin, else 'gem install' sees binaries from MacPorts

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# -*- 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
2# $Id: Portfile 147496 2016-04-06 00:43:24Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        rbenv rbenv 1.0.0 v
8revision            1
9license             MIT
10platforms           darwin
11supported_archs     noarch
12
13maintainers         mojca openmaintainer
14
15description         Simple Ruby Version Management
16long_description    ${description}
17
18checksums           rmd160  602fc2c045520e65c1bc4175c81bee13dd4446b4 \
19                    sha256  a5b2ee98492af7195539d3f05791c9ec7c11bed269d5bfba3ba9dbeb2d97dd40
20
21worksrcdir          rbenv-rbenv-3997a39
22
23patchfiles          patch-libexec-rbenv-init.diff
24use_configure       no
25build {}
26destroot {
27    copy ${worksrcpath}/libexec ${destroot}${prefix}/libexec/rbenv
28    ln -s ../libexec/rbenv/rbenv ${destroot}${prefix}/bin/rbenv
29    xinstall -d ${destroot}${prefix}/etc/bash_completion.d
30    xinstall ${worksrcpath}/completions/rbenv.bash \
31        ${destroot}${prefix}/etc/bash_completion.d/rbenv
32    xinstall -d ${destroot}${prefix}/share/zsh/site-functions
33    xinstall ${worksrcpath}/completions/rbenv.zsh \
34        ${destroot}${prefix}/share/zsh/site-functions/rbenv.zsh_completion
35}
Note: See TracBrowser for help on using the repository browser.