1 |
commit: 0aaf98fd70b94c731f338e52d6e267dcf58badac |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 22 17:12:39 2017 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 22 17:15:35 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0aaf98fd |
7 |
|
8 |
net-libs/nDPI: Add USE=static-libs. |
9 |
|
10 |
Package-Manager: Portage-2.3.12, Repoman-2.3.3 |
11 |
|
12 |
net-libs/nDPI/nDPI-2.0.ebuild | 12 ++++++++++-- |
13 |
1 file changed, 10 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/net-libs/nDPI/nDPI-2.0.ebuild b/net-libs/nDPI/nDPI-2.0.ebuild |
16 |
index 7d4217d49af..f512638e13d 100644 |
17 |
--- a/net-libs/nDPI/nDPI-2.0.ebuild |
18 |
+++ b/net-libs/nDPI/nDPI-2.0.ebuild |
19 |
@@ -2,7 +2,7 @@ |
20 |
# Distributed under the terms of the GNU General Public License v2 |
21 |
|
22 |
EAPI=6 |
23 |
-inherit autotools |
24 |
+inherit autotools eutils multilib |
25 |
|
26 |
DESCRIPTION="Open Source Deep Packet Inspection Software Toolkit" |
27 |
HOMEPAGE="http://www.ntop.org/" |
28 |
@@ -11,7 +11,7 @@ SRC_URI="https://github.com/ntop/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
29 |
LICENSE="GPL-3" |
30 |
SLOT="0" |
31 |
KEYWORDS="~amd64 ~x86" |
32 |
-IUSE="" |
33 |
+IUSE="static-libs" |
34 |
|
35 |
DEPEND="dev-libs/json-c |
36 |
net-libs/libpcap" |
37 |
@@ -21,3 +21,11 @@ src_prepare() { |
38 |
default |
39 |
eautoreconf |
40 |
} |
41 |
+ |
42 |
+src_install() { |
43 |
+ default |
44 |
+ if ! use static-libs; then |
45 |
+ rm "${D}"/usr/$(get_libdir)/lib${PN,,}.a || die |
46 |
+ fi |
47 |
+ prune_libtool_files |
48 |
+} |