git: d3f4352c9e33 - main - devel/p5-isa: Add new port
- Reply: Mathieu Arnold : "Re: git: d3f4352c9e33 - main - devel/p5-isa: Add new port"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 22 Jul 2025 17:36:51 UTC
The branch main has been updated by dvl:
URL: https://cgit.FreeBSD.org/ports/commit/?id=d3f4352c9e33e613fe445d2ff1f5b60d6efe5835
commit d3f4352c9e33e613fe445d2ff1f5b60d6efe5835
Author: Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2025-07-22 13:35:52 +0000
Commit: Dan Langille <dvl@FreeBSD.org>
CommitDate: 2025-07-22 17:36:40 +0000
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
---
devel/Makefile | 1 +
devel/p5-isa/Makefile | 19 +++++++++++++++++++
devel/p5-isa/distinfo | 3 +++
devel/p5-isa/pkg-descr | 9 +++++++++
devel/p5-isa/pkg-plist | 2 ++
5 files changed, 34 insertions(+)
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