aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/perl.go
blob: 567560428b5a7207fb651566990e70ad319b45b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package rosa

import "hakurei.app/internal/pkg"

func (t Toolchain) newPerl() pkg.Artifact {
	const (
		version  = "5.42.0"
		checksum = "2KR7Jbpk-ZVn1a30LQRwbgUvg2AXlPQZfzrqCr31qD5-yEsTwVQ_W76eZH-EdxM9"
	)
	return t.New("perl-"+version, false, []pkg.Artifact{
		t.Load(Make),
	}, nil, nil, `
chmod -R +w /usr/src/perl && cd /usr/src/perl

echo 'print STDOUT "1..0 # Skip broken test\n";' > ext/Pod-Html/t/htmldir3.t

./Configure \
	-des \
	-Dprefix=/system \
	-Dcc="clang" \
	-Dcflags='--std=gnu99' \
	-Dldflags="${LDFLAGS}" \
	-Doptimize='-O2 -fno-strict-aliasing' \
	-Duseithreads
make \
	"-j$(nproc)" \
	TEST_JOBS=256 \
	test_harness
make DESTDIR=/work install
`, pkg.Path(AbsUsrSrc.Append("perl"), true, pkg.NewHTTPGetTar(
		nil,
		"https://www.cpan.org/src/5.0/perl-"+version+".tar.gz",
		mustDecode(checksum),
		pkg.TarGzip,
	)))
}
func init() { artifactsF[Perl] = Toolchain.newPerl }