dev-libs/zookeeper-c: Force C++11
authorDavid Seifert <soap@gentoo.org>
Sat, 26 May 2018 10:41:54 +0000 (12:41 +0200)
committerDavid Seifert <soap@gentoo.org>
Sat, 26 May 2018 10:42:48 +0000 (12:42 +0200)
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

index 6530a32be9e4a9435653de2000839ba29231d0b9..50be8b701a08f5e0721b5c3ff860d7a833ce13f3 100644 (file)
@@ -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
 }