diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-11-23 03:02:57 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-11-23 03:02:57 +0000 |
commit | 71dd9d29cdaf7cc0ecdb9ea37d128726a941c630 (patch) | |
tree | 4eccd905f575579fe47abb8a83bbdb44ceb8c929 /dev-libs/librdkafka | |
parent | c7a7ec40cf928d8fc6a8241aa208272c008c7b4d (diff) |
gentoo auto-resync : 23:11:2024 - 03:02:56
Diffstat (limited to 'dev-libs/librdkafka')
-rw-r--r-- | dev-libs/librdkafka/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/librdkafka/librdkafka-2.6.1.ebuild | 114 |
2 files changed, 116 insertions, 0 deletions
diff --git a/dev-libs/librdkafka/Manifest b/dev-libs/librdkafka/Manifest index 14992478ef22..34b2912d513f 100644 --- a/dev-libs/librdkafka/Manifest +++ b/dev-libs/librdkafka/Manifest @@ -1,4 +1,6 @@ AUX librdkafka-2.2.0-backport-pr4449.patch 12334 BLAKE2B 1787951e628e64890e1a84203f25609d0488ebf8508e16214a9c9c97f23b853cbd86d1b5ceeb3f00d9118245bf9771ad5db82f5db60c37f1c3d2ba493bf3fa4a SHA512 4e8e2de48025ec7b17c070d1e830a8bead9470d283e26ed0b4a9c7779cb2963cd129e59283da07d44f5a46917c783b026367ce575c6a3d103759e7b64855d937 DIST librdkafka-2.2.0.tar.gz 4340164 BLAKE2B 394c9fd25db0a3a02b16fec3d5d5acc4808b4c8a6c8e025e71f15a91c6311206bf4d7c863860be36483c150bb10955cdc98ba0f088fa493b20ae52154e2a83d0 SHA512 1a85b5864efdeece1327e461b62a378f24b73eb7174168f630aeff01d4a5074d6b2f15744bc267665fcfc6384e804df00c20b7271ecd85a98dca84746b86b4d9 +DIST librdkafka-2.6.1.tar.gz 4742684 BLAKE2B 4ee3d54f37b1c9d1a2dbaa77631459a9889319ca3ab00a31c201ecf0ae8e1c9a11663cf76aa322ca8aa6364008b11e6dbcc853c1cfe6bfdc04dab375a14da605 SHA512 d2b3fe9c38608174eb965ecdfb8f80e04eadaeb7b0f8b7dd2dddb9c6440f4b30785d261103085d4a6370843c68434238d15479450c84b52eca4b769c73d4ac11 EBUILD librdkafka-2.2.0-r1.ebuild 2663 BLAKE2B cd220429c2d5c3a5db4d1a8453a418110f348df0bfc20d74edf6ff5ecdfe08c8993aed16d738ffc25cc312e76b799c2937dc12276ddd3ccfa9d32385f5a83305 SHA512 236816b790a37e58e7b11dbc67df348bb18d49a3d50312e5aa066418fe13501d1be709b7e75428414e0aad0574f4ec617610fe3791646574a028e45b8590a2ab +EBUILD librdkafka-2.6.1.ebuild 2610 BLAKE2B f3698ef9013612a56d44acc6ec0ea51b88aa48593c16892bc7b8c39ade1545df773a791b50b043182785afd4a408824b66b4510cc6558b3a2a79fc3137c69b3c SHA512 0b0c66254df959021e7d8e4069d0229b0d159d84621aeb1031870f63b7b42be10e495a12adb4e38064f3fee70053bebc0b400bc7903c7fd7627a0d78326aad3e MISC metadata.xml 458 BLAKE2B 9fe3256ed33cb5691e327d86d5276cfa37e898e938c623f0643bf6cb583e4ee6bd34922880185bdbabc638e2e85ffe157554ff95063db7a348fc9e6f425411e6 SHA512 84279a77f53332007509a0912059a5fb71fed16f0976dbdad200f7a0ff54cff43e17d94afa05f8169181c3fd1aa18e93f6c2e4e279e01cbe9fefdaba46042e7a diff --git a/dev-libs/librdkafka/librdkafka-2.6.1.ebuild b/dev-libs/librdkafka/librdkafka-2.6.1.ebuild new file mode 100644 index 000000000000..dd56c3b8b510 --- /dev/null +++ b/dev-libs/librdkafka/librdkafka-2.6.1.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PYTHON_COMPAT=( python3_{10..13} ) + +inherit flag-o-matic python-any-r1 toolchain-funcs + +DESCRIPTION="Apache Kafka C/C++ client library" +HOMEPAGE="https://github.com/confluentinc/librdkafka" + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="https://github.com/confluentinc/${PN}.git" + + inherit git-r3 +else + SRC_URI="https://github.com/confluentinc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~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(+)] +" +# which: https://github.com/confluentinc/librdkafka/pull/4353 +BDEPEND=" + sys-apps/which + virtual/pkgconfig + ${PYTHON_DEPS} +" + +RDEPEND="net-misc/curl + !static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )" + +DEPEND=" + ${RDEPEND} + elibc_musl? ( sys-libs/queue-standalone ) + static-libs? ( ${LIB_DEPEND} ) +" + +pkg_setup() { + python-any-r1_pkg_setup +} + +src_prepare() { + default + + if [[ ${PV} != "9999" ]]; then + sed -i \ + -e "s/^\(export RDKAFKA_GITVER=\).*/\1\"${PV}@release\"/" \ + tests/run-test.sh || die + fi +} + +src_configure() { + # error: unknown register name ‘%edx’ in ‘asm’ + # https://bugs.gentoo.org/895464 + # https://github.com/confluentinc/librdkafka/issues/2426 + filter-lto + + tc-export AR CC CXX LD NM OBJDUMP PKG_CONFIG STRIP + + local myeconf=( + --prefix="${EPREFIX}/usr" + --build="${CBUILD}" + --host="${CHOST}" + --mandir="${EPREFIX}/usr/share/man" + --infodir="${EPREFIX}/usr/share/info" + --datadir="${EPREFIX}/usr/share" + --sysconfdir="${EPREFIX}/etc" + --localstatedir="${EPREFIX}/var" + --libdir="${EPREFIX}/usr/$(get_libdir)" + --no-cache + --no-download + --disable-debug-symbols + $(use_enable lz4) + $(use_enable sasl) + $(usex static-libs '--enable-static' '') + $(use_enable ssl) + $(use_enable zstd) + ) + + ./configure ${myeconf[@]} || die +} + +src_test() { + # Simulate CI so we do not fail when tests are running longer than expected, + # https://github.com/confluentinc/librdkafka/blob/v1.6.1/tests/0062-stats_event.c#L101-L116 + local -x CI=true + + emake -C tests run_local +} + +src_install() { + emake -j1 \ + DESTDIR="${D}" \ + docdir="/usr/share/doc/${PF}" \ + install + + if ! use static-libs; then + find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die + fi +} |