wok view gettext/receipt @ rev 9226

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