summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2015-10-24 08:52:07 +0200
committerHans de Graaff <graaff@gentoo.org>2015-10-24 08:52:26 +0200
commit0b2bfcb111c88ad5c82ebf3ae6d83d08eaaf0a35 (patch)
treeb2791ce0d1e6b41cbdf5c0798fe5aa5bf2e73a8f /dev-ruby/rdoc
parentdev-ruby/rdoc: add 4.2.0 (diff)
downloadgentoo-0b2bfcb111c88ad5c82ebf3ae6d83d08eaaf0a35.tar.gz
gentoo-0b2bfcb111c88ad5c82ebf3ae6d83d08eaaf0a35.tar.bz2
gentoo-0b2bfcb111c88ad5c82ebf3ae6d83d08eaaf0a35.zip
dev-ruby/rdoc: make sure rdoc exists, bug 562980
Make sure to (re)eselect ruby when the rdoc symlink does not exist (anymore), similar to what we do in dev-ruby/rubygems. Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-ruby/rdoc')
-rw-r--r--dev-ruby/rdoc/rdoc-4.2.0.ebuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/dev-ruby/rdoc/rdoc-4.2.0.ebuild b/dev-ruby/rdoc/rdoc-4.2.0.ebuild
index 84b3eb3e24e3..4a28db3a18c3 100644
--- a/dev-ruby/rdoc/rdoc-4.2.0.ebuild
+++ b/dev-ruby/rdoc/rdoc-4.2.0.ebuild
@@ -90,3 +90,9 @@ all_ruby_install() {
done
done
}
+
+pkg_postinst() {
+ if [[ ! -n $(readlink "${ROOT}"usr/bin/rdoc) ]] ; then
+ eselect ruby set $(eselect --brief --colour=no ruby show | head -n1)
+ fi
+}