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 B9B14138334 for ; Tue, 1 Oct 2019 21:52:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E67F3E0928; Tue, 1 Oct 2019 21:52:56 +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 D0E8AE0928 for ; Tue, 1 Oct 2019 21:52:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 B26D634B77D for ; Tue, 1 Oct 2019 21:52:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DD49C804 for ; Tue, 1 Oct 2019 21:52:51 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1569966753.037b13f7bd0e5f1ab5a861f5f933db7d8f6effa1.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/lib3ds/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/lib3ds/lib3ds-2.0.0_rc1-r1.ebuild X-VCS-Directories: media-libs/lib3ds/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 037b13f7bd0e5f1ab5a861f5f933db7d8f6effa1 X-VCS-Branch: master Date: Tue, 1 Oct 2019 21:52:51 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a90ed955-6c91-416b-baae-ce61575606b1 X-Archives-Hash: c70195185fd4d583fdb237e74c26198c commit: 037b13f7bd0e5f1ab5a861f5f933db7d8f6effa1 Author: James Le Cuirot gentoo org> AuthorDate: Tue Oct 1 21:51:38 2019 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Tue Oct 1 21:52:33 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=037b13f7 media-libs/lib3ds: Conditionally install static libs with USE flag Closes: https://bugs.gentoo.org/485552 Closes: https://github.com/gentoo/gentoo/pull/13084 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: James Le Cuirot gentoo.org> media-libs/lib3ds/lib3ds-2.0.0_rc1-r1.ebuild | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/media-libs/lib3ds/lib3ds-2.0.0_rc1-r1.ebuild b/media-libs/lib3ds/lib3ds-2.0.0_rc1-r1.ebuild index c8e2db13f63..b663c12a29c 100644 --- a/media-libs/lib3ds/lib3ds-2.0.0_rc1-r1.ebuild +++ b/media-libs/lib3ds/lib3ds-2.0.0_rc1-r1.ebuild @@ -12,7 +12,7 @@ SRC_URI="https://lib3ds.googlecode.com/files/${MY_P}.zip" LICENSE="LGPL-2.1+" SLOT="0" KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86" -IUSE="" +IUSE="static-libs" BDEPEND="app-arch/unzip" @@ -21,3 +21,15 @@ S="${WORKDIR}/${MY_P}" PATCHES=( "${FILESDIR}"/${P}-underlinking-no-autoreconf.patch ) + +src_configure() { + econf $(use_enable static-libs static) +} + +src_install() { + default + + if ! use static-libs; then + rm "${ED}/usr/$(get_libdir)/${PN}.la" || die + fi +}