aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorpi <pi@FreeBSD.org>2018-06-20 19:19:12 +0800
committerpi <pi@FreeBSD.org>2018-06-20 19:19:12 +0800
commit1b0cb58c3d3ad40434e6bc20e2c6d23392ccbdb5 (patch)
treef32d0ab94b5e8eb118294b44369542645e7fbb19 /databases
parent1b1a0a00d0bc8f7e7875ace334245e14f7fe12ca (diff)
downloadfreebsd-ports-gnome-1b0cb58c3d3ad40434e6bc20e2c6d23392ccbdb5.tar.gz
freebsd-ports-gnome-1b0cb58c3d3ad40434e6bc20e2c6d23392ccbdb5.tar.zst
freebsd-ports-gnome-1b0cb58c3d3ad40434e6bc20e2c6d23392ccbdb5.zip
New port: databases/p5-Redis-Fast
Perl binding for Redis database. Redis::Fast is 4x faster than Redis.pm in pipeline mode. WWW: https://metacpan.org/release/Redis-Fast PR: 229141 Submitted by: Tomohiro Hosaka <bokutin@bokut.in>
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/p5-Redis-Fast/Makefile33
-rw-r--r--databases/p5-Redis-Fast/distinfo3
-rw-r--r--databases/p5-Redis-Fast/files/patch-deps_hiredis_Makefile11
-rw-r--r--databases/p5-Redis-Fast/pkg-descr4
-rw-r--r--databases/p5-Redis-Fast/pkg-plist9
6 files changed, 61 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 64d1feb3d408..72647f268654 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -473,6 +473,7 @@
SUBDIR += p5-Protocol-CassandraCQL
SUBDIR += p5-RRD-Simple
SUBDIR += p5-Redis
+ SUBDIR += p5-Redis-Fast
SUBDIR += p5-Redis-hiredis
SUBDIR += p5-RedisDB
SUBDIR += p5-RedisDB-Parser
diff --git a/databases/p5-Redis-Fast/Makefile b/databases/p5-Redis-Fast/Makefile
new file mode 100644
index 000000000000..8ca1fbbb067e
--- /dev/null
+++ b/databases/p5-Redis-Fast/Makefile
@@ -0,0 +1,33 @@
+# $FreeBSD$
+
+PORTNAME= Redis-Fast
+PORTVERSION= 0.21
+CATEGORIES= databases perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= bokutin@bokut.in
+COMMENT= Perl binding for Redis database
+
+LICENSE= ART10 GPLv1+
+LICENSE_COMB= dual
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= p5-File-Which>=0:sysutils/p5-File-Which \
+ p5-Module-Build>=0.4005:devel/p5-Module-Build \
+ p5-Module-Build-XSUtil>=0.02:devel/p5-Module-Build-XSUtil \
+ gmake:devel/gmake
+RUN_DEPENDS= p5-Try-Tiny>=0:lang/p5-Try-Tiny
+TEST_DEPENDS= p5-Parallel-ForkManager>=0:devel/p5-Parallel-ForkManager \
+ p5-Test-Deep>=0:devel/p5-Test-Deep \
+ p5-Test-Fatal>=0:devel/p5-Test-Fatal \
+ p5-Test-LeakTrace>=0:devel/p5-Test-LeakTrace \
+ p5-Test-SharedFork>=0:devel/p5-Test-SharedFork \
+ p5-Test-TCP>=0:devel/p5-Test-TCP \
+ p5-Test-UNIXSock>=0:devel/p5-Test-UNIXSock \
+ redis>=0:databases/redis
+
+USES= perl5
+USE_PERL5= modbuild
+
+.include <bsd.port.mk>
diff --git a/databases/p5-Redis-Fast/distinfo b/databases/p5-Redis-Fast/distinfo
new file mode 100644
index 000000000000..64b8a90be0ef
--- /dev/null
+++ b/databases/p5-Redis-Fast/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1529459970
+SHA256 (Redis-Fast-0.21.tar.gz) = 02fea8928075fdb8b0de4882b3f455b2af74106d9d73c1b080fec45b2e2ad986
+SIZE (Redis-Fast-0.21.tar.gz) = 106672
diff --git a/databases/p5-Redis-Fast/files/patch-deps_hiredis_Makefile b/databases/p5-Redis-Fast/files/patch-deps_hiredis_Makefile
new file mode 100644
index 000000000000..cdef7e318400
--- /dev/null
+++ b/databases/p5-Redis-Fast/files/patch-deps_hiredis_Makefile
@@ -0,0 +1,11 @@
+--- deps/hiredis/Makefile.orig 2016-01-26 13:11:38 UTC
++++ deps/hiredis/Makefile
+@@ -41,7 +41,7 @@ CXX:=$(shell sh -c 'type $(CXX) >/dev/nu
+ OPTIMIZATION?=-O3
+ WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings
+ DEBUG?= -g -ggdb
+-REAL_CFLAGS=$(OPTIMIZATION) -fPIC $(CFLAGS) $(WARNINGS) $(DEBUG) $(ARCH)
++REAL_CFLAGS=$(OPTIMIZATION) -fPIC $(CFLAGS) $(WARNINGS) $(DEBUG)
+ REAL_LDFLAGS=$(LDFLAGS) $(ARCH)
+
+ DYLIBSUFFIX=so
diff --git a/databases/p5-Redis-Fast/pkg-descr b/databases/p5-Redis-Fast/pkg-descr
new file mode 100644
index 000000000000..1174d21042db
--- /dev/null
+++ b/databases/p5-Redis-Fast/pkg-descr
@@ -0,0 +1,4 @@
+Perl binding for Redis database.
+Redis::Fast is 4x faster than Redis.pm in pipeline mode.
+
+WWW: https://metacpan.org/release/Redis-Fast
diff --git a/databases/p5-Redis-Fast/pkg-plist b/databases/p5-Redis-Fast/pkg-plist
new file mode 100644
index 000000000000..e77db28bf75c
--- /dev/null
+++ b/databases/p5-Redis-Fast/pkg-plist
@@ -0,0 +1,9 @@
+%%SITE_ARCH%%/Redis/Fast.pm
+%%SITE_ARCH%%/Redis/Fast/Hash.pm
+%%SITE_ARCH%%/Redis/Fast/List.pm
+%%SITE_ARCH%%/Redis/Fast/Sentinel.pm
+%%SITE_ARCH%%/auto/Redis/Fast/Fast.so
+%%PERL5_MAN3%%/Redis::Fast.3.gz
+%%PERL5_MAN3%%/Redis::Fast::Hash.3.gz
+%%PERL5_MAN3%%/Redis::Fast::List.3.gz
+%%PERL5_MAN3%%/Redis::Fast::Sentinel.3.gz