aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Langille <dvl@FreeBSD.org>2025-07-22 13:35:52 +0000
committerDan Langille <dvl@FreeBSD.org>2025-07-22 17:36:40 +0000
commitd3f4352c9e33e613fe445d2ff1f5b60d6efe5835 (patch)
treede116e18b96a54ae5176d1b62b50db23edab16a3
parent10bc30db52296af4a8edc512c76ca8886d8800da (diff)
devel/p5-isa: Add new port
The new isa operator in Perl 5.32 is pretty great, but if you need to support legacy versions of Perl, you can't use it yet. This module gives you isa-like functions you can use in Perl 5.6 and above
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-isa/Makefile19
-rw-r--r--devel/p5-isa/distinfo3
-rw-r--r--devel/p5-isa/pkg-descr9
-rw-r--r--devel/p5-isa/pkg-plist2
5 files changed, 34 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 379a91f8168d..1927e32c34f5 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3973,6 +3973,7 @@
SUBDIR += p5-iCal-Parser
SUBDIR += p5-indirect
SUBDIR += p5-interface
+ SUBDIR += p5-isa
SUBDIR += p5-latest
SUBDIR += p5-lexical-underscore
SUBDIR += p5-lib-abs
diff --git a/devel/p5-isa/Makefile b/devel/p5-isa/Makefile
new file mode 100644
index 000000000000..a7f7ba472320
--- /dev/null
+++ b/devel/p5-isa/Makefile
@@ -0,0 +1,19 @@
+PORTNAME= isa
+PORTVERSION= 2.001
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+MASTER_SITE_SUBDIR= CPAN:TOBYINK
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= dvl@FreeBSD.org
+COMMENT= isa - is not the isa operator
+WWW= https://metacpan.org/pod/isa
+
+LICENSE= ART10
+
+USES= perl5
+USE_PERL5= configure
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/p5-isa/distinfo b/devel/p5-isa/distinfo
new file mode 100644
index 000000000000..07f9749263de
--- /dev/null
+++ b/devel/p5-isa/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1753113333
+SHA256 (isa-2.001.tar.gz) = 0f947dd5a11845e74db40dadc2e8c6d5766539687f4a08a3b1ef418326c4585b
+SIZE (isa-2.001.tar.gz) = 15623
diff --git a/devel/p5-isa/pkg-descr b/devel/p5-isa/pkg-descr
new file mode 100644
index 000000000000..1554f10369a3
--- /dev/null
+++ b/devel/p5-isa/pkg-descr
@@ -0,0 +1,9 @@
+The new isa operator in Perl 5.32 is pretty great, but if you need to support
+legacy versions of Perl, you can't use it yet. This module gives you isa-like
+functions you can use in Perl 5.6 and above.
+
+If you've got Type::Tiny::XS installed, you will probably find that this module
+is faster than the native isa operator!
+
+The functions exported respect inheritance and allow classes to override their
+isa method as you'd expect.
diff --git a/devel/p5-isa/pkg-plist b/devel/p5-isa/pkg-plist
new file mode 100644
index 000000000000..8804bfc8a804
--- /dev/null
+++ b/devel/p5-isa/pkg-plist
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/isa.pm
+%%PERL5_MAN3%%/isa.3.gz