wok-next diff gettext/receipt @ rev 20095
Update/add packages needed for building MATE desktop:
Add: gnome-keyring3, gtkmm3, libappindicator-gtk[23], libfakekey, libgnome-keyring3, libindicator-gtk[23], libpeas.
Update: atkmm, cairomm, gcr, glibmm, gssdp, gupnp, icon-naming-utils, libcap-ng, libspectre, libwnck3, libxklavier, pangomm, perl-xml-sax.
Add: gnome-keyring3, gtkmm3, libappindicator-gtk[23], libfakekey, libgnome-keyring3, libindicator-gtk[23], libpeas.
Update: atkmm, cairomm, gcr, glibmm, gssdp, gupnp, icon-naming-utils, libcap-ng, libspectre, libwnck3, libxklavier, pangomm, perl-xml-sax.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Oct 28 16:45:22 2017 +0300 (2017-10-28) |
parents | 18c4d15a72df |
children | c3d04e304a7a |
line diff
1.1 --- a/gettext/receipt Fri Jan 27 15:35:03 2017 +0200 1.2 +++ b/gettext/receipt Sat Oct 28 16:45:22 2017 +0300 1.3 @@ -1,9 +1,9 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="gettext" 1.8 VERSION="0.19.8.1" 1.9 CATEGORY="development" 1.10 -SHORT_DESC="Utilities for the GNU Translation Project." 1.11 +SHORT_DESC="Utilities for the GNU Translation Project" 1.12 MAINTAINER="pankso@slitaz.org" 1.13 LICENSE="GPL3" 1.14 WEB_SITE="https://www.gnu.org/software/gettext/" 1.15 @@ -12,16 +12,13 @@ 1.16 TARBALL="$PACKAGE-$VERSION.tar.xz" 1.17 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" 1.18 1.19 -# Runtime depends, then dev-depends 1.20 -DEPENDS="gettext-base gettext-tools libcroco liblzma libxml2 \ 1.21 -acl-dev attr-dev libcroco-dev libxml2-dev glib-dev pcre-dev m4" 1.22 BUILD_DEPENDS="libcroco-dev libxml2-dev glib-dev acl-dev" 1.23 +BUILD_DEPENDS_arm="attr-dev ncurses-dev libxml2-tools libxml2-dev" 1.24 SPLIT="gettext-base gettext-tools" 1.25 1.26 # Handle cross compilation. Glibc-locale are installed in cross chroot. 1.27 case "$ARCH" in 1.28 - arm) BUILD_DEPENDS="attr-dev ncurses-dev libxml2-tools libxml2-dev" 1.29 - ARCH_ARGS="--disable-acl" ;; 1.30 + arm) ARCH_ARGS="--disable-acl" ;; 1.31 esac 1.32 1.33 # Rules to configure and make the package. 1.34 @@ -29,22 +26,44 @@ 1.35 { 1.36 ./configure $CONFIGURE_ARGS $ARCH_ARGS && 1.37 make && make install 1.38 + 1.39 + # stripped gettext.sh 1.40 + rm $install/usr/bin/gettext.sh 1.41 + install -m755 $stuff/gettext.sh $install/usr/bin 1.42 +} 1.43 + 1.44 +# Just to be sure when cross compiling, gettext is part of base system. 1.45 +testsuite() 1.46 +{ 1.47 + readelf -h $install/usr/bin/gettext 1.48 } 1.49 1.50 # Rules to gen a SliTaz package suitable for Tazpkg. 1.51 genpkg_rules() 1.52 { 1.53 - mkdir -p $fs/usr/share 1.54 - cp -a $install/usr/bin $fs/usr 1.55 - cp -a $install/usr/lib $fs/usr 1.56 - cp -a $install/usr/include $fs/usr 1.57 - cp -a $install/usr/share/aclocal $fs/usr/share 1.58 - cp -a $install/usr/share/gettext $fs/usr/share 1.59 - 1.60 - # Remove "gettext-base" and "gettext-tools" files. 1.61 - for bin in gettext gettext.sh envsubst ngettext msgcat msgfmt msgmerge xgettext; do 1.62 - rm $fs/usr/bin/$bin 1.63 - done 1.64 - rm $fs/usr/lib/libgettextlib*.so* 1.65 - rm $fs/usr/lib/libgettextsrc*.so* 1.66 + case $PACKAGE in 1.67 + gettext) 1.68 + copy @std @dev 1.69 + # Remove "gettext-base" and "gettext-tools" files. 1.70 + for i in gettext gettext.sh envsubst ngettext \ 1.71 + msgcat msgfmt msgmerge xgettext \ 1.72 + libgettextlib*.so* libgettextsrc*.so*; do 1.73 + find $fs -name "$i" -delete 1.74 + done 1.75 + # Runtime depends, then dev-depends 1.76 + DEPENDS="gettext-base gettext-tools libcroco liblzma libxml2 \ 1.77 + acl-dev attr-dev libcroco-dev libxml2-dev glib-dev pcre-dev m4" 1.78 + ;; 1.79 + gettext-base) 1.80 + copy gettext gettext.sh envsubst ngettext 1.81 + CAT="base-system|base tools" 1.82 + DEPENDS="glibc-base" 1.83 + ;; 1.84 + gettext-tools) 1.85 + copy msgcat msgfmt msgmerge xgettext \ 1.86 + libgettextlib*.so* libgettextsrc*.so* 1.87 + CAT="libs|tools" 1.88 + DEPENDS="acl attr glib libcroco libgomp liblzma libxml2 pcre zlib" 1.89 + ;; 1.90 + esac 1.91 }