diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/librdkafka |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/librdkafka')
-rw-r--r-- | dev-libs/librdkafka/Manifest | 14 | ||||
-rw-r--r-- | dev-libs/librdkafka/files/librdkafka-0.9.2-remove-lz4-automagic.patch | 47 | ||||
-rw-r--r-- | dev-libs/librdkafka/files/librdkafka-0.9.3-remove-lz4-automagic.patch | 46 | ||||
-rw-r--r-- | dev-libs/librdkafka/librdkafka-0.11.0.ebuild | 71 | ||||
-rw-r--r-- | dev-libs/librdkafka/librdkafka-0.9.2-r1.ebuild | 73 | ||||
-rw-r--r-- | dev-libs/librdkafka/librdkafka-0.9.3.ebuild | 73 | ||||
-rw-r--r-- | dev-libs/librdkafka/librdkafka-0.9.4.ebuild | 71 | ||||
-rw-r--r-- | dev-libs/librdkafka/librdkafka-0.9.5.ebuild | 71 | ||||
-rw-r--r-- | dev-libs/librdkafka/metadata.xml | 15 |
9 files changed, 481 insertions, 0 deletions
diff --git a/dev-libs/librdkafka/Manifest b/dev-libs/librdkafka/Manifest new file mode 100644 index 000000000000..4ff22a5ccd41 --- /dev/null +++ b/dev-libs/librdkafka/Manifest @@ -0,0 +1,14 @@ +AUX librdkafka-0.9.2-remove-lz4-automagic.patch 1595 SHA256 5ecf5c399edb6879e6de4c9369f5a695754c6d8a5e64707860d3e747828813fb SHA512 5903f2961cfb3066722ade21c944342b0ffa0af06b065dd1350b77f65f38025e3357fca3dca3e8756c20fb7ea104f33a565f146615d4e5a0284ea83106581b9a WHIRLPOOL d48a4a6d9111034726033f815a55153db8fa5314c84d51c49f0cd6716bf3230520626cd74aa6bbc5c5c68e01883af82838d6b184c6bcb789f00d064fc89f015d +AUX librdkafka-0.9.3-remove-lz4-automagic.patch 1721 SHA256 dc0ed195d37aa83ecf827289ff4d630d12f607b2e53a246c41d6b89829d77ed8 SHA512 c2ee9e9c429ea3a5348b9f47b739e00ee8e526e2f809b67545b253a57d726a7ac92565511c726aa8a8a705ed2396d8b2cdba54484b8da33efc36659384ff4660 WHIRLPOOL 85c8d732ce801dc52150ec6fbae58c1470c06d5160b383b369758caabbcb2db1adc0ea7447245b8aef36f83c4bf4f334177cf3b3554e4e29c5276476aa588eab +DIST librdkafka-0.11.0.tar.gz 837546 SHA256 d4baf9a0d08767128913bb4e39d68995a95d7efa834fcf3e4f60c3156003b887 SHA512 1c41bd5bb9eb93b3bf743e8c4f14684609cb47b0c4fb95d303ddc7c62fdb678d9e6928fa6ea57c0aaa7695d08ab6e7ec84b699d7d61c7f750af0fe2cb148c596 WHIRLPOOL c237760c7ca80f7574954e7733beeaa01cdc694c25d8272ed14989749b7c417a678bb39da5bb82448c72774e64578bc34e142ac611d80e3a70d395649832475d +DIST librdkafka-0.9.2.tar.gz 620799 SHA256 c243b66956ebb196510ee0efda67825467e31b93639d5f24eb082b5d83f56824 SHA512 12a7da8de59de684da527ab969cd84dc8602741e9208941e1c7ad6dc69774bcbc3fbde0620d48c300372fa20b15aa826d309b71730119d82ec578e274c241152 WHIRLPOOL 7786443d9f365303ce0aad8278d83684999b23529e57fa08757fa38cce63f3944a3942475154bd613a0fb3e419c822a5651a00005eb77ed8f32f11689c11b924 +DIST librdkafka-0.9.3.tar.gz 637066 SHA256 745ead036f0d5b732e1cd035a1f31fc23665f2982bf9d799742034e0a1bd0be9 SHA512 5ec4c597eb7871c13feaaa96a76dc97c836f1fb5ae6c11d10675aee5577ad09d33e104af8fd497a8fbc7ee2c59434800d4cd857843f5c37460d4107ba0dc4e78 WHIRLPOOL fd6e57f34079fc0d808e35fee2d1ab736719b82f5c3f9b292e50bb522d8fea7e8b74adaf7ecfa1940e6eae2ca6f0c154593a99976261f4e11969f1596af450b1 +DIST librdkafka-0.9.4.tar.gz 696078 SHA256 5007ad20a6753f709803e72c5f2c09483dcbce0f16b94b17cf677fb3e6045907 SHA512 054897d90131ba7d91f66e2929f19224ae96feabe1be69e93a87ad05864f4893aa56456c3c15a303826f0c519eab09c5cd6e0b34d76ae68db6060aa80e9bc8de WHIRLPOOL 6c5cb2a3056f60493dd65ec7f81d71e335d44ef0cfa2c63a943ffa32752025add1691fb3c77902b3ee8706f822916ee32bc885f425eb44b62366b1c0bc983bcc +DIST librdkafka-0.9.5.tar.gz 753196 SHA256 dd395ffca89c9591e567366f3ad2517cee76578a10d0a16a93f990c33f553179 SHA512 06b2c7e3dd1c8a84322d256f2470804ba0ac205777cf66c0c98222d3f90ed26d6fcae375ee0343558ccf901d7a8d354009f377a435ecd0ce2d02c73848fbc8a4 WHIRLPOOL 12de4f3d2b2ad22777c09319e48b3de4d74073158ff47b6d2ab64b0ec4a1cecf5b5eb4de8c4db996bd42ec917a16015aa6369d2563072988bd4c2c8a0d660606 +EBUILD librdkafka-0.11.0.ebuild 1238 SHA256 0d86a6f9f2ad3cd1d184d62bfa136b5f6343559ae79743ed84ce418c22850ea5 SHA512 1a78a8e00cb86f6b4209023c296e406384948fa2a1c7230fc01b70b0f6fc5ce9e97e21ac626d9f0f9d5590bc51d8295fc2e4c9fab77b872efa0684f80b07f10f WHIRLPOOL 92740f1579438ecde1678448873a3ce1fffbb76774177bc3cbf01eb8436c893fd89cf7b00a54d15d83095fa8d93cc576409404dc00c033712765225bea016f00 +EBUILD librdkafka-0.9.2-r1.ebuild 1288 SHA256 08269c1f8631850b9e1139e646dd801a80983fb7594ba63299462483cce659a1 SHA512 1269fc2b6392ecea08d09299f9740e5f2a90b121fcbc1617e63beceffa16db5dae0c2a7a289c0c33ca112ef75087e5c991272967d687cfeb636215cd64494880 WHIRLPOOL 7c716b151d3b528af6f6d2db5807d63e4eb4af9d3e7f481a6e2f493e7de5bf4e8ed5c1314302c8d5b00f2b1cbff5e6f107a9f4f552fa7d79ac8685e6a5c08b2e +EBUILD librdkafka-0.9.3.ebuild 1292 SHA256 740ef186021899af956679e143e4a63a5c4411d894515474ee979388f7f2fb2e SHA512 a24bb014f1b8fdc8c946b618b0afbbb96a75b925e87d3cf85839c19013516da0a3b622a0373844a353c4022a9aa5b1c91428db0e8995a7d3d92b76934b1d8e86 WHIRLPOOL bc72d0d7981b239a7af15338a1f670d8de84e49a91cbcaac07b842dd6ac1cdc8f3f01d1f008c0b6a95e581112a138930eb31219c890d32ffef7f31425cea2863 +EBUILD librdkafka-0.9.4.ebuild 1226 SHA256 2bd04e5f9cb8e618ffe11bb54da9d30dc3f69b26e10a2dd4337a81de9c88aaa1 SHA512 195b6d8f752f432eecf25d53fa3adfa61ed0c89959a582037035adde522814a8d1e0c60b410542e82508fbda5fb0aca1af312779401f932da193fece7accd9f1 WHIRLPOOL 291b58b27aa083b659ad56d8138234e670556dc09f7b1a405c9a643e5fd9ee868fde9cddbaee5a276141a2897b92e2f38952089264b9c62976ae70a30feea795 +EBUILD librdkafka-0.9.5.ebuild 1236 SHA256 72fa428605350e74001213043adeca30acd68be9e8e6b516529878f0872aca33 SHA512 7fa31d153bde445de31e42d8bd38179c43c1167a7a66e5dde7478c990876593aafc67b0d325bad6dc9880bf594c4b020d4c812ff811067582f6bfda80bad44c0 WHIRLPOOL 223fed98917917dff20ab084b05b8321cbebfe952adfd2d26b399f31779e16feaafa98cd782b022742ec5df5571eda976f80fdf1d2e5383dfe46c0f965a64885 +MISC ChangeLog 2458 SHA256 65581041c7bc4b158519bd5c304bac2d907f8710befe42416210fbf51ecced83 SHA512 7cf6fed8ee096980c091e2263eb72d7020defb0c976ad95b234588f33e0b5c3350c6067a2843566323d3c667867bdb41625bc48900d61670142f79d2ef9963da WHIRLPOOL 3c33b604c4b6d64cb5c7626f968738c2122587b15277a2b420259ac307d84c4a9e7ac15db5f48e5947e83b0ad5af7d191f2ec2f14a46f9bb2ab5bc885a5f28c9 +MISC metadata.xml 533 SHA256 449103447a8235b3cca86f9f27d23e7827e11eac1517fc9b9dc5c2ef067edf99 SHA512 7f859dce01869e64712cb9042a1ab982255ec524334f2a1fbaf3f0e50fbc08bd3dd21e4bdf2ccef5b539aef94e0bfa2b7af95ef215cfddea4202608005934308 WHIRLPOOL 0078bd488cebfc646bc6dbc451d23894b131ed8651e93e7ef5077cc96e43477e77f4f5a7b59d62ea157d00d82f5e6650951c6f5b1c0ebd273f9d77dfa362d25b diff --git a/dev-libs/librdkafka/files/librdkafka-0.9.2-remove-lz4-automagic.patch b/dev-libs/librdkafka/files/librdkafka-0.9.2-remove-lz4-automagic.patch new file mode 100644 index 000000000000..bf22aed9a48b --- /dev/null +++ b/dev-libs/librdkafka/files/librdkafka-0.9.2-remove-lz4-automagic.patch @@ -0,0 +1,47 @@ +[PATCH] configure: Add option to disable automagic dependency on + liblz4 + +Backport of commit cbf5ea173a2e17310aa1adc4b1ee80fb8831901b. + +Previously, mklove activated lz4 support when lz4 was found. This added +a so called "automagic" dependency on liblz4 which is a problem from +distributions. + +This commit will add an option which will allow you to explicit disable +lz4 usage. +--- + configure.librdkafka | 11 +++++++---- + 1 file changed, 7 insertions(+), 4 deletions(-) + +diff --git a/configure.librdkafka b/configure.librdkafka +index 34acc17..71d9905 100644 +--- a/configure.librdkafka ++++ b/configure.librdkafka +@@ -30,6 +30,8 @@ mkl_toggle_option "Development" ENABLE_REFCNT_DEBUG "--enable-refcnt-debug" "Ena + + mkl_toggle_option "Development" ENABLE_SHAREDPTR_DEBUG "--enable-sharedptr-debug" "Enable sharedptr debugging" "n" + ++mkl_toggle_option "Feature" ENABLE_LZ4 "--enable-lz4" "Enable LZ4 support" "y" ++ + mkl_toggle_option "Feature" ENABLE_SSL "--enable-ssl" "Enable SSL support" "y" + mkl_toggle_option "Feature" ENABLE_SASL "--enable-sasl" "Enable SASL support" "y" + +@@ -42,10 +44,11 @@ function checks { + # optional libs + mkl_lib_check "zlib" "WITH_ZLIB" disable CC "-lz" + mkl_lib_check "libcrypto" "" disable CC "-lcrypto" +- mkl_lib_check "liblz4" "WITH_LZ4" disable CC "-llz4" \ +- " +-#include <lz4frame.h> +-" ++ ++ if [[ "$ENABLE_LZ4" == "y" ]]; then ++ mkl_lib_check "liblz4" "WITH_LZ4" disable CC "-llz4" \ ++ "#include <lz4frame.h>" ++ fi + + # Snappy support is built-in + mkl_allvar_set WITH_SNAPPY WITH_SNAPPY y +-- +2.11.0 + diff --git a/dev-libs/librdkafka/files/librdkafka-0.9.3-remove-lz4-automagic.patch b/dev-libs/librdkafka/files/librdkafka-0.9.3-remove-lz4-automagic.patch new file mode 100644 index 000000000000..2efe27fef26b --- /dev/null +++ b/dev-libs/librdkafka/files/librdkafka-0.9.3-remove-lz4-automagic.patch @@ -0,0 +1,46 @@ +From 7c64454f83f74dbe0dd33e3726906b20740e19a1 Mon Sep 17 00:00:00 2001 +From: Thomas Deutschmann <whissi@whissi.de> +Date: Fri, 27 Jan 2017 13:56:23 +0100 +Subject: [PATCH] configure: Add option to disable automagic dependency on + liblz4 + +Previously, mklove activated lz4 support when lz4 was found. This added +a so called "automagic" dependency on liblz4 which is a problem from +distributions. + +This commit will add an option which will allow you to explicit disable +lz4 usage. +--- + configure.librdkafka | 9 +++++++-- + 1 file changed, 7 insertions(+), 2 deletions(-) + +diff --git a/configure.librdkafka b/configure.librdkafka +index cf47fea..71c29c7 100644 +--- a/configure.librdkafka ++++ b/configure.librdkafka +@@ -30,6 +30,8 @@ mkl_toggle_option "Development" ENABLE_REFCNT_DEBUG "--enable-refcnt-debug" "Ena + + mkl_toggle_option "Development" ENABLE_SHAREDPTR_DEBUG "--enable-sharedptr-debug" "Enable sharedptr debugging" "n" + ++mkl_toggle_option "Feature" ENABLE_LZ4 "--enable-lz4" "Enable LZ4 support" "y" ++ + mkl_toggle_option "Feature" ENABLE_SSL "--enable-ssl" "Enable SSL support" "y" + mkl_toggle_option "Feature" ENABLE_SASL "--enable-sasl" "Enable SASL support" "y" + +@@ -44,8 +46,11 @@ function checks { + mkl_lib_check "zlib" "WITH_ZLIB" disable CC "-lz" \ + "#include <zlib.h>" + mkl_lib_check "libcrypto" "" disable CC "-lcrypto" +- mkl_lib_check "liblz4" "WITH_LZ4" disable CC "-llz4" \ +- "#include <lz4frame.h>" ++ ++ if [[ "$ENABLE_LZ4" == "y" ]]; then ++ mkl_lib_check "liblz4" "WITH_LZ4" disable CC "-llz4" \ ++ "#include <lz4frame.h>" ++ fi + + # Snappy support is built-in + mkl_allvar_set WITH_SNAPPY WITH_SNAPPY y +-- +2.11.0 + diff --git a/dev-libs/librdkafka/librdkafka-0.11.0.ebuild b/dev-libs/librdkafka/librdkafka-0.11.0.ebuild new file mode 100644 index 000000000000..8d6fd40533bf --- /dev/null +++ b/dev-libs/librdkafka/librdkafka-0.11.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +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" + +RDEPEND=" + lz4? ( app-arch/lz4:= ) + sasl? ( dev-libs/cyrus-sasl:= ) + ssl? ( dev-libs/openssl:0= ) + sys-libs/zlib +" + +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +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) + ) + + 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 +} diff --git a/dev-libs/librdkafka/librdkafka-0.9.2-r1.ebuild b/dev-libs/librdkafka/librdkafka-0.9.2-r1.ebuild new file mode 100644 index 000000000000..46d5ad93d2ba --- /dev/null +++ b/dev-libs/librdkafka/librdkafka-0.9.2-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +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 hppa x86" +fi + +LICENSE="BSD-2" + +# subslot = soname version +SLOT="0/1" + +IUSE="lz4 sasl ssl static-libs" + +RDEPEND=" + lz4? ( app-arch/lz4:= ) + sasl? ( dev-libs/cyrus-sasl:= ) + ssl? ( dev-libs/openssl:0= ) + sys-libs/zlib +" + +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +PATCHES=( "${FILESDIR}"/${PN}-0.9.2-remove-lz4-automagic.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) + ) + + 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 +} diff --git a/dev-libs/librdkafka/librdkafka-0.9.3.ebuild b/dev-libs/librdkafka/librdkafka-0.9.3.ebuild new file mode 100644 index 000000000000..3fed5f0b4fef --- /dev/null +++ b/dev-libs/librdkafka/librdkafka-0.9.3.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +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 ~hppa ~x86" +fi + +LICENSE="BSD-2" + +# subslot = soname version +SLOT="0/1" + +IUSE="lz4 sasl ssl static-libs" + +RDEPEND=" + lz4? ( app-arch/lz4:= ) + sasl? ( dev-libs/cyrus-sasl:= ) + ssl? ( dev-libs/openssl:0= ) + sys-libs/zlib +" + +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +PATCHES=( "${FILESDIR}"/${PN}-0.9.3-remove-lz4-automagic.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) + ) + + 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 +} diff --git a/dev-libs/librdkafka/librdkafka-0.9.4.ebuild b/dev-libs/librdkafka/librdkafka-0.9.4.ebuild new file mode 100644 index 000000000000..927d021a41a5 --- /dev/null +++ b/dev-libs/librdkafka/librdkafka-0.9.4.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +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 ~hppa ~x86" +fi + +LICENSE="BSD-2" + +# subslot = soname version +SLOT="0/1" + +IUSE="lz4 sasl ssl static-libs" + +RDEPEND=" + lz4? ( app-arch/lz4:= ) + sasl? ( dev-libs/cyrus-sasl:= ) + ssl? ( dev-libs/openssl:0= ) + sys-libs/zlib +" + +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +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) + ) + + 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 +} diff --git a/dev-libs/librdkafka/librdkafka-0.9.5.ebuild b/dev-libs/librdkafka/librdkafka-0.9.5.ebuild new file mode 100644 index 000000000000..df4d436a30a3 --- /dev/null +++ b/dev-libs/librdkafka/librdkafka-0.9.5.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +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" + +RDEPEND=" + lz4? ( app-arch/lz4:= ) + sasl? ( dev-libs/cyrus-sasl:= ) + ssl? ( dev-libs/openssl:0= ) + sys-libs/zlib +" + +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +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) + ) + + 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 +} diff --git a/dev-libs/librdkafka/metadata.xml b/dev-libs/librdkafka/metadata.xml new file mode 100644 index 000000000000..1d277adeaf22 --- /dev/null +++ b/dev-libs/librdkafka/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>whissi@gentoo.org</email> + <name>Thomas Deutschmann</name> + </maintainer> + <upstream> + <bugs-to>https://github.com/edenhill/librdkafka/issues</bugs-to> + <remote-id type="github">edenhill/librdkafka</remote-id> + </upstream> + <use> + <flag name="lz4">Enable support for Kafka's LZ4 compression based on KIP-57 (uses <pkg>app-arch/lz4</pkg>)</flag> + </use> +</pkgmetadata> |