diff options
author | Thomas D <whissi@whissi.de> | 2016-03-14 21:06:47 +0100 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2016-03-15 15:17:17 +0800 |
commit | 93dbc90dcb2df0d6632e93d78eade3f1da127856 (patch) | |
tree | 1d5cedefc96e3af79fc04982d0e662fd915d06a8 /dev-libs/librdkafka | |
parent | sys-kernel/hardened-sources: version bump to 4.4.5-r2 (diff) | |
download | gentoo-93dbc90dcb2df0d6632e93d78eade3f1da127856.tar.gz gentoo-93dbc90dcb2df0d6632e93d78eade3f1da127856.tar.bz2 gentoo-93dbc90dcb2df0d6632e93d78eade3f1da127856.zip |
dev-libs/librdkafka: New package
Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/1052
Diffstat (limited to 'dev-libs/librdkafka')
-rw-r--r-- | dev-libs/librdkafka/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/librdkafka/librdkafka-0.9.0.99.ebuild | 68 | ||||
-rw-r--r-- | dev-libs/librdkafka/metadata.xml | 16 |
3 files changed, 85 insertions, 0 deletions
diff --git a/dev-libs/librdkafka/Manifest b/dev-libs/librdkafka/Manifest new file mode 100644 index 000000000000..cec13265c026 --- /dev/null +++ b/dev-libs/librdkafka/Manifest @@ -0,0 +1 @@ +DIST librdkafka-0.9.0.99.tar.gz 432559 SHA256 5af65838419a1e1069e486a233575df6067fec7c5756f59c56e517b5287041f6 SHA512 2dc7442a6067a26f98105d4a2fe6eed0dcd73866cc3f57fbbe83ade03a2aa03f8a082bbf9c8860d57d81b9b4a48ef78afa55354e473f461c03e4c8c560ffdb7b WHIRLPOOL ea0714fed991f7d05bbc15b8d35993b06ad37e7fa94b8866da44b35fe38185f09c8817169ad0c5fb599c5482178375ffbf1f722e99bd01358cf4ffd0f7266935 diff --git a/dev-libs/librdkafka/librdkafka-0.9.0.99.ebuild b/dev-libs/librdkafka/librdkafka-0.9.0.99.ebuild new file mode 100644 index 000000000000..46e5e47c6ff5 --- /dev/null +++ b/dev-libs/librdkafka/librdkafka-0.9.0.99.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Apache Kafka C/C++ client library" +HOMEPAGE="https://github.com/edenhill/librdkafka" + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI=" + git://github.com/edenhill/${PN}.git + https://github.com/edenhill/${PN}.git + " + + inherit git-r3 +else + SRC_URI="https://github.com/edenhill/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="BSD-2" + +# subslot = soname version +SLOT="0/1" + +IUSE="sasl ssl static-libs" + +RDEPEND=" + sasl? ( dev-libs/cyrus-sasl:= ) + ssl? ( dev-libs/openssl:0= ) + sys-libs/zlib +" + +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +src_configure() { + local myeconf=( + --no-cache + --no-download + $(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..a309652a96a2 --- /dev/null +++ b/dev-libs/librdkafka/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>whissi@whissi.de</email> + <name>Thomas D. (Whissi)</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <bugs-to>https://github.com/edenhill/librdkafka/issues</bugs-to> + <remote-id type="github">edenhill/librdkafka</remote-id> + </upstream> +</pkgmetadata> |