Changeset 147496 for trunk/dports/ruby


Ignore:
Timestamp:
Apr 6, 2016, 12:43:24 AM (4 years ago)
Author:
mojca@…
Message:

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

Location:
trunk/dports/ruby/rbenv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/ruby/rbenv/Portfile

    r147483 r147496  
    66
    77github.setup        rbenv rbenv 1.0.0 v
     8revision            1
    89license             MIT
    910platforms           darwin
     
    2425build {}
    2526destroot {
    26     delete ${destroot}${prefix}/bin
    27     copy ${worksrcpath}/libexec ${destroot}${prefix}/bin
     27    copy ${worksrcpath}/libexec ${destroot}${prefix}/libexec/rbenv
     28    ln -s ../libexec/rbenv/rbenv ${destroot}${prefix}/bin/rbenv
    2829    xinstall -d ${destroot}${prefix}/etc/bash_completion.d
    2930    xinstall ${worksrcpath}/completions/rbenv.bash \
  • trunk/dports/ruby/rbenv/files/patch-libexec-rbenv-init.diff

    r147483 r147496  
    1919+case "$shell" in
    2020+bash )
    21 +  echo "source \"$root/etc/bash_completion.d/rbenv\""
     21+  echo "source \"$root/../etc/bash_completion.d/rbenv\""
    2222+  ;;
    2323+zsh )
    24 +  echo "source \"$root/share/zsh/site-functions/rbenv.zsh_completion\""
     24+  echo "source \"$root/../share/zsh/site-functions/rbenv.zsh_completion\""
    2525+  ;;
    2626+# support for fish and other shells missing
Note: See TracChangeset for help on using the changeset viewer.