diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-06-24 23:55:48 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-06-24 23:57:46 +0200 |
commit | 2193e147a34d269adc8b70d46cd77f83836aaea7 (patch) | |
tree | 399be277462e02238877ec1a9b15525beca35f56 /dev-libs/librdkafka/librdkafka-1.1.0.ebuild | |
parent | sys-block/f3: bump to v7.2 (diff) | |
download | gentoo-2193e147a34d269adc8b70d46cd77f83836aaea7.tar.gz gentoo-2193e147a34d269adc8b70d46cd77f83836aaea7.tar.bz2 gentoo-2193e147a34d269adc8b70d46cd77f83836aaea7.zip |
dev-libs/librdkafka: bump to v1.1.0
Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-libs/librdkafka/librdkafka-1.1.0.ebuild')
-rw-r--r-- | dev-libs/librdkafka/librdkafka-1.1.0.ebuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/dev-libs/librdkafka/librdkafka-1.1.0.ebuild b/dev-libs/librdkafka/librdkafka-1.1.0.ebuild new file mode 100644 index 000000000000..d47d633d5484 --- /dev/null +++ b/dev-libs/librdkafka/librdkafka-1.1.0.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit toolchain-funcs + +DESCRIPTION="Apache Kafka C/C++ client library" +HOMEPAGE="https://github.com/edenhill/librdkafka" + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="https://github.com/edenhill/${PN}.git" + + inherit git-r3 +else + SRC_URI="https://github.com/edenhill/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~x86" +fi + +LICENSE="BSD-2" + +# subslot = soname version +SLOT="0/1" + +IUSE="lz4 sasl ssl static-libs zstd" + +LIB_DEPEND=" + lz4? ( app-arch/lz4:=[static-libs(+)] ) + sasl? ( dev-libs/cyrus-sasl:=[static-libs(+)] ) + ssl? ( dev-libs/openssl:0=[static-libs(+)] ) + zstd? ( app-arch/zstd:=[static-libs(+)] ) + sys-libs/zlib:=[static-libs(+)] +" + +RDEPEND="!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )" + +DEPEND=" + ${RDEPEND} + virtual/pkgconfig + static-libs? ( ${LIB_DEPEND} ) +" + +PATCHES=( "${FILESDIR}"/${PN}-1.1.0-remove-automagic-on-zstd.patch ) + +src_configure() { + tc-export CC CXX LD NM OBJDUMP PKG_CONFIG STRIP + + local myeconf=( + --no-cache + --no-download + --disable-debug-symbols + $(use_enable lz4) + $(use_enable sasl) + $(usex static-libs '--enable-static' '') + $(use_enable ssl) + $(use_enable zstd) + ) + + econf ${myeconf[@]} +} + +src_test() { + emake -C tests run_local +} + +src_install() { + local DOCS=( + README.md + CONFIGURATION.md + INTRODUCTION.md + ) + + default + + if ! use static-libs; then + find "${ED}"/usr/lib* -name '*.la' -o -name '*.a' -delete || die + fi +} |