aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2024-02-29 14:57:46 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2024-02-29 14:57:46 +0000
commit76a79ae7bfe837b3e075b565ac91888bc9174352 (patch)
tree1af6889ddde0602d0ff8fb9ee75ecd92b6b484ad
parente37109f1766e97f8aecf23417ef83167a43831ed (diff)
downloadports-76a79ae7bfe837b3e075b565ac91888bc9174352.tar.gz
ports-76a79ae7bfe837b3e075b565ac91888bc9174352.zip
devel/p5-Hash-SharedMem: Add new port
This module provides a facility for efficiently sharing mutable data between processes on one host. Data is organised as a key/value store, resembling a Perl hash. The keys and values are restricted to octet (Latin-1) strings. Structured objects may be stored by serialising them using a mechanism such as Sereal. Approved by: hrs (mentor)
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-Hash-SharedMem/Makefile31
-rw-r--r--devel/p5-Hash-SharedMem/distinfo3
-rw-r--r--devel/p5-Hash-SharedMem/pkg-descr6
4 files changed, 41 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 39b954c1fcd6..313093e804a0 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2636,6 +2636,7 @@
SUBDIR += p5-Hash-NoRef
SUBDIR += p5-Hash-Objectify
SUBDIR += p5-Hash-Ordered
+ SUBDIR += p5-Hash-SharedMem
SUBDIR += p5-Hash-Slice
SUBDIR += p5-Hash-Union
SUBDIR += p5-Hash-Util-FieldHash-Compat
diff --git a/devel/p5-Hash-SharedMem/Makefile b/devel/p5-Hash-SharedMem/Makefile
new file mode 100644
index 000000000000..47042b58fbfb
--- /dev/null
+++ b/devel/p5-Hash-SharedMem/Makefile
@@ -0,0 +1,31 @@
+PORTNAME= Hash-SharedMem
+PORTVERSION= 0.005
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= nork@FreeBSD.org
+COMMENT= Efficient shared mutable hash
+WWW= https://metacpan.org/release/Hash-SharedMem
+
+LICENSE= ART10 GPLv1+
+LICENSE_COMB= dual
+
+BUILD_DEPENDS= p5-Devel-CallChecker>0:devel/p5-Devel-CallChecker \
+ p5-Scalar-String>0:devel/p5-Scalar-String
+RUN_DEPENDS= p5-Devel-CallChecker>0:devel/p5-Devel-CallChecker \
+ p5-Scalar-String>0:devel/p5-Scalar-String
+
+USES= perl5
+USE_PERL5= modbuild
+
+PLIST_FILES= ${SITE_ARCH_REL}/auto/Hash/SharedMem/SharedMem.so \
+ ${SITE_ARCH_REL}/Hash/SharedMem.pm \
+ ${SITE_ARCH_REL}/Hash/SharedMem/Handle.pm \
+ ${SITE_MAN3_REL}/Hash::SharedMem.3.gz \
+ ${SITE_MAN3_REL}/Hash::SharedMem::Handle.3.gz
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Hash/SharedMem/SharedMem.so
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Hash-SharedMem/distinfo b/devel/p5-Hash-SharedMem/distinfo
new file mode 100644
index 000000000000..73e35eeeb1b0
--- /dev/null
+++ b/devel/p5-Hash-SharedMem/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1708692187
+SHA256 (Hash-SharedMem-0.005.tar.gz) = 324776808602f7bdc44adaa937895365454029a926fa611f321c9bf6b940bb5e
+SIZE (Hash-SharedMem-0.005.tar.gz) = 117668
diff --git a/devel/p5-Hash-SharedMem/pkg-descr b/devel/p5-Hash-SharedMem/pkg-descr
new file mode 100644
index 000000000000..0c995fd0df26
--- /dev/null
+++ b/devel/p5-Hash-SharedMem/pkg-descr
@@ -0,0 +1,6 @@
+This module provides a facility for efficiently sharing mutable
+data between processes on one host. Data is organised as a
+key/value store, resembling a Perl hash. The keys and values
+are restricted to octet (Latin-1) strings. Structured objects
+may be stored by serialising them using a mechanism such as
+Sereal.