diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-19 00:03:42 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-19 00:44:24 +0900 |
| commit | 8807cbc7305e424725b2be8eed7ecd9234f7772e (patch) | |
| tree | 5998f055396505becf0f99fcba3c86514f00650b /internal/rosa/perl.go | |
| parent | 0e95573f187f64de1a46f27af67325e57037b9a9 (diff) | |
internal/rosa: create metadata alongside artifact
This enables deferring evaluation of azalea-based packages and fixes the longstanding quirk of version being disjoint from other metadata.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/perl.go')
| -rw-r--r-- | internal/rosa/perl.go | 48 |
1 files changed, 12 insertions, 36 deletions
diff --git a/internal/rosa/perl.go b/internal/rosa/perl.go index 4eb9ba1e..204022aa 100644 --- a/internal/rosa/perl.go +++ b/internal/rosa/perl.go @@ -50,9 +50,7 @@ chmod +w /system/bin && rm -f /system/bin/ps # perl does not like toybox ps }), version } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newPerl, - + native.mustRegister(Toolchain.newPerl, &Metadata{ Name: "perl", Description: "The Perl Programming language", Website: "https://www.perl.org/", @@ -100,9 +98,7 @@ func (t Toolchain) newPerlModuleBuild() (pkg.Artifact, string) { ), nil), version } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newPerlModuleBuild, - + native.mustRegister(Toolchain.newPerlModuleBuild, &Metadata{ Name: "perl-Module::Build", Description: "build and install Perl modules", Website: "https://metacpan.org/release/Module-Build", @@ -154,9 +150,7 @@ func (t Toolchain) newPerlLocaleGettext() (pkg.Artifact, string) { ), nil), version } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newPerlLocaleGettext, - + native.mustRegister(Toolchain.newPerlLocaleGettext, &Metadata{ Name: "perl-Locale::gettext", Description: "message handling functions", Website: "https://metacpan.org/release/Locale-gettext", @@ -178,9 +172,7 @@ func (t Toolchain) newPerlPodParser() (pkg.Artifact, string) { ), nil), version } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newPerlPodParser, - + native.mustRegister(Toolchain.newPerlPodParser, &Metadata{ Name: "perl-Pod::Parser", Description: "base class for creating POD filters and translators", Website: "https://metacpan.org/release/Pod-Parser", @@ -202,9 +194,7 @@ func (t Toolchain) newPerlSGMLS() (pkg.Artifact, string) { ), nil), version } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newPerlSGMLS, - + native.mustRegister(Toolchain.newPerlSGMLS, &Metadata{ Name: "perl-SGMLS", Description: "class for postprocessing the output from the sgmls and nsgmls parsers", Website: "https://metacpan.org/release/RAAB/SGMLSpm-1.1", @@ -240,9 +230,7 @@ func (t Toolchain) newPerlTermReadKey() (pkg.Artifact, string) { ), nil), version } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newPerlTermReadKey, - + native.mustRegister(Toolchain.newPerlTermReadKey, &Metadata{ Name: "perl-Term::ReadKey", Description: "a perl module for simple terminal control", Website: "https://metacpan.org/release/TermReadKey", @@ -264,9 +252,7 @@ func (t Toolchain) newPerlTextCharWidth() (pkg.Artifact, string) { ), nil), version } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newPerlTextCharWidth, - + native.mustRegister(Toolchain.newPerlTextCharWidth, &Metadata{ Name: "perl-Text::CharWidth", Description: "get number of occupied columns of a string on terminal", Website: "https://metacpan.org/release/Text-CharWidth", @@ -290,9 +276,7 @@ func (t Toolchain) newPerlTextWrapI18N() (pkg.Artifact, string) { ), version } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newPerlTextWrapI18N, - + native.mustRegister(Toolchain.newPerlTextWrapI18N, &Metadata{ Name: "perl-Text::WrapI18N", Description: "line wrapping module", Website: "https://metacpan.org/release/Text-WrapI18N", @@ -318,9 +302,7 @@ func (t Toolchain) newPerlMIMECharset() (pkg.Artifact, string) { ), nil), version } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newPerlMIMECharset, - + native.mustRegister(Toolchain.newPerlMIMECharset, &Metadata{ Name: "perl-MIME::Charset", Description: "Charset Information for MIME", Website: "https://metacpan.org/release/MIME-Charset", @@ -344,9 +326,7 @@ func (t Toolchain) newPerlUnicodeLineBreak() (pkg.Artifact, string) { ), version } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newPerlUnicodeLineBreak, - + native.mustRegister(Toolchain.newPerlUnicodeLineBreak, &Metadata{ Name: "perl-Unicode::LineBreak", Description: "String as Sequence of UAX #29 Grapheme Clusters", Website: "https://metacpan.org/release/Unicode-LineBreak", @@ -372,9 +352,7 @@ func (t Toolchain) newPerlYAMLTiny() (pkg.Artifact, string) { ), nil), version } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newPerlYAMLTiny, - + native.mustRegister(Toolchain.newPerlYAMLTiny, &Metadata{ Name: "perl-YAML::Tiny", Description: "read/write YAML files with as little code as possible", Website: "https://metacpan.org/release/YAML-Tiny", @@ -396,9 +374,7 @@ func (t Toolchain) newPerlTestCmd() (pkg.Artifact, string) { ), nil), version } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newPerlTestCmd, - + native.mustRegister(Toolchain.newPerlTestCmd, &Metadata{ Name: "perl-Test::Cmd", Description: "portable testing of commands and scripts", Website: "https://metacpan.org/release/Test-Cmd", |
