From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-842131-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 2D85E13888F
	for <garchives@archives.gentoo.org>; Sat, 24 Oct 2015 06:52:38 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 888D2E080C;
	Sat, 24 Oct 2015 06:52:35 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 2C238E080C
	for <gentoo-commits@lists.gentoo.org>; Sat, 24 Oct 2015 06:52:34 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 16704340B3B
	for <gentoo-commits@lists.gentoo.org>; Sat, 24 Oct 2015 06:52:33 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 1637B173F
	for <gentoo-commits@lists.gentoo.org>; Sat, 24 Oct 2015 06:52:29 +0000 (UTC)
From: "Hans de Graaff" <graaff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" <graaff@gentoo.org>
Message-ID: <1445669546.0b2bfcb111c88ad5c82ebf3ae6d83d08eaaf0a35.graaff@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/rdoc/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-ruby/rdoc/rdoc-4.2.0.ebuild
X-VCS-Directories: dev-ruby/rdoc/
X-VCS-Committer: graaff
X-VCS-Committer-Name: Hans de Graaff
X-VCS-Revision: 0b2bfcb111c88ad5c82ebf3ae6d83d08eaaf0a35
X-VCS-Branch: master
Date: Sat, 24 Oct 2015 06:52:29 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: d8324074-2d7c-4c9c-bb79-1cf370bdc28d
X-Archives-Hash: 8a41135c2d23a20876ca897aad14272c

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
+}