diff options
-rw-r--r-- | eselect-ruby/ruby.eselect | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/eselect-ruby/ruby.eselect b/eselect-ruby/ruby.eselect index 0a01747..aa30fb0 100644 --- a/eselect-ruby/ruby.eselect +++ b/eselect-ruby/ruby.eselect @@ -41,9 +41,15 @@ check_target() { } remove_symlinks() { - rm -f ${EROOT}${bindir}/{ruby,gem,irb,erb,ri,rdoc,testrb} && \ + rm -f ${EROOT}${bindir}/{ruby,gem,irb,erb,ri,rdoc} && \ rm -f ${EROOT}${man1dir}/{ruby,irb,erb,ri}.1* + # Remove legacy testrb link if it still exists. + local testrb="${EROOT}${bindir}/testrb" + if [[ -L ${testrb} ]]; then + rm -f ${testrb} + fi + # Remove unversioned legacy link set by ruby 1.8 and earlier # see bug 582672 local link="${EROOT}${libdir}/libruby.so" @@ -72,7 +78,7 @@ create_symlinks() { local path="${EROOT}${bindir}/" # these have to work - for f in "ruby" "irb" "erb" "ri" "testrb" "rdoc" ; do + for f in "ruby" "irb" "erb" "ri" "rdoc" ; do ln -s "${f}${version}" "${path}${f}" || \ die -q "Could not set ${f} symlink" done |