wok rev 23815

gettext: include its files from /usr/share/gettext-0.19.8
author Hans-G?nter Theisgen
date Tue May 26 14:40:58 2020 +0100 (2020-05-26)
parents b454de65b47b
children 17abf532f3a7
files gettext/receipt
line diff
     1.1 --- a/gettext/receipt	Tue May 26 14:12:52 2020 +0100
     1.2 +++ b/gettext/receipt	Tue May 26 14:40:58 2020 +0100
     1.3 @@ -7,17 +7,17 @@
     1.4  MAINTAINER="pankso@slitaz.org"
     1.5  LICENSE="GPL3"
     1.6  WEB_SITE="https://www.gnu.org/software/gettext/"
     1.7 -HOST_ARCH="i486 arm"
     1.8  
     1.9  TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.10  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    1.11  
    1.12 -# Runtime depends, then dev-depends
    1.13 -DEPENDS="gettext-base gettext-tools libcroco liblzma libxml2 \
    1.14 -acl-dev attr-dev libcroco-dev libxml2-dev glib-dev pcre-dev m4"
    1.15 -BUILD_DEPENDS="libcroco-dev libxml2-dev glib-dev acl-dev"
    1.16 +DEPENDS="acl-dev attr-dev gettext-base gettext-tools glib-dev libcroco 
    1.17 +	libcroco-dev liblzma libxml2 libxml2-dev m4 pcre-dev"
    1.18 +BUILD_DEPENDS="acl-dev glib-dev libcroco-dev libxml2-dev"
    1.19  SPLIT="gettext-base gettext-tools"
    1.20  
    1.21 +HOST_ARCH="i486 arm"
    1.22 +
    1.23  # Handle cross compilation. Glibc-locale are installed in cross chroot.
    1.24  case "$ARCH" in
    1.25  	arm) BUILD_DEPENDS="attr-dev ncurses-dev libxml2-tools libxml2-dev"
    1.26 @@ -27,24 +27,30 @@
    1.27  # Rules to configure and make the package.
    1.28  compile_rules()
    1.29  {
    1.30 -	./configure $CONFIGURE_ARGS $ARCH_ARGS &&
    1.31 -	make && make install
    1.32 +	./configure		\
    1.33 +		$CONFIGURE_ARGS	\
    1.34 +		$ARCH_ARGS &&
    1.35 +	make &&
    1.36 +	make install
    1.37  }
    1.38  
    1.39  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.40  genpkg_rules()
    1.41  {
    1.42  	mkdir -p $fs/usr/share
    1.43 -	cp -a $install/usr/bin $fs/usr
    1.44 -	cp -a $install/usr/lib $fs/usr
    1.45 -	cp -a $install/usr/include $fs/usr
    1.46 -	cp -a $install/usr/share/aclocal $fs/usr/share
    1.47 -	cp -a $install/usr/share/gettext $fs/usr/share
    1.48 +
    1.49 +	cp -a $install/usr/bin			$fs/usr
    1.50 +	cp -a $install/usr/lib			$fs/usr
    1.51 +	cp -a $install/usr/include		$fs/usr
    1.52 +	cp -a $install/usr/share/aclocal	$fs/usr/share
    1.53 +	cp -a $install/usr/share/gettext	$fs/usr/share
    1.54 +	cp -a $install/usr/share/gettext.0.19.8	$fs/usr/share
    1.55  
    1.56  	# Remove "gettext-base" and "gettext-tools" files.
    1.57 -	for bin in gettext gettext.sh envsubst ngettext msgcat msgfmt msgmerge xgettext; do
    1.58 +	for bin in gettext gettext.sh envsubst ngettext msgcat msgfmt msgmerge xgettext
    1.59 +	  do
    1.60  		rm $fs/usr/bin/$bin
    1.61 -	done
    1.62 -	rm $fs/usr/lib/libgettextlib*.so*
    1.63 -	rm $fs/usr/lib/libgettextsrc*.so*
    1.64 +	  done
    1.65 +	rm					$fs/usr/lib/libgettextlib*.so*
    1.66 +	rm					$fs/usr/lib/libgettextsrc*.so*
    1.67  }