void-packages/srcpkgs/m4/template

36 lines
1.0 KiB
Bash

# Template file for 'm4'
pkgname=m4
version=1.4.18
revision=2
patch_args="-Np1"
bootstrap=yes
replaces="chroot-m4>=0"
build_style=gnu-configure
configure_args="--enable-changeword --enable-threads"
short_desc="GNU version of UNIX m4 macro language processor"
homepage="https://www.gnu.org/software/m4/"
license="GPL-3.0-or-later"
maintainer="Enno Boland <gottox@voidlinux.org>"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=f2c1e86ca0a404ff281631bdc8377638992744b175afb806e25871a24a934e07
if [ -z "$CHROOT_READY" ]; then
# Disable makeinfo unconditionally
# texinfo is defaulted to utf-8 now and the file is in iso-8859-1
# Don't sed the file, otherwise, it'll try to rebuild
export MAKEINFO=:
fi
pre_check() {
case "$XBPS_TARGET_MACHINE" in
*-musl* )
# Disable locale tests that fail on musl
sed -i '/test-localename$(EXEEXT)/d' tests/Makefile
sed -i '/test-mbrtowc5.sh/d' tests/Makefile
# Fails because test-localename doesn't work on musl
sed -i '/test-localeconv$(EXEEXT)/d' tests/Makefile
;;
esac
}