ports/177755: [patch] devel/rbenv: fix rbenv-init completions
Geoff Garside
freebsd at geoffgarside.co.uk
Wed Apr 10 14:40:04 UTC 2013
>Number: 177755
>Category: ports
>Synopsis: [patch] devel/rbenv: fix rbenv-init completions
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Apr 10 14:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Geoff Garside
>Release: 9.1-RELEASE
>Organization:
>Environment:
>Description:
When rbenv is installed into Bash with
eval "$(rbenv init -)"
the following code is run
source "/usr/local/libexec/../completions/rbenv.bash"
which will fail as the completions are in DATADIR/completions, the attached patch uses a post-patch to REINPLACE the "$root/completions" with the expanded DATADIR/completions path so that the correct completion file will be loaded.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruN rbenv.orig/Makefile rbenv/Makefile
--- rbenv.orig/Makefile 2013-01-26 11:48:18.000000000 +0000
+++ rbenv/Makefile 2013-04-10 15:27:52.401983284 +0100
@@ -23,6 +23,10 @@
NO_BUILD= yes
+# Replaces $root/completions in rbenv-init with /usr/local/share/rbenv/completions
+post-patch:
+ @${REINPLACE_CMD} -e "s|\$$root/completions|${DATADIR}/completions|g" ${WRKSRC}/libexec/rbenv-init
+
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/bin/ruby-local-exec ${PREFIX}/bin
@( cd ${WRKSRC}/libexec && ${COPYTREE_BIN} \* ${PREFIX}/libexec )
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list