This patchset contains multiple changes to xbps-src and its required package "base-chroot" for building packages via chroot. - moved xbps.d(5) conf files to `etc/xbps.d`. - renamed xbps.d(5) repository files to `etc/xbps.d/repos-{local,remote}*`. - do not set `--repository` to any xbps command that supports it, xbps-src now simply populates `rootdir/etc/xbps.d` with correct settings (taking care of CHROOT_READY/IN_CHROOT). - Unless `-C` is set (to preserve builddir/destdir/autodeps), when entering to the chroot (if CHROOT_READY is set), xbps-src will clean up the masterdir and then perform a system update to always use a constant set of packages for that exact date. - Improved some normal/error msgs. - Includes support for `xbps>=0.58`. - common/hooks: switch to bsdtar. - base-chroot: - base-chroot-musl is gone, now unified for glibc/musl. - deps removed: gettext, mpfr, readline, texinfo, which, xz. - deps changed: tar -> bsdtar. Effectively this reduces dependencies in `base-chroot`, makes it unified for musl and glibc, switches xbps-src to use `bsdtar` rather than GNU `tar` and `xz`, gets rid of useless host dependencies like GNU gettext, texinfo, etc. I've been testing these changes for 1 month or so already, I was able to build from scratch `base-system` for both native and multiple targets, i.e `./xbps-src -a target -Nt pkg base-system`
65 lines
1.7 KiB
Bash
65 lines
1.7 KiB
Bash
# Template file for 'gettext'
|
|
pkgname=gettext
|
|
version=0.20.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-java --disable-native-java --disable-csharp
|
|
--disable-libasprintf --enable-threads=posix --disable-rpath --without-emacs
|
|
--disable-acl --with-included-glib --with-included-libcroco --without-git
|
|
--with-included-libxml --with-included-libunistring --disable-openmp
|
|
--disable-curses --without-examples --enable-nls
|
|
gl_cv_func_gettimeofday_clobber=no"
|
|
short_desc="Internationalized Message Handling Library and tools"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://www.gnu.org/software/gettext/"
|
|
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=66415634c6e8c3fa8b71362879ec7575e27da43da562c798a8a2f223e6e47f5c
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
# force libintl
|
|
*-musl) configure_args+=" --with-included-gettext";;
|
|
esac
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends="automake libtool"
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
fi
|
|
|
|
|
|
post_install() {
|
|
# Fix conflict with musl.
|
|
if [ -e ${DESTDIR}/usr/include/libintl.h ]; then
|
|
vmkdir usr/include/gettext
|
|
mv ${DESTDIR}/usr/include/libintl.h ${DESTDIR}/usr/include/gettext/libintl.h
|
|
fi
|
|
}
|
|
|
|
gettext-devel-examples_package() {
|
|
archs=noarch
|
|
short_desc+=" - examples for development"
|
|
pkg_install() {
|
|
vmove usr/share/doc/gettext
|
|
}
|
|
}
|
|
gettext-devel_package() {
|
|
depends="gettext-libs>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/share/aclocal
|
|
vmove usr/share/gettext
|
|
vmove usr/share/man/man3
|
|
vmove usr/bin/autopoint
|
|
vmove usr/bin/gettextize
|
|
}
|
|
}
|
|
gettext-libs_package() {
|
|
short_desc+=" - shared libraries"
|
|
pkg_install() {
|
|
vmove usr/lib/*.so*
|
|
}
|
|
}
|