[140661] trunk/dports/ruby/rbenv

mojca at macports.org mojca at macports.org
Mon Sep 28 22:58:29 PDT 2015


Revision: 140661
          https://trac.macports.org/changeset/140661
Author:   mojca at macports.org
Date:     2015-09-28 22:58:29 -0700 (Mon, 28 Sep 2015)
Log Message:
-----------
rbenv: fix initialization to specific paths that MacPorts is trying to follow

Modified Paths:
--------------
    trunk/dports/ruby/rbenv/Portfile

Added Paths:
-----------
    trunk/dports/ruby/rbenv/files/
    trunk/dports/ruby/rbenv/files/patch-libexec-rbenv-init.diff

Modified: trunk/dports/ruby/rbenv/Portfile
===================================================================
--- trunk/dports/ruby/rbenv/Portfile	2015-09-29 05:04:38 UTC (rev 140660)
+++ trunk/dports/ruby/rbenv/Portfile	2015-09-29 05:58:29 UTC (rev 140661)
@@ -5,6 +5,7 @@
 PortGroup           github 1.0
 
 github.setup        sstephenson rbenv 0.4.0 v
+revision            1
 license             MIT
 platforms           darwin
 supported_archs     noarch
@@ -17,6 +18,7 @@
 checksums           rmd160  1201f1072c63464ffa829d332c363ddc0d2ef1b6 \
                     sha256  e9b54d2d3669e52aed439094fa92aab36d826573e1a4f8dd65241406204a3e23
 
+patchfiles          patch-libexec-rbenv-init.diff
 use_configure       no
 build {}
 destroot {

Added: trunk/dports/ruby/rbenv/files/patch-libexec-rbenv-init.diff
===================================================================
--- trunk/dports/ruby/rbenv/files/patch-libexec-rbenv-init.diff	                        (rev 0)
+++ trunk/dports/ruby/rbenv/files/patch-libexec-rbenv-init.diff	2015-09-29 05:58:29 UTC (rev 140661)
@@ -0,0 +1,21 @@
+This patch is needed to make
+    eval "$(rbenv init -)"
+work without complaining about
+    -bash: /opt/local/bin/../completions/rbenv.bash: No such file or directory
+
+--- libexec/rbenv-init.orig
++++ libexec/rbenv-init
+@@ -76,8 +76,11 @@ mkdir -p "${RBENV_ROOT}/"{shims,versions}
+ echo 'export PATH="'${RBENV_ROOT}'/shims:${PATH}"'
+ 
+ case "$shell" in
+-bash | zsh )
+-  echo "source \"$root/completions/rbenv.${shell}\""
++bash )
++  echo "source \"$root/etc/bash_completion.d/rbenv\""
++  ;;
++zsh )
++  echo "source \"$root/share/zsh/site-functions/rbenv.zsh_completion\""
+   ;;
+ esac
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150928/807305fd/attachment.html>


More information about the macports-changes mailing list