Modified: trunk/dports/ruby/rbenv/Portfile (140660 => 140661)
--- 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 (0 => 140661)
--- 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
+