aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/libxslt.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-03-01 23:54:40 +0900
committerOphestra <cat@gensokyo.uk>2026-03-02 01:24:50 +0900
commitcc60e0d15d79916a69c8a1caeb3c4611351bb6c4 (patch)
tree67f4f59ed7ba7b18af51338e56ffa8d9acf52da6 /internal/rosa/libxslt.go
parent9deaf853f0676ee4475468bffd35aae7e1160a74 (diff)
internal/rosa/make: migrate to helper interface
This also updates all affected artifacts to use new behaviour. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/libxslt.go')
-rw-r--r--internal/rosa/libxslt.go21
1 files changed, 8 insertions, 13 deletions
diff --git a/internal/rosa/libxslt.go b/internal/rosa/libxslt.go
index db1fc41c..0162e439 100644
--- a/internal/rosa/libxslt.go
+++ b/internal/rosa/libxslt.go
@@ -11,27 +11,22 @@ func (t Toolchain) newLibxslt() pkg.Artifact {
version = "1.1.45"
checksum = "vw72UbREQnA3YDYuZ9-93hDr9BYCaKV6oh_U4Kt4n1Js_na4E-nFj-ksZnZ0kvEK"
)
- return t.NewViaMake("libxslt", version, pkg.NewHTTPGet(
+ return t.NewPackage("libxslt", version, pkg.NewHTTPGet(
nil, "https://download.gnome.org/sources/libxslt/"+
strings.Join(strings.Split(version, ".")[:2], ".")+
"/libxslt-"+version+".tar.xz",
mustDecode(checksum),
- ), &MakeAttr{
- ScriptEarly: `
-cd /usr/src/
-tar xf libxslt.tar.xz
-mv libxslt-` + version + ` libxslt
-`,
- SourceSuffix: ".tar.xz",
-
+ ), &PackageAttr{
+ SourceKind: sourceTarXZ,
+ }, &MakeHelper{
// python libxml2 cyclic dependency
SkipCheck: true,
},
- t.Load(XZ),
- t.Load(Python),
- t.Load(PkgConfig),
+ XZ,
+ Python,
+ PkgConfig,
- t.Load(Libxml2),
+ Libxml2,
)
}
func init() { artifactsF[Libxslt] = Toolchain.newLibxslt }