2022-08-02 04:08:18 +03:00
|
|
|
distributable:
|
|
|
|
url: https://www.cpan.org/src/{{ version.major }}.0/perl-{{ version }}.tar.xz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: perl/perl5/tags
|
|
|
|
ignore: /^v\d+\.\d*[13579]\.\d+$/
|
|
|
|
# ^^ perl considers odd minor versions “dev” releases
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
tea.xyz/gx/make: '*'
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
script: |
|
|
|
|
./Configure $ARGS
|
|
|
|
make --jobs {{ hw.concurrency }} install
|
2022-09-09 16:37:26 +03:00
|
|
|
|
|
|
|
cd "{{prefix}}"/bin
|
|
|
|
for x in *; do
|
|
|
|
case $x in
|
|
|
|
perl|perl{{version}})
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
sed -i.bak 's|^#!{{prefix}}/bin/|#!/usr/bin/env |' $x
|
|
|
|
sed -i.bak 's|exec {{prefix}}/bin/|exec |' $x
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2022-09-16 21:39:00 +03:00
|
|
|
rm -f *.bak
|
2022-09-09 16:37:26 +03:00
|
|
|
|
|
|
|
# relocatable fixes from: https://github.com/skaji/relocatable-perl
|
|
|
|
|
2022-08-02 04:08:18 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- -d # use defaults
|
|
|
|
- -e # non interactive
|
|
|
|
- -Dprefix={{prefix}}
|
|
|
|
- -Duselargefiles
|
|
|
|
- -Dusethreads
|
2022-09-09 16:37:26 +03:00
|
|
|
- -Duseshrplib=false
|
|
|
|
# makes perl “more” relocatable
|
|
|
|
- -Duserelocatableinc
|
2022-08-02 04:08:18 +03:00
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
perl $FIXTURE
|
2022-09-09 16:37:26 +03:00
|
|
|
shasum --version
|
2022-08-02 04:08:18 +03:00
|
|
|
fixture: |
|
|
|
|
print 'Perl is not an acronym, but JAPH is a Perl acronym!'
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/corelist
|
|
|
|
- bin/cpan
|
|
|
|
- bin/enc2xs
|
|
|
|
- bin/encguess
|
|
|
|
- bin/h2ph
|
|
|
|
- bin/h2xs
|
|
|
|
- bin/instmodsh
|
|
|
|
- bin/json_pp
|
|
|
|
- bin/libnetcfg
|
|
|
|
- bin/perl
|
|
|
|
- bin/perlbug
|
|
|
|
- bin/perldoc
|
|
|
|
- bin/perlivp
|
|
|
|
- bin/perlthanks
|
|
|
|
- bin/piconv
|
|
|
|
- bin/pl2pm
|
|
|
|
- bin/pod2html
|
|
|
|
- bin/pod2man
|
|
|
|
- bin/pod2text
|
|
|
|
- bin/pod2usage
|
|
|
|
- bin/podchecker
|
|
|
|
- bin/prove
|
|
|
|
- bin/ptar
|
|
|
|
- bin/ptardiff
|
|
|
|
- bin/ptargrep
|
|
|
|
- bin/shasum
|
|
|
|
- bin/splain
|
|
|
|
- bin/streamzip
|
|
|
|
- bin/xsubpp
|
|
|
|
- bin/zipdetails
|
2022-11-25 19:03:11 +03:00
|
|
|
|
|
|
|
interprets:
|
|
|
|
extensions: pl
|
|
|
|
args: perl
|