mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-24 20:16:32 +01:00
Add perl 5.8.9
This commit is contained in:
parent
0c763cdfc3
commit
1fbc21935f
4 changed files with 129 additions and 0 deletions
86
steps/perl-5.8.9/pass1.sh
Executable file
86
steps/perl-5.8.9/pass1.sh
Executable file
|
|
@ -0,0 +1,86 @@
|
|||
# SPDX-FileCopyrightText: 2025 fosslinux <fosslinux@aussies.space>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# no idea why this is needed
|
||||
sed -i "s/Sigjmp_buf/sigjmp_buf/" cop.h
|
||||
|
||||
# Remove miscellaneous pregenerated files
|
||||
rm Porting/Glossary lib/unicore/mktables.lst \
|
||||
ext/Sys/Syslog/win32/Win32.pm ext/Win32API/File/cFile.pc \
|
||||
ext/Devel/PPPort/parts/apidoc.fnc Configure config_h.SH \
|
||||
x2p/a2p.c
|
||||
# Generated tests
|
||||
rm ext/Devel/PPPort/t/*.t
|
||||
|
||||
# Remove jpl
|
||||
rm -r jpl
|
||||
|
||||
# Regenerate bison files
|
||||
sed -i '/yydestruct/d' perly.y
|
||||
rm -f perly.c perly.h
|
||||
bison -d perly.y
|
||||
ln -s perly.tab.h perly.h
|
||||
ln -s perly.tab.c perly.c
|
||||
|
||||
# toke.c Perl_keyword
|
||||
# bit before the generated bit
|
||||
sed '/The following code was generated/,$d' toke.c | head -n -1 > toke.c.new
|
||||
perl perl_keyword.pl >> toke.c.new
|
||||
# bit after the generated bit
|
||||
# sed with two -e does not appear to be working with our sed
|
||||
sed '1,/The following code was generated/d' toke.c | sed '1,/^}$/d' >> toke.c.new
|
||||
mv toke.c.new toke.c
|
||||
|
||||
# Regenerate other prebuilt header files
|
||||
# Taken from headers of regen scripts
|
||||
rm -f lib/warnings.pm warnings.h regnodes.h reentr.h reentr.c reentr.inc \
|
||||
overload.h overload.c opcode.h opnames.h pp_proto.h \
|
||||
pp.sym keywords.h embed.h embedvar.h global.sym perlapi.c perlapi.h \
|
||||
proto.h lib/overload/numbers.pm pod/perlintern.pod pod/perlapi.pod \
|
||||
pod/perlmodlib.pod perl/perltoc.pod ext/ByteLoader/byterun.{h,c} \
|
||||
ext/B/B/Asmdata.pm
|
||||
perl regen.pl
|
||||
|
||||
# regenerate configure
|
||||
ln -s ../metaconfig*/.package .
|
||||
ln -s ../metaconfig*/U .
|
||||
metaconfig -m
|
||||
|
||||
# Glossary
|
||||
pushd Porting
|
||||
ln -s /usr/lib/perl5/5.6.2/U .
|
||||
makegloss
|
||||
popd
|
||||
|
||||
bash ext/Devel/PPPort/devel/mkapidoc.sh . \
|
||||
ext/Devel/PPPort/parts/apidoc.fnc \
|
||||
ext/Devel/PPPort/parts/embed.fnc
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
rm MANIFEST # make Configure script happy
|
||||
./Configure -des \
|
||||
-Dprefix="${PREFIX}" \
|
||||
-Dcc=gcc \
|
||||
-Dyacc='bison -y' \
|
||||
-Dusedl=false \
|
||||
-Ddate=':' \
|
||||
-Dccflags="-U__DATE__ -U__TIME__" \
|
||||
-Darchname="i386-linux" \
|
||||
-Dmyhostname="(none)" \
|
||||
-Dmaildomain="(none)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# Remove messed up manpages
|
||||
rm "${DESTDIR}/"*.0
|
||||
|
||||
# There are strange permissions on installed files.
|
||||
find "${DESTDIR}${PREFIX}/lib" -type f -exec chmod 644 {} \;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue