wok annotate gettext/receipt @ rev 12147

gettext: update deps
author Christophe Lincoln <pankso@slitaz.org>
date Wed Mar 14 13:14:54 2012 +0100 (2012-03-14)
parents 9c5e2fdf739d
children fd8053e3df39
rev   line source
pankso@29 1 # SliTaz package receipt.
pankso@29 2
pankso@29 3 PACKAGE="gettext"
slaxemulator@6328 4 VERSION="0.18.1.1"
pankso@204 5 CATEGORY="development"
pankso@29 6 SHORT_DESC="Utilities for the GNU Translation Project."
pankso@29 7 MAINTAINER="pankso@slitaz.org"
pankso@29 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@29 9 WEB_SITE="http://www.gnu.org/software/gettext/"
pankso@29 10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@29 11
pankso@12147 12 DEPENDS="gettext-base libgomp ncurses gcc-lib-base glib libxml2"
pankso@12147 13 BUILD_DEPENDS="glibc-locale ncurses-dev glib-dev libxml2-dev"
pankso@12147 14
gokhlayeh@8184 15 # Rules to compile & install the temporary toolchain.
gokhlayeh@8184 16 cook_tmp_toolchain()
gokhlayeh@8184 17 {
gokhlayeh@8184 18 cd $src/gettext-tools
gokhlayeh@8184 19 ./configure --disable-shared &&
gokhlayeh@8184 20 make -C gnulib-lib &&
gokhlayeh@8184 21 make -C src msgfmt &&
gokhlayeh@8184 22 cp -a src/msgfmt /tools/bin &&
gokhlayeh@8184 23 cd ../gettext-runtime &&
gokhlayeh@8184 24 ./configure --disable-shared &&
gokhlayeh@8184 25 make -C gnulib-lib &&
gokhlayeh@8184 26 make -C src envsubst &&
gokhlayeh@8184 27 make -C src gettext &&
gokhlayeh@8184 28 make -C src ngettext &&
gokhlayeh@8184 29 cp -a src/envsubst src/gettext src/gettext.sh src/ngettext /tools/bin
gokhlayeh@8184 30 }
gokhlayeh@8184 31
pankso@29 32 # Rules to configure and make the package.
pankso@29 33 compile_rules()
pankso@29 34 {
pankso@29 35 cd $src
slaxemulator@11011 36 ./configure $CONFIGURE_ARGS && make && make install
pankso@29 37 }
pankso@29 38
pankso@29 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@29 40 genpkg_rules()
pankso@29 41 {
pankso@2745 42 mkdir -p $fs/usr/share
pankso@29 43 cp -a $_pkg/usr/bin $fs/usr
pankso@29 44 cp -a $_pkg/usr/lib $fs/usr
pankso@29 45 cp -a $_pkg/usr/include $fs/usr
pankso@29 46 cp -a $_pkg/usr/share/aclocal $fs/usr/share
pankso@29 47 cp -a $_pkg/usr/share/gettext $fs/usr/share
pankso@2745 48 # Remove gettext-base files.
pankso@2745 49 rm $fs/usr/bin/gettext
pankso@2745 50 rm $fs/usr/bin/gettext.sh
slaxemulator@6808 51 rm $fs/usr/bin/envsubst
slaxemulator@6808 52 rm $fs/usr/bin/ngettext
pankso@12147 53 }