commit:     663d2a572c06ac9ce18599aaf393c0466bd9a7d4
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat May 26 10:41:54 2018 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat May 26 10:42:48 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=663d2a57

dev-libs/zookeeper-c: Force C++11

Closes: https://bugs.gentoo.org/652182
Package-Manager: Portage-2.3.40, Repoman-2.3.9

 dev-libs/zookeeper-c/zookeeper-c-3.4.10.ebuild | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/dev-libs/zookeeper-c/zookeeper-c-3.4.10.ebuild 
b/dev-libs/zookeeper-c/zookeeper-c-3.4.10.ebuild
index 6530a32be9e..50be8b701a0 100644
--- a/dev-libs/zookeeper-c/zookeeper-c-3.4.10.ebuild
+++ b/dev-libs/zookeeper-c/zookeeper-c-3.4.10.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
 
+inherit flag-o-matic
+
 DESCRIPTION="C client interface to Zookeeper server"
 HOMEPAGE="https://zookeeper.apache.org/";
 SRC_URI="mirror://apache/zookeeper/zookeeper-${PV}/zookeeper-${PV}.tar.gz"
@@ -20,6 +22,9 @@ DEPEND="${RDEPEND}
 S="${WORKDIR}/zookeeper-${PV}/src/c"
 
 src_configure() {
+       # bug 652182
+       append-cxxflags -std=c++11
+
        econf \
                $(use_enable static-libs static) \
                $(use_with test cppunit)
@@ -33,4 +38,8 @@ src_compile() {
 src_install() {
        default
        use doc && dohtml docs/html/*
+
+       if ! use static-libs; then
+               find "${D}" -name '*.la' -delete || die
+       fi
 }

Reply via email to