git: 76a79ae7bfe8 - main - devel/p5-Hash-SharedMem: Add new port

From: Norikatsu Shigemura <nork_at_FreeBSD.org>
Date: Thu, 29 Feb 2024 14:59:00 UTC
The branch main has been updated by nork:

URL: https://cgit.FreeBSD.org/ports/commit/?id=76a79ae7bfe837b3e075b565ac91888bc9174352

commit 76a79ae7bfe837b3e075b565ac91888bc9174352
Author:     Norikatsu Shigemura <nork@FreeBSD.org>
AuthorDate: 2024-02-29 14:57:46 +0000
Commit:     Norikatsu Shigemura <nork@FreeBSD.org>
CommitDate: 2024-02-29 14:57:46 +0000

    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)
---
 devel/Makefile                    |  1 +
 devel/p5-Hash-SharedMem/Makefile  | 31 +++++++++++++++++++++++++++++++
 devel/p5-Hash-SharedMem/distinfo  |  3 +++
 devel/p5-Hash-SharedMem/pkg-descr |  6 ++++++
 4 files changed, 41 insertions(+)

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.