aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-09-05 05:13:50 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-09-05 06:11:17 +0000
commita38aa39e083bf389dfe9066db114abb32143638c (patch)
tree1d91e0cb6c840d9ef83336d43c79e5eddac39401
parent0cbab0e6bc667ec97d722b9f414f641fba0b9ce3 (diff)
devel/p5-Scalar-Util-Numeric-PP: Add p5-Scalar-Util-Numeric-PP 0.04
Scalar::Util::Numeric::PP is written mainly for the convenience of Data::Sah, as a drop-in pure-perl replacement for the XS module Scalar::Util::Numeric, in the case when Data::Sah needs to generate code that uses PP modules instead of XS ones. Not all functions from Scalar::Util::Numeric have been provided.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-Scalar-Util-Numeric-PP/Makefile20
-rw-r--r--devel/p5-Scalar-Util-Numeric-PP/distinfo3
-rw-r--r--devel/p5-Scalar-Util-Numeric-PP/pkg-descr6
-rw-r--r--devel/p5-Scalar-Util-Numeric-PP/pkg-plist2
5 files changed, 32 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index bc24c3dcdc6b..828990f99870 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3417,6 +3417,7 @@
SUBDIR += p5-Scalar-String
SUBDIR += p5-Scalar-Util-LooksLikeNumber
SUBDIR += p5-Scalar-Util-Numeric
+ SUBDIR += p5-Scalar-Util-Numeric-PP
SUBDIR += p5-Scope-Container
SUBDIR += p5-Scope-Guard
SUBDIR += p5-Scope-Upper
diff --git a/devel/p5-Scalar-Util-Numeric-PP/Makefile b/devel/p5-Scalar-Util-Numeric-PP/Makefile
new file mode 100644
index 000000000000..c3836718bc67
--- /dev/null
+++ b/devel/p5-Scalar-Util-Numeric-PP/Makefile
@@ -0,0 +1,20 @@
+PORTNAME= Scalar-Util-Numeric-PP
+PORTVERSION= 0.04
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Pure-perl drop-in replacement/approximation of Scalar::Util::Numeric
+WWW= https://metacpan.org/dist/Scalar-Util-Numeric-PP
+
+LICENSE= ART10 GPLv1+
+LICENSE_COMB= dual
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= perl5
+USE_PERL5= configure
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Scalar-Util-Numeric-PP/distinfo b/devel/p5-Scalar-Util-Numeric-PP/distinfo
new file mode 100644
index 000000000000..beb49381460d
--- /dev/null
+++ b/devel/p5-Scalar-Util-Numeric-PP/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1724084466
+SHA256 (Scalar-Util-Numeric-PP-0.04.tar.gz) = 3b489c0c8f890754198a7130b0ad3b55d57cebe8168f68b7c25ae35c7d55a4e0
+SIZE (Scalar-Util-Numeric-PP-0.04.tar.gz) = 13536
diff --git a/devel/p5-Scalar-Util-Numeric-PP/pkg-descr b/devel/p5-Scalar-Util-Numeric-PP/pkg-descr
new file mode 100644
index 000000000000..b8d4c7a2ee9c
--- /dev/null
+++ b/devel/p5-Scalar-Util-Numeric-PP/pkg-descr
@@ -0,0 +1,6 @@
+Scalar::Util::Numeric::PP is written mainly for the convenience of Data::Sah, as
+a drop-in pure-perl replacement for the XS module Scalar::Util::Numeric, in the
+case when Data::Sah needs to generate code that uses PP modules instead of XS
+ones.
+
+Not all functions from Scalar::Util::Numeric have been provided.
diff --git a/devel/p5-Scalar-Util-Numeric-PP/pkg-plist b/devel/p5-Scalar-Util-Numeric-PP/pkg-plist
new file mode 100644
index 000000000000..681ac98396e0
--- /dev/null
+++ b/devel/p5-Scalar-Util-Numeric-PP/pkg-plist
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/Scalar/Util/Numeric/PP.pm
+%%PERL5_MAN3%%/Scalar::Util::Numeric::PP.3.gz