diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-13 12:39:36 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-13 13:23:30 +0900 |
| commit | b3f0360a05230dde609eb0e3fabf3a5d92792f94 (patch) | |
| tree | eafdfd1b13b9de94e2d9c9bf6f19329949eb85d8 /internal/rosa/perl.go | |
| parent | 89389940363143dd32dfa9920eb34850de541472 (diff) | |
internal/rosa: populate runtime dependencies
This also removes manually resolved indirect dependencies.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/perl.go')
| -rw-r--r-- | internal/rosa/perl.go | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/internal/rosa/perl.go b/internal/rosa/perl.go index 3a5fae66..07c1198f 100644 --- a/internal/rosa/perl.go +++ b/internal/rosa/perl.go @@ -68,14 +68,14 @@ func (t Toolchain) newViaPerlModuleBuild( name, version string, source pkg.Artifact, patches [][2]string, - extra ...pkg.Artifact, + extra ...PArtifact, ) pkg.Artifact { if name == "" || version == "" { panic("names must be non-empty") } - return t.New("perl-"+name, 0, slices.Concat(extra, []pkg.Artifact{ - t.Load(Perl), - }), nil, nil, ` + return t.New("perl-"+name, 0, t.AppendPresets(nil, + slices.Concat(P{Perl}, extra)..., + ), nil, nil, ` cd /usr/src/`+name+` perl Build.PL --prefix=/system ./Build build @@ -105,6 +105,10 @@ func init() { Name: "perl-Module::Build", Description: "build and install Perl modules", Website: "https://metacpan.org/release/Module-Build", + + Dependencies: P{ + Perl, + }, } } @@ -267,6 +271,10 @@ func init() { Name: "perl-Text::WrapI18N", Description: "line wrapping module", Website: "https://metacpan.org/release/Text-WrapI18N", + + Dependencies: P{ + PerlTextCharWidth, + }, } } @@ -313,6 +321,10 @@ func init() { Name: "perl-Unicode::GCString", Description: "String as Sequence of UAX #29 Grapheme Clusters", Website: "https://metacpan.org/release/Unicode-LineBreak", + + Dependencies: P{ + PerlMIMECharset, + }, } } |
