Files
hakurei/internal/rosa/package/perl.az
Ophestra a7877844bf internal/rosa/package: migrate perl interpreter
Packages will be migrated separtely.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-05-19 02:49:11 +09:00

48 lines
1.1 KiB
Plaintext

package perl {
description = "The Perl Programming language";
website = "https://www.perl.org";
anitya = 13599;
// odd-even versioning
anityaFallback = true;
version* = "5.42.2";
source = remoteTar {
url = "https://www.cpan.org/src/5.0/perl-"+version+".tar.gz";
checksum = "Me_xFfgkRnVyG0sE6a74TktK2OUq9Z1LVJNEu_9RdZG3S2fbjfzNiuk2SJqHAgbm";
compress = gzip;
};
// uses source tree as scratch space
writable = true;
chmod = true;
early = `
echo 'print STDOUT "1..0 # Skip broken test\n";' > ext/Pod-Html/t/htmldir3.t
chmod +w /system/bin && rm -f /system/bin/ps # perl does not like toybox ps
`;
toyboxEarly = true;
exec = make {
omitDefaults = true;
inPlace = true;
configureName = "./Configure";
configure = {
"-des";
"Dprefix": "/system";
"Dcc": "clang";
"Dcflags": "--std=gnu99";
"Dldflags": `"${LDFLAGS:-''}"`;
"Doptimize": "'-O2 -fno-strict-aliasing'";
"Duseithreads";
"Duseshrplib";
};
check = [
"TEST_JOBS=" + jobsLE,
"test_harness",
];
install = `LD_LIBRARY_PATH="$PWD" ./perl -Ilib -I. installperl --destdir=/work`;
};
}