From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2D85E13888F for ; 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 ; 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 ; 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 ; Sat, 24 Oct 2015 06:52:29 +0000 (UTC) From: "Hans de Graaff" 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" 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: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail 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 gentoo org> AuthorDate: Sat Oct 24 06:52:07 2015 +0000 Commit: Hans de Graaff gentoo 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 +}