Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 264019 Details for
Bug 356669
app-eselect/eselect-ruby: patch to improve cooperation with gem command
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Patch against current ruby.ebuild
ruby.eselect.patch (text/plain), 1.47 KB, created by
Sven Schwyn (svoop)
on 2011-02-27 09:30:11 UTC
(
hide
)
Description:
Patch against current ruby.ebuild
Filename:
MIME Type:
Creator:
Sven Schwyn (svoop)
Created:
2011-02-27 09:30:11 UTC
Size:
1.47 KB
patch
obsolete
>--- ruby.eselect-ORIG 2011-02-24 16:44:50.299997739 +0100 >+++ ruby.eselect 2011-02-24 18:31:40.046819433 +0100 >@@ -7,6 +7,7 @@ > VERSION="20100603" > > bindir=/usr/bin >+localbindir=/usr/local/bin > man1dir=/usr/share/man/man1 > > find_targets() { >@@ -83,10 +84,27 @@ > > create_man_symlinks ${version} > >+ create_symlinks_to_executables ${version} >+ > write_list_start "Successfully switched to profile:" > write_kv_list_entry "${target}" "" > } > >+create_symlinks_to_executables() { >+ local path="${ROOT}${localbindir}/" >+ local version=${1} >+ >+ for script in $( grep -il "# this file was generated by rubygems" "${path}"* 2>/dev/null ); do >+ if [[ ! $script =~ (18|19|20|ee)$ ]]; then >+ rm -f "${script}" >+ fi >+ done >+ >+ for script in $( grep -il "# this file was generated by rubygems" "${path}"*${version} 2>/dev/null ); do >+ ln -s "${script}" "${script%${version}}" >+ done >+} >+ > ### show action ### > describe_show() { > echo "Prints the current configuration." >@@ -174,6 +192,18 @@ > create_symlinks ${target} > } > >+### rebuild action ### >+describe_rebuild() { >+ echo "Rebuild symlinks to executables installed via 'gem install'." >+} >+ >+do_rebuild() { >+ if [[ -L "${ROOT}${bindir}/ruby" ]] ; then >+ version=$(echo "$(canonicalise ${ROOT}${bindir}/ruby )" | sed -n -e 's/^.*ruby//p' ) >+ create_symlinks_to_executables ${version} >+ fi >+} >+ > ### cleanup action ### > describe_cleanup() { > echo "This action is not to be called manually."
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 356669
: 264019