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 5292F1396DB for ; Sun, 22 Oct 2017 17:15:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AAF722BC047; Sun, 22 Oct 2017 17:15:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 831EA2BC035 for ; Sun, 22 Oct 2017 17:15:41 +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 9447933BF44 for ; Sun, 22 Oct 2017 17:15:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 35DC682B for ; Sun, 22 Oct 2017 17:15:39 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1508692535.0aaf98fd70b94c731f338e52d6e267dcf58badac.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/nDPI/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/nDPI/nDPI-2.0.ebuild X-VCS-Directories: net-libs/nDPI/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 0aaf98fd70b94c731f338e52d6e267dcf58badac X-VCS-Branch: master Date: Sun, 22 Oct 2017 17:15:39 +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: fc99f31e-a5ac-4648-be66-805d1704365b X-Archives-Hash: d38ebb3d072b74c75c3f6fd503e88394 commit: 0aaf98fd70b94c731f338e52d6e267dcf58badac Author: Jeroen Roovers gentoo org> AuthorDate: Sun Oct 22 17:12:39 2017 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Sun Oct 22 17:15:35 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0aaf98fd net-libs/nDPI: Add USE=static-libs. Package-Manager: Portage-2.3.12, Repoman-2.3.3 net-libs/nDPI/nDPI-2.0.ebuild | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/net-libs/nDPI/nDPI-2.0.ebuild b/net-libs/nDPI/nDPI-2.0.ebuild index 7d4217d49af..f512638e13d 100644 --- a/net-libs/nDPI/nDPI-2.0.ebuild +++ b/net-libs/nDPI/nDPI-2.0.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 -inherit autotools +inherit autotools eutils multilib DESCRIPTION="Open Source Deep Packet Inspection Software Toolkit" HOMEPAGE="http://www.ntop.org/" @@ -11,7 +11,7 @@ SRC_URI="https://github.com/ntop/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="static-libs" DEPEND="dev-libs/json-c net-libs/libpcap" @@ -21,3 +21,11 @@ src_prepare() { default eautoreconf } + +src_install() { + default + if ! use static-libs; then + rm "${D}"/usr/$(get_libdir)/lib${PN,,}.a || die + fi + prune_libtool_files +}