summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesus Rivero <neurogeek@gentoo.org>2013-02-01 00:06:49 +0000
committerJesus Rivero <neurogeek@gentoo.org>2013-02-01 00:06:49 +0000
commit5ce075453bf73c45deecc9a1d3a8f63a46d1d776 (patch)
treee5c7b10f3b022fa9bb19ffce7057565da39d3833 /dev-libs/hiredis
parentwhitespace (diff)
downloadgentoo-2-5ce075453bf73c45deecc9a1d3a8f63a46d1d776.tar.gz
gentoo-2-5ce075453bf73c45deecc9a1d3a8f63a46d1d776.tar.bz2
gentoo-2-5ce075453bf73c45deecc9a1d3a8f63a46d1d776.zip
Initial commit.
(Portage version: 2.1.11.9/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/hiredis')
-rw-r--r--dev-libs/hiredis/ChangeLog10
-rw-r--r--dev-libs/hiredis/files/hiredis-0.11.0-disable-network-tests.patch19
-rw-r--r--dev-libs/hiredis/hiredis-0.11.0.ebuild43
-rw-r--r--dev-libs/hiredis/metadata.xml9
4 files changed, 81 insertions, 0 deletions
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; <neurogeek@gentoo.org> +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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>neurogeek@gentoo.org</email>
+ <name>Jesus Rivero</name>
+ <description>Minimalistic C client library for the Redis database</description>
+ </maintainer>
+</pkgmetadata>