commit:     0b2bfcb111c88ad5c82ebf3ae6d83d08eaaf0a35
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 24 06:52:07 2015 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Oct 24 06:52:26 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b2bfcb1

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

 dev-ruby/rdoc/rdoc-4.2.0.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dev-ruby/rdoc/rdoc-4.2.0.ebuild b/dev-ruby/rdoc/rdoc-4.2.0.ebuild
index 84b3eb3..4a28db3 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
+}

Reply via email to