Update gperf

This commit is contained in:
Samuel Tyler 2026-01-01 17:01:53 +11:00
parent 59e5a4341a
commit e4689a9467
No known key found for this signature in database
GPG key ID: EB5091A5C77E8DC4
7 changed files with 35 additions and 13 deletions

29
steps/gperf-3.3/pass1.sh Executable file
View file

@ -0,0 +1,29 @@
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default
rm doc/gperf.{1,dvi,info,pdf,ps} doc/*.html
touch doc/gperf.info doc/gperf.pdf
# Useless tests things
rm tests/*.exp tests/{languages,charsets}.gperf tests/lang-ucs2.in
GNULIB_SRCDIR=$(realpath ../gnulib-b08ee1d) \
AUTOCONF=autoconf-2.71 \
./autogen.sh
}
src_configure() {
./configure --prefix="${PREFIX}"
}
src_compile() {
make "${MAKEJOBS}" MAKEINFO=true PREFIX="${PREFIX}"
}
src_install() {
make MAKEINFO=true PREFIX="${PREFIX}" DESTDIR="${DESTDIR}" install
}

View file

@ -0,0 +1,19 @@
SPDX-FileCopyrightText: 2026 Samuel Tyler <samuel@samuelt.me>
SPDX-License-Identifier: GPL-3.0-or-later
Make output of the vendored texi2html reproducible.
--- gperf-3.3/doc/texi2html 2026-01-15 21:18:39.886947132 +1100
+++ gperf-3.3/doc/texi2html 2026-01-15 21:22:28.937926499 +1100
@@ -1842,7 +1842,9 @@
@MoY = ('January', 'February', 'March', 'April', 'May', 'June',
'July', 'August', 'September', 'October', 'November', 'December');
- ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime(time);
+ ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = defined($ENV{SOURCE_DATE_EPOCH}) ?
+ gmtime($ENV{SOURCE_DATE_EPOCH}) :
+ localtime(time);
$year += ($year < 70) ? 2000 : 1900;
return("$mday $MoY[$mon] $year");
}

2
steps/gperf-3.3/sources Normal file
View file

@ -0,0 +1,2 @@
f https://mirrors.kernel.org/gnu/gperf/gperf-3.3.tar.gz fd87e0aba7e43ae054837afd6cd4db03a3f2693deb3619085e6ed9d8d9604ad8
g https://https.git.savannah.gnu.org/git/gnulib.git~b08ee1d _ b2f5ee417643f729b6c679fbc0c3cd5e448fa17d2b0a9fd612a8e203573a8757 gnulib-b08ee1d.tar.gz