2022-04-13 00:08:29 +01:00
|
|
|
# SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
|
2022-03-07 07:58:20 +00:00
|
|
|
# SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
|
2021-04-28 07:23:34 +01:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2022-04-13 00:08:29 +01:00
|
|
|
EXTRA_SRCS="perl-5f2dc80.tar.bz2"
|
|
|
|
|
2021-04-28 07:23:34 +01:00
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
|
|
|
|
# Regenerate bison files
|
|
|
|
# perly.c looks suspiciously like it is from bison, but is not; from the
|
|
|
|
# below script:
|
|
|
|
# Note that perly.c is *not* regenerated - this is now a static file which
|
|
|
|
# is not dependent on perly.y any more.
|
|
|
|
perl regen_perly.pl
|
|
|
|
|
|
|
|
# Regenerate other prebuilt header files
|
|
|
|
# Taken from headers of regen scripts
|
2022-01-04 22:16:58 +00:00
|
|
|
rm -f embed.h embedvar.h perlapi.c perlapi.h proto.h mg_names.inc mg_raw.h \
|
|
|
|
mg_vtable.h opcode.h opnames.h pp_proto.h \
|
|
|
|
lib/B/Op_private.pm overload.h overload.inc lib/overload/numbers.pm \
|
|
|
|
reentr.h reentr.c regnodes.h lib/warnings.pm \
|
|
|
|
warnings.h lib/feature.pm feature.h
|
2021-04-28 07:23:34 +01:00
|
|
|
perl regen.pl
|
|
|
|
|
|
|
|
# Regenerate configure + config_h.SH
|
2022-01-04 22:16:58 +00:00
|
|
|
rm -f Configure config_h.SH
|
2021-04-28 07:23:34 +01:00
|
|
|
ln -s ../perl-5f2dc80/regen-configure/.package .
|
|
|
|
ln -s ../perl-5f2dc80/regen-configure/U .
|
|
|
|
metaconfig -m
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
./Configure -des \
|
|
|
|
-Dprefix="${PREFIX}" \
|
|
|
|
-Dcc=gcc \
|
|
|
|
-Dusedl=false \
|
|
|
|
-Ddate=':' \
|
|
|
|
-Dccflags="-U__DATE__ -U__TIME__" \
|
2022-03-07 07:58:20 +00:00
|
|
|
-Darchname="i386-linux" \
|
|
|
|
-Dmyhostname="(none)" \
|
|
|
|
-Dmaildomain="(none)"
|
2021-04-28 07:23:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
# Remove old perl
|
|
|
|
rm -rf "${PREFIX}"/lib/perl5/
|
|
|
|
|
|
|
|
default
|
2022-02-10 10:55:06 +00:00
|
|
|
|
|
|
|
# Remove messed up manpages
|
2022-04-07 00:09:45 +01:00
|
|
|
rm "${DESTDIR}/"*.0
|
|
|
|
rm "${DESTDIR}${PREFIX}/lib/perl5/5.32.1/pod/perldebguts.pod"
|
2021-04-28 07:23:34 +01:00
|
|
|
}
|