forked from rosa/hakurei
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>
This commit is contained in:
@@ -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"},
|
||||
|
||||
Reference in New Issue
Block a user