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>
This commit is contained in:
2026-05-19 00:03:42 +09:00
parent 0e95573f18
commit 8807cbc730
88 changed files with 612 additions and 874 deletions

View File

@@ -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",