-# 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"
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)
src_install() {
default
use doc && dohtml docs/html/*
+
+ if ! use static-libs; then
+ find "${D}" -name '*.la' -delete || die
+ fi
}