Date: Wed, 10 Apr 2013 14:35:41 GMT From: Geoff Garside <freebsd@geoffgarside.co.uk> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/177755: [patch] devel/rbenv: fix rbenv-init completions Message-ID: <201304101435.r3AEZfVv046386@red.freebsd.org> Resent-Message-ID: <201304101440.r3AEe4Ve050734@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304101435.r3AEZfVv046386>