1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 DESCRIPTION="Apache Kafka C/C++ client library"
9 HOMEPAGE="https://github.com/edenhill/librdkafka"
11 if [[ ${PV} == "9999" ]]; then
12 EGIT_REPO_URI="https://github.com/edenhill/${PN}.git"
16 SRC_URI="https://github.com/edenhill/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
17 KEYWORDS="amd64 arm ~arm64 hppa ~ppc x86"
22 # subslot = soname version
25 IUSE="lz4 sasl ssl static-libs"
28 lz4? ( app-arch/lz4:=[static-libs(-)?] )
29 sasl? ( dev-libs/cyrus-sasl:= )
30 ssl? ( dev-libs/openssl:0= )
40 tc-export CC CXX LD NM OBJDUMP PKG_CONFIG STRIP
45 --disable-debug-symbols
48 $(usex static-libs '--enable-static' '')
56 emake -C tests run_local
68 if ! use static-libs; then
69 find "${ED}"/usr/lib* -name '*.la' -o -name '*.a' -delete || die