forked from rosa/hakurei
internal/rosa/package: migrate perl interpreter
Packages will be migrated separtely. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
47
internal/rosa/package/perl.az
Normal file
47
internal/rosa/package/perl.az
Normal file
@@ -0,0 +1,47 @@
|
||||
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`;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user