aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/perl.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-03-26 16:20:16 +0900
committerOphestra <cat@gensokyo.uk>2026-03-26 16:23:15 +0900
commit2548a681e9a1e28c52805397edeccf719ec8ab45 (patch)
tree06202347c5762d8c1e05e4cc668829e633411d2c /internal/rosa/perl.go
parentd514d0679fcd947cd10f7ba9d0418855515c19d5 (diff)
internal/rosa: key-value type
This type is used very frequently. The new type is much easier to type and can receive helper methods eventually if needed. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/perl.go')
-rw-r--r--internal/rosa/perl.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/rosa/perl.go b/internal/rosa/perl.go
index f5aaceba..e26b9c21 100644
--- a/internal/rosa/perl.go
+++ b/internal/rosa/perl.go
@@ -31,7 +31,7 @@ rm -f /system/bin/ps # perl does not like toybox ps
InPlace: true,
ConfigureName: "./Configure",
- Configure: [][2]string{
+ Configure: []KV{
{"-des"},
{"Dprefix", "/system"},
{"Dcc", "clang"},
@@ -67,7 +67,7 @@ func init() {
func (t Toolchain) newViaPerlModuleBuild(
name, version string,
source pkg.Artifact,
- patches [][2]string,
+ patches []KV,
extra ...PArtifact,
) pkg.Artifact {
if name == "" || version == "" {
@@ -116,7 +116,7 @@ func init() {
func (t Toolchain) newViaPerlMakeMaker(
name, version string,
source pkg.Artifact,
- patches [][2]string,
+ patches []KV,
extra ...PArtifact,
) pkg.Artifact {
return t.NewPackage("perl-"+name, version, source, &PackageAttr{
@@ -131,7 +131,7 @@ func (t Toolchain) newViaPerlMakeMaker(
InPlace: true,
ConfigureName: "perl Makefile.PL",
- Configure: [][2]string{
+ Configure: []KV{
{"PREFIX", "/system"},
},
Check: []string{"test"},