diff mbox series

[meta-perl,1/2] libsub-quote-perl: add recipe

Message ID 20261201023749.2889164-1-tim.orling@konsulko.com
State Changes Requested
Headers show
Series [meta-perl,1/2] libsub-quote-perl: add recipe | expand

Commit Message

Tim Orling Dec. 1, 2026, 2:37 a.m. UTC
Sub::Quote and Sub::Defer were split out of Moo into the Sub-Quote
distribution, and Moo needs them to generate accessors and constructors.
Add a recipe for Sub-Quote 2.006008, with a ptest.

The ptest passes on qemux86-64 (15 pass), so add it to
PTESTS_FAST_META_PERL.

AI-Generated: Uses Claude Code (Claude Opus 5.5)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
 .../include/ptest-packagelists-meta-perl.inc  |  1 +
 .../libsub/libsub-quote-perl_2.006008.bb      | 34 +++++++++++++++++++
 2 files changed, 35 insertions(+)
 create mode 100644 meta-perl/recipes-perl/libsub/libsub-quote-perl_2.006008.bb

Comments

Khem Raj Dec. 1, 2026, 3:30 a.m. UTC | #1
On Mon, Nov 30, 2026 at 6:37 PM Tim Orling <tim.orling@konsulko.com> wrote:
> Sub::Quote and Sub::Defer were split out of Moo into the Sub-Quote
> distribution, and Moo needs them to generate accessors and constructors.
> Add a recipe for Sub-Quote 2.006008, with a ptest.

Please use 2.006009 (2025-08-20), the latest release.

> +RDEPENDS:${PN} += "\
> +    perl-module-b \

Sub::Quote only uses B::perlstring if B is already loaded, or as a
fallback after XString, so this is not needed. Harmless though.

-Khem
diff mbox series

Patch

diff --git a/meta-perl/conf/include/ptest-packagelists-meta-perl.inc b/meta-perl/conf/include/ptest-packagelists-meta-perl.inc
index 8a97fb2a4a..dc699f0ba5 100644
--- a/meta-perl/conf/include/ptest-packagelists-meta-perl.inc
+++ b/meta-perl/conf/include/ptest-packagelists-meta-perl.inc
@@ -32,6 +32,7 @@  PTESTS_FAST_META_PERL = "\
     libnet-ldap-perl \
     libnet-ssleay-perl \
     libstrictures-perl \
+    libsub-quote-perl \
     libsub-uplevel-perl \
     libterm-readkey-perl \
     libtest-deep-perl \
diff --git a/meta-perl/recipes-perl/libsub/libsub-quote-perl_2.006008.bb b/meta-perl/recipes-perl/libsub/libsub-quote-perl_2.006008.bb
new file mode 100644
index 0000000000..dc1a3ef34f
--- /dev/null
+++ b/meta-perl/recipes-perl/libsub/libsub-quote-perl_2.006008.bb
@@ -0,0 +1,34 @@ 
+SUMMARY = "Sub::Quote - Efficient generation of subroutines via string eval"
+DESCRIPTION = "Sub::Quote provides an efficient way to generate subroutines \
+from strings of code, and Sub::Defer allows deferring the generation of a \
+subroutine until it is first called. Moo uses both to generate accessors \
+and constructors."
+HOMEPAGE = "https://metacpan.org/dist/Sub-Quote"
+SECTION = "libs"
+
+LICENSE = "Artistic-1.0 OR GPL-1.0-or-later"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=cbfad6e324ce5ceae2608874ddea0133"
+
+SRC_URI = "${CPAN_MIRROR}/authors/id/H/HA/HAARG/Sub-Quote-${PV}.tar.gz"
+SRC_URI[sha256sum] = "94bebd500af55762e83ea2f2bc594d87af828072370c7110c60c238a800d15b2"
+
+S = "${UNPACKDIR}/Sub-Quote-${PV}"
+
+inherit cpan ptest-perl
+
+RDEPENDS:${PN} += "\
+    perl-module-b \
+    perl-module-carp \
+    perl-module-exporter \
+    perl-module-scalar-util \
+    perl-module-sub-util \
+"
+
+RDEPENDS:${PN}-ptest += "\
+    perl-module-lib \
+    perl-module-test-more \
+    perl-module-threads \
+    perl-module-utf8 \
+"
+
+BBCLASSEXTEND = "native"