From b344c7f3cc726e0cd68c3de7657d47f76f7ae980 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Mon, 31 Jan 2011 11:43:02 +0000 Subject: [PATCH] Hiredis is a minimalistic C client library for the Redis database. It is minimalistic because it just adds minimal support for the protocol, but at the same time it uses an high level printf-alike API in order to make it much higher level than otherwise suggested by its minimal code base and the lack of explicit bindings for every Redis command. Apart from supporting sending commands and receiving replies, it comes with a reply parser that is decoupled from the I/O layer. It is a stream parser designed for easy reusability, which can for instance be used in higher level language bindings for efficient reply parsing. Hiredis only supports the binary-safe Redis protocol, so you can use it with any Redis version >= 1.2.0. The library comes with multiple APIs. There is the synchronous API, the asynchronous API and the reply parsing API. WWW: https://github.com/antirez/hiredis PR: ports/153535 Submitted by: Grzegorz Blach Feature safe: yes --- databases/Makefile | 1 + databases/hiredis/Makefile | 27 +++++++++++++++++++++++++++ databases/hiredis/distinfo | 2 ++ databases/hiredis/pkg-descr | 19 +++++++++++++++++++ databases/hiredis/pkg-plist | 9 +++++++++ 5 files changed, 58 insertions(+) create mode 100644 databases/hiredis/Makefile create mode 100644 databases/hiredis/distinfo create mode 100644 databases/hiredis/pkg-descr create mode 100644 databases/hiredis/pkg-plist diff --git a/databases/Makefile b/databases/Makefile index 82e64d581ca8..45ba80e2912e 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -113,6 +113,7 @@ SUBDIR += grass SUBDIR += gtksql SUBDIR += hamsterdb + SUBDIR += hiredis SUBDIR += hk_classes SUBDIR += hsqldb SUBDIR += hypertable diff --git a/databases/hiredis/Makefile b/databases/hiredis/Makefile new file mode 100644 index 000000000000..570feb5d4b62 --- /dev/null +++ b/databases/hiredis/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: hiredis +# Date created: 29 December 2010 +# Whom: Grzegorz Blach +# +# $FreeBSD$ +# + +PORTNAME= hiredis +DISTVERSION= 0.9.2 +CATEGORIES= databases +MASTER_SITES= https://github.com/antirez/hiredis/tarball/v${DISTVERSION}/ +DISTNAME= antirez-${PORTNAME}-v${DISTVERSION}-0-g${GITVERSION} + +MAINTAINER= magik@roorback.net +COMMENT= Minimalistic C client library for the Redis database + +LICENSE= BSD + +GITVERSION= 0fbfa45 +FETCH_ARGS= -pRr +WRKSRC= ${WRKDIR}/antirez-${PORTNAME}-${GITVERSION} + +USE_GMAKE= yes +CFLAGS+= -fPIC +USE_LDCONFIG= yes + +.include diff --git a/databases/hiredis/distinfo b/databases/hiredis/distinfo new file mode 100644 index 000000000000..ce5bd6c61804 --- /dev/null +++ b/databases/hiredis/distinfo @@ -0,0 +1,2 @@ +SHA256 (antirez-hiredis-v0.9.2-0-g0fbfa45.tar.gz) = 02cf8653bb1afa8e56545103e00b4d7cd64bc34db6cae44465bde9919e420b4d +SIZE (antirez-hiredis-v0.9.2-0-g0fbfa45.tar.gz) = 29669 diff --git a/databases/hiredis/pkg-descr b/databases/hiredis/pkg-descr new file mode 100644 index 000000000000..f261840c7f4d --- /dev/null +++ b/databases/hiredis/pkg-descr @@ -0,0 +1,19 @@ +Hiredis is a minimalistic C client library for the Redis database. + +It is minimalistic because it just adds minimal support for the protocol, +but at the same time it uses an high level printf-alike API in order to make +it much higher level than otherwise suggested by its minimal code base and +the lack of explicit bindings for every Redis command. + +Apart from supporting sending commands and receiving replies, it comes with +a reply parser that is decoupled from the I/O layer. It is a stream parser +designed for easy reusability, which can for instance be used in higher +level language bindings for efficient reply parsing. + +Hiredis only supports the binary-safe Redis protocol, so you can use it with +any Redis version >= 1.2.0. + +The library comes with multiple APIs. There is the synchronous API, the +asynchronous API and the reply parsing API. + +WWW: https://github.com/antirez/hiredis diff --git a/databases/hiredis/pkg-plist b/databases/hiredis/pkg-plist new file mode 100644 index 000000000000..fb9cb33dceed --- /dev/null +++ b/databases/hiredis/pkg-plist @@ -0,0 +1,9 @@ +include/hiredis/async.h +include/hiredis/hiredis.h +include/hiredis/adapters/ae.h +include/hiredis/adapters/libev.h +include/hiredis/adapters/libevent.h +lib/libhiredis.a +lib/libhiredis.so +@dirrm include/hiredis/adapters +@dirrm include/hiredis