From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-949146-garchives=archives.gentoo.org@lists.gentoo.org>
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 DA4AB139695
	for <garchives@archives.gentoo.org>; Wed, 10 May 2017 22:35:56 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id AA34C21C06D;
	Wed, 10 May 2017 22:35:54 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 7FB9021C06D
	for <gentoo-commits@lists.gentoo.org>; Wed, 10 May 2017 22:35:54 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 21ACF3416AA
	for <gentoo-commits@lists.gentoo.org>; Wed, 10 May 2017 22:35:53 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 83FF97449
	for <gentoo-commits@lists.gentoo.org>; Wed, 10 May 2017 22:35:51 +0000 (UTC)
From: "David Seifert" <soap@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, "David Seifert" <soap@gentoo.org>
Message-ID: <1494455741.a0dc3491f9924262a600533744150277899fb521.soap@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/boehm-gc/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-libs/boehm-gc/boehm-gc-7.6.0.ebuild
X-VCS-Directories: dev-libs/boehm-gc/
X-VCS-Committer: soap
X-VCS-Committer-Name: David Seifert
X-VCS-Revision: a0dc3491f9924262a600533744150277899fb521
X-VCS-Branch: master
Date: Wed, 10 May 2017 22:35:51 +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: 1f66c49e-6ec5-4a14-a900-4681e23fe0db
X-Archives-Hash: b4bc2db68ce32a176a13bf0ed32b4cd9

commit:     a0dc3491f9924262a600533744150277899fb521
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Wed May 10 20:41:03 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed May 10 22:35:41 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0dc3491

dev-libs/boehm-gc: Make multilib compatible

Bug: https://bugs.gentoo.org/show_bug.cgi?id=617788
Package-Manager: Portage-2.3.5, Repoman-2.3.2

 dev-libs/boehm-gc/boehm-gc-7.6.0.ebuild | 28 ++++++++++++++++------------
 1 file changed, 16 insertions(+), 12 deletions(-)

diff --git a/dev-libs/boehm-gc/boehm-gc-7.6.0.ebuild b/dev-libs/boehm-gc/boehm-gc-7.6.0.ebuild
index 1f62ca853c4..cab00ef0303 100644
--- a/dev-libs/boehm-gc/boehm-gc-7.6.0.ebuild
+++ b/dev-libs/boehm-gc/boehm-gc-7.6.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit ltprune
+inherit multilib-minimal
 
 MY_P="gc-${PV}"
 
@@ -16,35 +16,39 @@ SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
 IUSE="cxx static-libs threads"
 
-DEPEND=">=dev-libs/libatomic_ops-7.4
+DEPEND="
+	>=dev-libs/libatomic_ops-7.4[${MULTILIB_USEDEP}]
 	virtual/pkgconfig"
 
 S="${WORKDIR}/${MY_P}"
 
-src_configure() {
+multilib_src_configure() {
 	local config=(
 		--with-libatomic-ops
 		$(use_enable cxx cplusplus)
 		$(use_enable static-libs static)
 		$(use threads || echo --disable-threads)
 	)
-	econf "${config[@]}"
+
+	ECONF_SOURCE=${S} econf "${config[@]}"
 }
 
-src_compile() {
+multilib_src_compile() {
 	# Workaround build errors. #574566
 	use ia64 && emake src/ia64_save_regs_in_stack.lo
 	use sparc && emake src/sparc_mach_dep.lo
 	default
 }
 
-src_install() {
-	default
-	use static-libs || prune_libtool_files
+multilib_src_install_all() {
+	local HTML_DOCS=( doc/*.html )
+	einstalldocs
+	dodoc doc/README{.environment,.linux,.macros}
+
+	rm -r "${ED%/}"/usr/share/gc || die
+
+	# package provides .pc files
+	find "${D}" -name '*.la' -delete || die
 
-	rm -r "${ED}"/usr/share/gc || die
-	dodoc README.QUICK doc/README{.environment,.linux,.macros}
-	docinto html
-	dodoc doc/*.html
 	newman doc/gc.man GC_malloc.1
 }