Perl 5.005_03

This commit is contained in:
Andrius Štikonas 2021-02-18 23:19:09 +00:00
parent 7e9054570e
commit 4276dfee1d
11 changed files with 160 additions and 5 deletions

View file

@ -0,0 +1,30 @@
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
# Regenerate bison files
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 byterun.h byterun.c
perl bytecode.pl
}
src_install() {
default_src_install
# Remove old perl
rm -rf "${PREFIX}"/lib/perl5/5.004_05
}