From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 973C21396D0 for ; Thu, 17 Aug 2017 08:42:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 52B841FC0F5; Thu, 17 Aug 2017 08:37:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0BBD51FC0F1 for ; Thu, 17 Aug 2017 08:37:41 +0000 (UTC) Received: from localhost.localdomain (d202-252.icpnet.pl [109.173.202.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id A65633418DC; Thu, 17 Aug 2017 08:37:38 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: cluster@gentoo.org, robbat2@gentoo.org, toolchain@gentoo.org, suse@gentoo.org, llvm@gentoo.org, =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 10/12] sys-devel/icecream: Use dev-util/shadowman for postinst/prerm Date: Thu, 17 Aug 2017 10:36:39 +0200 Message-Id: <20170817083641.3507-11-mgorny@gentoo.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170817083641.3507-1-mgorny@gentoo.org> References: <20170817083641.3507-1-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: 70da8ad4-884c-460f-9f3c-6827dec71a32 X-Archives-Hash: e3d98b3f37e3318e8481ceab0c9e8f3d --- sys-devel/icecream/icecream-1.0.0-r2.ebuild | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sys-devel/icecream/icecream-1.0.0-r2.ebuild b/sys-devel/icecream/icecream-1.0.0-r2.ebuild index 187928a2290d..11a57f81722e 100644 --- a/sys-devel/icecream/icecream-1.0.0-r2.ebuild +++ b/sys-devel/icecream/icecream-1.0.0-r2.ebuild @@ -17,6 +17,7 @@ KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86" IUSE="" RDEPEND=" + dev-util/shadowman sys-libs/libcap-ng " DEPEND="${RDEPEND}" @@ -52,3 +53,13 @@ src_install() { insinto /usr/share/shadowman/tools newins - icecc <<<'/usr/libexec/icecc/bin' } + +pkg_prerm() { + if [[ -z ${REPLACED_BY_VERSION} ]]; then + eselect compiler-shadow remove icecc + fi +} + +pkg_postinst() { + eselect compiler-shadow update icecc +} -- 2.14.1