mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-06 06:02:14 +01:00
86 lines
3.2 KiB
Plaintext
86 lines
3.2 KiB
Plaintext
# Contributor: Valery Kartel <valery.kartel@gmail.com>
|
|
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
|
|
pkgname=gettext
|
|
pkgver=0.19.8.1
|
|
pkgrel=4
|
|
pkgdesc="GNU locale utilities"
|
|
url="https://www.gnu.org/software/gettext/gettext.html"
|
|
arch="all"
|
|
license="GPL-3.0+ AND LGPL-2.1+ AND MIT"
|
|
depends=
|
|
# do _not_ add the optional dependencies on libcroco or glib
|
|
# they depend on gettext and would introduce cyclic dependencies
|
|
makedepends="perl ncurses-dev libxml2-dev libunistring-dev"
|
|
checkdepends="coreutils"
|
|
source="https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz
|
|
disable-gettext-runtime-test-lock.patch
|
|
fix-abi.patch
|
|
localename-fix.patch
|
|
skip-tests-musl.patch
|
|
skip-tests-alpine.patch
|
|
unbundle-libunistring.patch
|
|
fix-crash-of-xgettext-with--its-option.patch
|
|
"
|
|
subpackages="$pkgname-dbg $pkgname-doc $pkgname-static $pkgname-dev $pkgname-lang libintl $pkgname-asprintf $pkgname-libs"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
# make sure we dont bundle libunistring bits
|
|
rm -r gettext-tools/gnulib-lib/unilbrk \
|
|
gettext-tools/libgettextpo/unilbrk
|
|
|
|
# force using system posix complaint printf
|
|
# the test is broken and fails with ash
|
|
gt_cv_func_printf_posix=yes \
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--enable-threads=posix \
|
|
--disable-java \
|
|
--enable-static
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
# test-verify fails if run in parallel
|
|
make -j1 check
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make -j1 DESTDIR="$pkgdir" install
|
|
rm "$pkgdir"/usr/lib/charset.alias
|
|
}
|
|
|
|
static() {
|
|
pkgdesc="libintl static libraries"
|
|
mkdir -p "$subpkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/
|
|
}
|
|
|
|
libintl() {
|
|
pkgdesc="GNU gettext runtime library"
|
|
license="LGPL-2.1+"
|
|
mkdir -p "$subpkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/lib/libintl.so.* "$subpkgdir"/usr/lib
|
|
chmod +x "$subpkgdir"/usr/lib/libintl.so.*
|
|
}
|
|
|
|
asprintf() {
|
|
pkgdesc="GNU gettext asprintf library"
|
|
license="LGPL-2.1+"
|
|
mkdir -p "$subpkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/lib/libasprintf.so.* "$subpkgdir"/usr/lib
|
|
}
|
|
|
|
sha512sums="3553227b62f2a7d9b67c881ef889c030a6a21d5ecd210c4bf3d649df0b37193a99a68cf8fd5f2c69b6a87e847035dd9576f9bcb9363422866e26b04f4f6dd431 gettext-0.19.8.1.tar.xz
|
|
eb505507f7cc1114edb29267b864e2dd28683cdcd08da0195181ee7641e7ca197362c7e7b3df5f9ab4291a07de88410ed1e0d976f11e57c2f3740a00b91ce888 disable-gettext-runtime-test-lock.patch
|
|
f517a351864bb194117e7147015db9a9b0ffbb1feb22ecf39bc1c99ad904420467e267a893c3b1a76c1adb810d1b37b1c2c1273cda861ff1d260102701bc644a fix-abi.patch
|
|
2765f8d9d72d85ad0adb87ee0edd83d3aec59995ef21a3c8bbd1ac20a3680058a2122bd3f6c37be3f50cb5ea00c19b3ad569a47ceedc8ae2cb4a6e8d4e30976d localename-fix.patch
|
|
8fced6ec5c1f54686545aa91759f8501a0ccfa4bb66a781d282e65f7309c70ab74bf753f4969374facb135b7b9341e26d8a3e27679ea09cb1543b82dfb8a16dd skip-tests-musl.patch
|
|
4171b52abb9a34cc30ad9d737a6d4fc94d7365781f13522eef9111e2fc34f08f3206508471b2c2ab70ae95ecb110bc569535ca949bded3e8896c83e9d752d06e skip-tests-alpine.patch
|
|
86dcba9b53048b01c8912bdcfc7e9372a37f196352ef366d5192af204cb1bad95c31803991e0a408ab16b0c7094846df5ef95243bb09894e3dc9b3c4e5daaa43 unbundle-libunistring.patch
|
|
3ad909028d887429248b79ef3f2289d8934a5dd9337e51abbf05cece2fed3e2b12d228a587ebcbd0e775380b86825a6f796d2d0392b24384f5f8d298f78965ea fix-crash-of-xgettext-with--its-option.patch"
|