libsub-quote-perl: add recipe
PATCH 1/2 libsub-quote-perl: add recipe
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)
--- .../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
meta-perl/conf/include/ptest-packagelists-meta-perl.inc +1 -0
@@ -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 \
meta-perl/recipes-perl/libsub/libsub-quote-perl_2.006008.bb new file +34 -0
@@ -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"
Signature · 1 line
2.47.3
PATCH 2/2 libmoo-perl: fix missing Sub::Quote and Carp::Heavy
Moo no longer ships Sub::Quote and Sub::Defer, but the recipe still lists libsub-quote-perl and libsub-defer-perl in RPROVIDES, so nothing installs them. Any class with a "has" attribute then fails with "Can't locate Sub/Quote.pm". Method::Generate::Constructor also uses Carp::Heavy, which nothing in RDEPENDS pulls in.
Drop the stale RPROVIDES and add libsub-quote-perl and perl-module-carp-heavy to RDEPENDS. Tested on qemux86-64 with a Moo class with default and required attributes.
While here, use single quotes instead of escaped double quotes in DESCRIPTION. oelint-adv's multilineident rule crashes on escaped quotes in the first line of a multi-line value.
AI-Generated: Uses Claude Code (Claude Opus 5.5)
--- meta-perl/recipes-perl/libmoo/libmoo-perl_2.005005.bb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
meta-perl/recipes-perl/libmoo/libmoo-perl_2.005005.bb +4 -4
@@ -1,6 +1,6 @@ SUMMARY = "Moo - Minimalist Object Orientation (with Moose compatibility)" -DESCRIPTION = "This module us an extremely light-weight subset of \"Moose\" \ -optimised for rapid startup and \"pay only for what you use\"." +DESCRIPTION = "This module us an extremely light-weight subset of 'Moose' \ +optimised for rapid startup and 'pay only for what you use'." SECTION = "libs"
@@ -20,6 +20,8 @@ RDEPENDS:${PN} = " libclass-method-modifiers-perl \ libdevel-globaldestruction-perl \ libmodule-runtime-perl \ librole-tiny-perl \ + libsub-quote-perl \ + perl-module-carp-heavy \ perl-module-constant \ perl-module-exporter \ perl-module-mro \
@@ -36,8 +38,6 @@ RPROVIDES:${PN} = " libmethod-inliner-perl \ libmoo-handlemoose-fakemetaclass-perl \ libmoo-object-perl \ libmoo-role-perl \ - libsub-defer-perl \ - libsub-quote-perl \ " BBCLASSEXTEND = "native"
Signature · 1 line
2.47.3