git: 9337adbf47ae - main - devel/p5-Mojo-Base-XS: Add
- Reply: Po-Chuan Hsieh : "Re: git: 9337adbf47ae - main - devel/p5-Mojo-Base-XS: Add"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Aug 2022 14:48:37 UTC
The branch main has been updated by adamw:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9337adbf47ae78ab55b1dff2a5a30be6d7df53d8
commit 9337adbf47ae78ab55b1dff2a5a30be6d7df53d8
Author: Adam Weinberger <adamw@FreeBSD.org>
AuthorDate: 2022-08-21 14:47:52 +0000
Commit: Adam Weinberger <adamw@FreeBSD.org>
CommitDate: 2022-08-21 14:47:52 +0000
devel/p5-Mojo-Base-XS: Add
Mojo::Base::XS implements fast XS-based accessors using the Mojolicious
interface. The accessors are based on Class::XSAccessor.
It can monkey-patch itself into Mojo::Base, or be used as a standalone
inclusion. The same limitations from Mojo::Base apply here, namely that
it doesn't support BUILD/before/after wrappers or roles. Use p5-Moo if
you want those features.
WWW: https://metacpan.org/pod/Mojo::Base::XS
---
devel/Makefile | 1 +
devel/p5-Mojo-Base-XS/Makefile | 21 +++++++++++++++++++++
devel/p5-Mojo-Base-XS/distinfo | 3 +++
devel/p5-Mojo-Base-XS/pkg-descr | 9 +++++++++
devel/p5-Mojo-Base-XS/pkg-plist | 3 +++
5 files changed, 37 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index b31a5c0965f9..0e0c824919a9 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2824,6 +2824,7 @@
SUBDIR += p5-Module-Version
SUBDIR += p5-Module-Versions
SUBDIR += p5-Module-Versions-Report
+ SUBDIR += p5-Mojo-Base-XS
SUBDIR += p5-Mojolicious-Plugin-NYTProf
SUBDIR += p5-Moo
SUBDIR += p5-MooX-Aliases
diff --git a/devel/p5-Mojo-Base-XS/Makefile b/devel/p5-Mojo-Base-XS/Makefile
new file mode 100644
index 000000000000..063a92d43074
--- /dev/null
+++ b/devel/p5-Mojo-Base-XS/Makefile
@@ -0,0 +1,21 @@
+PORTNAME= Mojo-Base-XS
+PORTVERSION= 0.07
+CATEGORIES= devel perl5
+# Won't fetch with MASTER_SITES=CPAN for some reason
+MASTER_SITES= https://cpan.metacpan.org/authors/id/Y/YK/YKO/
+
+MAINTAINER= adamw@FreeBSD.org
+COMMENT= Very fast Mojo-style accessors
+
+LICENSE= ART10 GPLv1+
+LICENSE_COMB= dual
+
+TEST_DEPENDS= p5-Mojolicious>0:www/p5-Mojolicious
+
+USES= perl5
+USE_PERL5= configure
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Mojo/Base/XS/XS.so
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Mojo-Base-XS/distinfo b/devel/p5-Mojo-Base-XS/distinfo
new file mode 100644
index 000000000000..e209642e2d14
--- /dev/null
+++ b/devel/p5-Mojo-Base-XS/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1661092890
+SHA256 (Mojo-Base-XS-0.07.tar.gz) = 7e837ea4a5419dec9ec6648a6e26e32dad92419674ffc960ffe6e3be9a4ad9bf
+SIZE (Mojo-Base-XS-0.07.tar.gz) = 80948
diff --git a/devel/p5-Mojo-Base-XS/pkg-descr b/devel/p5-Mojo-Base-XS/pkg-descr
new file mode 100644
index 000000000000..96b04948c68c
--- /dev/null
+++ b/devel/p5-Mojo-Base-XS/pkg-descr
@@ -0,0 +1,9 @@
+Mojo::Base::XS implements fast XS-based accessors using the Mojolicious
+interface. The accessors are based on Class::XSAccessor.
+
+It can monkey-patch itself into Mojo::Base, or be used as a standalone
+inclusion. The same limitations from Mojo::Base apply here, namely that
+it doesn't support BUILD/before/after wrappers or roles. Use p5-Moo if
+you want those features.
+
+WWW: https://metacpan.org/pod/Mojo::Base::XS
diff --git a/devel/p5-Mojo-Base-XS/pkg-plist b/devel/p5-Mojo-Base-XS/pkg-plist
new file mode 100644
index 000000000000..c3f03eacf5c7
--- /dev/null
+++ b/devel/p5-Mojo-Base-XS/pkg-plist
@@ -0,0 +1,3 @@
+%%SITE_ARCH%%/Mojo/Base/XS.pm
+%%SITE_ARCH%%/auto/Mojo/Base/XS/XS.so
+%%PERL5_MAN3%%/Mojo::Base::XS.3.gz