wok-next view gettext/receipt @ rev 20436

Update packages listed in the LFS book.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 21 19:48:17 2018 +0200 (2018-02-21)
parents c3d04e304a7a
children 4396aed7eb01
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gettext"
4 VERSION="0.19.8.1"
5 CATEGORY="development"
6 SHORT_DESC="Utilities for the GNU Translation Project"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/gettext/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gettext.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS_arm="attr-dev ncurses-dev libxml2-tools libxml2-dev"
16 BUILD_DEPENDS="libcroco-dev libxml2-dev glib-dev acl-dev"
17 SPLIT="gettext-base gettext-tools gettext"
19 compile_rules() {
20 case "$ARCH" in
21 arm) ARCH_ARGS="--disable-acl";;
22 esac
24 fix ld
25 ./configure $CONFIGURE_ARGS $ARCH_ARGS && make && make install || return 1
27 chmod 0755 $install/usr/lib/preloadable_libintl.so
29 # stripped gettext.sh
30 rm $install/usr/bin/gettext.sh
31 install -m755 $stuff/gettext.sh $install/usr/bin
32 }
34 # Just to be sure when cross compiling, gettext is part of base system.
35 testsuite() {
36 readelf -h $install/usr/bin/gettext
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 gettext-base)
42 copy gettext gettext.sh envsubst ngettext
43 CAT="base-system|base tools"
44 DEPENDS="glibc-base"
45 ;;
46 gettext-tools)
47 copy msgcat msgfmt msgmerge xgettext \
48 libgettextlib*.so* libgettextsrc*.so*
49 CAT="libs|tools"
50 DEPENDS="acl attr glib libcroco libgomp liblzma libxml2 ncurses \
51 pcre zlib"
52 ;;
53 gettext)
54 copy @std @dev @rm
55 rm -rf $fs/usr/share/doc/ # @dev files here
56 # Runtime depends, then dev-depends
57 DEPENDS="gettext-base gettext-tools libcroco liblzma libxml2 \
58 acl-dev attr-dev libcroco-dev libxml2-dev glib-dev pcre-dev m4"
59 TAGS="LFS"
60 ;;
61 esac
62 }