From 5ce075453bf73c45deecc9a1d3a8f63a46d1d776 Mon Sep 17 00:00:00 2001 From: Jesus Rivero Date: Fri, 1 Feb 2013 00:06:49 +0000 Subject: Initial commit. (Portage version: 2.1.11.9/cvs/Linux x86_64) --- dev-libs/hiredis/ChangeLog | 10 +++++ .../hiredis-0.11.0-disable-network-tests.patch | 19 ++++++++++ dev-libs/hiredis/hiredis-0.11.0.ebuild | 43 ++++++++++++++++++++++ dev-libs/hiredis/metadata.xml | 9 +++++ 4 files changed, 81 insertions(+) create mode 100644 dev-libs/hiredis/ChangeLog create mode 100644 dev-libs/hiredis/files/hiredis-0.11.0-disable-network-tests.patch create mode 100644 dev-libs/hiredis/hiredis-0.11.0.ebuild create mode 100644 dev-libs/hiredis/metadata.xml (limited to 'dev-libs/hiredis') diff --git a/dev-libs/hiredis/ChangeLog b/dev-libs/hiredis/ChangeLog new file mode 100644 index 000000000000..1267af944ae4 --- /dev/null +++ b/dev-libs/hiredis/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-libs/hiredis +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/hiredis/ChangeLog,v 1.1 2013/02/01 00:06:49 neurogeek Exp $ + +*hiredis-0.11.0 (01 Feb 2013) + + 01 Feb 2013; +hiredis-0.11.0.ebuild, + +files/hiredis-0.11.0-disable-network-tests.patch, +metadata.xml: + Initial commit + diff --git a/dev-libs/hiredis/files/hiredis-0.11.0-disable-network-tests.patch b/dev-libs/hiredis/files/hiredis-0.11.0-disable-network-tests.patch new file mode 100644 index 000000000000..e53a33ca9a28 --- /dev/null +++ b/dev-libs/hiredis/files/hiredis-0.11.0-disable-network-tests.patch @@ -0,0 +1,19 @@ +diff -uNr hiredis-0.11.0.orig/test.c hiredis-0.11.0/test.c +--- hiredis-0.11.0.orig/test.c 2013-01-14 10:16:25.000000000 -0500 ++++ hiredis-0.11.0/test.c 2013-01-14 10:18:05.000000000 -0500 +@@ -634,6 +634,7 @@ + test_reply_reader(); + test_blocking_connection_errors(); + ++/* + printf("\nTesting against TCP connection (%s:%d):\n", cfg.tcp.host, cfg.tcp.port); + cfg.type = CONN_TCP; + test_blocking_connection(cfg); +@@ -645,6 +646,7 @@ + test_blocking_connection(cfg); + test_blocking_io_errors(cfg); + if (throughput) test_throughput(cfg); ++*/ + + if (fails) { + printf("*** %d TESTS FAILED ***\n", fails); diff --git a/dev-libs/hiredis/hiredis-0.11.0.ebuild b/dev-libs/hiredis/hiredis-0.11.0.ebuild new file mode 100644 index 000000000000..2b370cdf86a5 --- /dev/null +++ b/dev-libs/hiredis/hiredis-0.11.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/hiredis/hiredis-0.11.0.ebuild,v 1.1 2013/02/01 00:06:49 neurogeek Exp $ + +EAPI=4 + +inherit eutils + +DESCRIPTION="Minimalistic C client library for the Redis database" +HOMEPAGE="http://github.com/redis/hiredis" +SRC_URI="http://github.com/redis/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug" + +DEPEND="" +RDEPEND="${DEPEND}" + +DOCS="CHANGELOG.md README.md" + +src_prepare() { + epatch "${FILESDIR}/${P}-disable-network-tests.patch" +} + +src_compile() { + + if ! use debug; then + emake CC="$(tc-getCC)" ARCH= DEBUG= + else + emake CC="$(tc-getCC)" ARCH= + fi +} + +src_test() { + emake test +} + +src_install() { + emake PREFIX="${ED}/usr" install + dodoc ${DOCS} +} diff --git a/dev-libs/hiredis/metadata.xml b/dev-libs/hiredis/metadata.xml new file mode 100644 index 000000000000..cfb83fda0ad9 --- /dev/null +++ b/dev-libs/hiredis/metadata.xml @@ -0,0 +1,9 @@ + + + + + neurogeek@gentoo.org + Jesus Rivero + Minimalistic C client library for the Redis database + + -- cgit v1.2.3-65-gdbad