internal/rosa: remove unused helpers

These are no longer needed after migration.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-23 13:55:17 +09:00
parent 410c4f8bb0
commit e5a4094298
8 changed files with 12 additions and 65 deletions

View File

@@ -1,14 +1,8 @@
package rosa
import (
"slices"
"hakurei.app/internal/pkg"
)
var _perl = H("perl")
// MakeMakerHelper is the [Perl] MakeMaker helper.
// MakeMakerHelper builds projects using the included MakeMaker script.
type MakeMakerHelper struct {
// Whether to skip the check target.
SkipCheck bool
@@ -49,17 +43,3 @@ make \
script += "make DESTDIR=/work install\n"
return script
}
// newViaPerlMakeMaker installs a perl module via Makefile.PL.
func (t Toolchain) newViaPerlMakeMaker(
name, version string,
source pkg.Artifact,
patches []KV,
extra ...ArtifactH,
) pkg.Artifact {
return t.NewPackage("perl-"+name, version, source, &PackageAttr{
Patches: patches,
}, (*MakeMakerHelper)(nil), slices.Concat(extra, P{
_perl,
})...)
}