Skip to content

Commit

Permalink
devel/p5-Hash-SharedMem: Add new port
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
nanorkyo committed Feb 29, 2024
1 parent e37109f commit 76a79ae
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -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
Expand Down
31 changes: 31 additions & 0 deletions 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>
3 changes: 3 additions & 0 deletions 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
6 changes: 6 additions & 0 deletions 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.

0 comments on commit 76a79ae

Please sign in to comment.