mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-22 19:16:32 +01:00
Add Perl 5.6.2.
This commit is contained in:
parent
f4e0999889
commit
5626e0e976
8 changed files with 201 additions and 1 deletions
33
sysa/perl-5.6.2/perl-5.6.2.sh
Executable file
33
sysa/perl-5.6.2/perl-5.6.2.sh
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
src_prepare() {
|
||||
default_src_prepare
|
||||
|
||||
# Regenerate bison files
|
||||
sed -i '/yydestruct/d' perly.y
|
||||
rm perly.c perly.h
|
||||
bison -d perly.y
|
||||
mv perly.tab.c perly.c
|
||||
mv perly.tab.h perly.h
|
||||
|
||||
# Regenerate other prebuilt header files
|
||||
for file in embed keywords opcode; do
|
||||
rm ${file}.h
|
||||
perl ${file}.pl
|
||||
done
|
||||
rm regnodes.h
|
||||
perl regcomp.pl
|
||||
rm ext/ByteLoader/byterun.h ext/ByteLoader/byterun.c
|
||||
perl bytecode.pl
|
||||
rm warnings.h lib/warnings.pm
|
||||
perl warnings.pl
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Remove old perl
|
||||
rm -rf "${PREFIX}"/lib/perl5/
|
||||
|
||||
default_src_install
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue