diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-19 02:49:11 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-19 02:49:11 +0900 |
| commit | a7877844bf93d9e15cc4f90e99d6e283d59b74ab (patch) | |
| tree | 4b76e3164bba9bd907dbee848632f1e74d042ffb /internal/rosa/package | |
| parent | 1ed027846de4b8b29944ee5412fc364d2574112b (diff) | |
internal/rosa/package: migrate perl interpreter
Packages will be migrated separtely.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package')
| -rw-r--r-- | internal/rosa/package/perl.az | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/internal/rosa/package/perl.az b/internal/rosa/package/perl.az new file mode 100644 index 00000000..3554fa84 --- /dev/null +++ b/internal/rosa/package/perl.az @@ -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`; + }; +} |
