From: Hans de Graaff Date: Sat, 24 Oct 2015 06:52:07 +0000 (+0200) Subject: dev-ruby/rdoc: make sure rdoc exists, bug 562980 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=0b2bfcb111c88ad5c82ebf3ae6d83d08eaaf0a35;p=gentoo.git 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 --- 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 +}