summaryrefslogtreecommitdiff
path: root/dev-go
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2015-07-30 21:17:21 +0000
committerZac Medico <zmedico@gentoo.org>2015-07-30 21:17:21 +0000
commit0de953fd1559bd951e978afe743d88e1563c48c2 (patch)
treeb903f46ff6114dbe2d6c58411ff74b8cf19567d6 /dev-go
parentAdd go-eapache-queue. (diff)
downloadhistorical-0de953fd1559bd951e978afe743d88e1563c48c2.tar.gz
historical-0de953fd1559bd951e978afe743d88e1563c48c2.tar.bz2
historical-0de953fd1559bd951e978afe743d88e1563c48c2.zip
Add sarama.
Package-Manager: portage-2.2.20/cvs/Linux x86_64 Manifest-Sign-Key: 0xFDE8EF85AE5719A3
Diffstat (limited to 'dev-go')
-rw-r--r--dev-go/sarama/ChangeLog10
-rw-r--r--dev-go/sarama/Manifest15
-rw-r--r--dev-go/sarama/metadata.xml10
-rw-r--r--dev-go/sarama/sarama-1.4.3.ebuild68
-rw-r--r--dev-go/sarama/sarama-9999.ebuild68
5 files changed, 171 insertions, 0 deletions
diff --git a/dev-go/sarama/ChangeLog b/dev-go/sarama/ChangeLog
new file mode 100644
index 000000000000..1987320e72ba
--- /dev/null
+++ b/dev-go/sarama/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-go/sarama
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-go/sarama/ChangeLog,v 1.1 2015/07/30 21:17:18 zmedico Exp $
+
+*sarama-9999 (30 Jul 2015)
+*sarama-1.4.3 (30 Jul 2015)
+
+ 30 Jul 2015; Zac Medico <zmedico@gentoo.org> +metadata.xml,
+ +sarama-1.4.3.ebuild, +sarama-9999.ebuild:
+ Add sarama.
diff --git a/dev-go/sarama/Manifest b/dev-go/sarama/Manifest
new file mode 100644
index 000000000000..112a038e5728
--- /dev/null
+++ b/dev-go/sarama/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+DIST sarama-1.4.3.tar.gz 86096 SHA256 2e9ad67fd128b139e4a55532f07dff21d9705884ac6063b6f494a3b6db728688 SHA512 6117d08b1f7dc7feebacee60a3672d24ec909417a40dd686fdba9740304522c74d59f866ab37a90fdbd137bb491175d2cdf2694129f2da5d8c10dff97efb062b WHIRLPOOL a829d60790820d90179e9b30dcff1e4eaab5caecdaba072945a7223a8a2697ebb40abd4a7179fff50cd1598ac6b85adeb74c7d9c2464ead9acc906913b24d0c9
+EBUILD sarama-1.4.3.ebuild 1532 SHA256 b39c34578fb9ba423a77814a84af79f7af06e5b184127eecd94a36f5a38dfbaf SHA512 e07dcbe520e7cd9b4dea36ba2000cb857fb9a0a510a807213c2686e62cc13253269b87b0ff1d5f9b1700f2b78e6b0b993b0b28b9897d43c5ee086a24fb17a738 WHIRLPOOL 427b0089ee50b0f09f3d20dc1fe059a40afa0744e50e137433a607d52c593d94e876b10387b11fa0110fecb7b414561f0cd4bee2f98bfb9778d39558a0190f85
+EBUILD sarama-9999.ebuild 1531 SHA256 3e5e3ac21f272d8bd14c977c61ef782b222625685d31916f46fa585e6608996f SHA512 bc025da7c04be10e875a712385cf9af5595f68dd001866967062e86163b7bc59d125699e5c861410d761255fc32bea8f86979833184fa2d3b9170eb6d7fa0e14 WHIRLPOOL 76c9c4a657ed5537f35d31c8eafec473966286e0827906616e41a7d40542f6e0078293c4e6b3bfee762bff5b31ca2ccb0ef0584bafac2f618554fffc95bad171
+MISC ChangeLog 377 SHA256 c5816ac0b438fba06d73c0948455fda6fb89f0110fd53e2af7253204fefc6dae SHA512 d021d55e0c086260394f68f83d4d83175fbea6c2a007ba0d184d3b3582303f1574c5b45092d564adfe6175559163065dc391975aafae90bc5c8b437c09be2c8e WHIRLPOOL 6b80bc5f02e7fcc9a9e4abac0a0d2c308ea535ecbf0543e8e4d1b9e470975a2e37c525966242cea3f4dfc4255f457edb93dbc585535f674d8d0445110130e7bb
+MISC metadata.xml 291 SHA256 72edf822cd58d20bff3a799e1fa0c14c0416ed36606d8503447e79b937b91457 SHA512 5b723db2f859a00be273cd67a125a48a33e5ccb04d55dd8eb5f32c639de67c4fea3221a130649c199cbaa95120a5c2b58db0dba27b414b134b7d54964c803f19 WHIRLPOOL c1b26de52083a341274f1c188587e4756cc7ef352bcd3e0741da07b9b40a2f45ab3ed6d50b6f27cc0a3b42642d7fa6d3f0ddb9747ab4c8d8db6ef1e0c38fcc82
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iEYEAREIAAYFAlW6lGAACgkQ/ejvha5XGaM8DgCeOc5kOn2h0ONEOHWho6pv63kR
+oOsAni+Ns2sCyXR3jZIE1LW82eU+Ipz2
+=0ycr
+-----END PGP SIGNATURE-----
diff --git a/dev-go/sarama/metadata.xml b/dev-go/sarama/metadata.xml
new file mode 100644
index 000000000000..061f4c09127e
--- /dev/null
+++ b/dev-go/sarama/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Shopify/sarama</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-go/sarama/sarama-1.4.3.ebuild b/dev-go/sarama/sarama-1.4.3.ebuild
new file mode 100644
index 000000000000..b44b75947908
--- /dev/null
+++ b/dev-go/sarama/sarama-1.4.3.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-go/sarama/sarama-1.4.3.ebuild,v 1.1 2015/07/30 21:17:18 zmedico Exp $
+
+EAPI=5
+
+EGO_SRC=github.com/Shopify/${PN}
+EGO_PN=${EGO_SRC}/...
+
+if [[ ${PV} = *9999* ]]; then
+ inherit golang-vcs
+else
+ KEYWORDS="~amd64"
+ SRC_URI="https://${EGO_SRC}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+fi
+inherit golang-build
+
+DESCRIPTION="Sarama is a Go library for Apache Kafka"
+HOMEPAGE="https://${EGO_SRC}"
+LICENSE="MIT"
+SLOT="0/${PV}"
+IUSE="test"
+DEPEND="dev-go/go-eapache-queue
+ dev-go/go-resiliency
+ dev-go/go-snappy
+ test? ( dev-go/go-spew )"
+RDEPEND=""
+
+if [[ ${PV} != *9999* ]]; then
+src_unpack() {
+ local f
+
+ for f in ${A}
+ do
+ case "${f}" in
+ *.tar|*.tar.gz|*.tar.bz2|*.tar.xz)
+ local destdir=${WORKDIR}/${P}/src/${EGO_SRC}
+
+ debug-print "${FUNCNAME}: unpacking ${f} to ${destdir}"
+
+ # XXX: check whether the directory structure inside is
+ # fine? i.e. if the tarball has actually a parent dir.
+ mkdir -p "${destdir}" || die
+ tar -C "${destdir}" -x --strip-components 1 \
+ -f "${DISTDIR}/${f}" || die
+ ;;
+ *)
+ debug-print "${FUNCNAME}: falling back to unpack for ${f}"
+
+ # fall back to the default method
+ unpack "${f}"
+ ;;
+ esac
+ done
+}
+fi
+
+src_prepare() {
+ # avoid toxiproxy dependency
+ rm src/${EGO_SRC}/functional*_test.go || die
+}
+
+src_install() {
+ rm -rf src/${EGO_SRC}/.git* || die
+ golang-build_src_install
+ rm bin/http_server || die
+ dobin bin/*
+}
diff --git a/dev-go/sarama/sarama-9999.ebuild b/dev-go/sarama/sarama-9999.ebuild
new file mode 100644
index 000000000000..09fa74ca2385
--- /dev/null
+++ b/dev-go/sarama/sarama-9999.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-go/sarama/sarama-9999.ebuild,v 1.1 2015/07/30 21:17:18 zmedico Exp $
+
+EAPI=5
+
+EGO_SRC=github.com/Shopify/${PN}
+EGO_PN=${EGO_SRC}/...
+
+if [[ ${PV} = *9999* ]]; then
+ inherit golang-vcs
+else
+ KEYWORDS="~amd64"
+ SRC_URI="https://${EGO_SRC}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+fi
+inherit golang-build
+
+DESCRIPTION="Sarama is a Go library for Apache Kafka"
+HOMEPAGE="https://${EGO_SRC}"
+LICENSE="MIT"
+SLOT="0/${PV}"
+IUSE="test"
+DEPEND="dev-go/go-eapache-queue
+ dev-go/go-resiliency
+ dev-go/go-snappy
+ test? ( dev-go/go-spew )"
+RDEPEND=""
+
+if [[ ${PV} != *9999* ]]; then
+src_unpack() {
+ local f
+
+ for f in ${A}
+ do
+ case "${f}" in
+ *.tar|*.tar.gz|*.tar.bz2|*.tar.xz)
+ local destdir=${WORKDIR}/${P}/src/${EGO_SRC}
+
+ debug-print "${FUNCNAME}: unpacking ${f} to ${destdir}"
+
+ # XXX: check whether the directory structure inside is
+ # fine? i.e. if the tarball has actually a parent dir.
+ mkdir -p "${destdir}" || die
+ tar -C "${destdir}" -x --strip-components 1 \
+ -f "${DISTDIR}/${f}" || die
+ ;;
+ *)
+ debug-print "${FUNCNAME}: falling back to unpack for ${f}"
+
+ # fall back to the default method
+ unpack "${f}"
+ ;;
+ esac
+ done
+}
+fi
+
+src_prepare() {
+ # avoid toxiproxy dependency
+ rm src/${EGO_SRC}/functional*_test.go || die
+}
+
+src_install() {
+ rm -rf src/${EGO_SRC}/.git* || die
+ golang-build_src_install
+ rm bin/http_server || die
+ dobin bin/*
+}