1 |
commit: 663d2a572c06ac9ce18599aaf393c0466bd9a7d4 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 26 10:41:54 2018 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 26 10:42:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=663d2a57 |
7 |
|
8 |
dev-libs/zookeeper-c: Force C++11 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/652182 |
11 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
12 |
|
13 |
dev-libs/zookeeper-c/zookeeper-c-3.4.10.ebuild | 11 ++++++++++- |
14 |
1 file changed, 10 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-libs/zookeeper-c/zookeeper-c-3.4.10.ebuild b/dev-libs/zookeeper-c/zookeeper-c-3.4.10.ebuild |
17 |
index 6530a32be9e..50be8b701a0 100644 |
18 |
--- a/dev-libs/zookeeper-c/zookeeper-c-3.4.10.ebuild |
19 |
+++ b/dev-libs/zookeeper-c/zookeeper-c-3.4.10.ebuild |
20 |
@@ -1,8 +1,10 @@ |
21 |
-# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Copyright 1999-2018 Gentoo Foundation |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
EAPI=5 |
26 |
|
27 |
+inherit flag-o-matic |
28 |
+ |
29 |
DESCRIPTION="C client interface to Zookeeper server" |
30 |
HOMEPAGE="https://zookeeper.apache.org/" |
31 |
SRC_URI="mirror://apache/zookeeper/zookeeper-${PV}/zookeeper-${PV}.tar.gz" |
32 |
@@ -20,6 +22,9 @@ DEPEND="${RDEPEND} |
33 |
S="${WORKDIR}/zookeeper-${PV}/src/c" |
34 |
|
35 |
src_configure() { |
36 |
+ # bug 652182 |
37 |
+ append-cxxflags -std=c++11 |
38 |
+ |
39 |
econf \ |
40 |
$(use_enable static-libs static) \ |
41 |
$(use_with test cppunit) |
42 |
@@ -33,4 +38,8 @@ src_compile() { |
43 |
src_install() { |
44 |
default |
45 |
use doc && dohtml docs/html/* |
46 |
+ |
47 |
+ if ! use static-libs; then |
48 |
+ find "${D}" -name '*.la' -delete || die |
49 |
+ fi |
50 |
} |