wok-6.x annotate gettext/receipt @ rev 8213
imported patch toolchain/uclibc-cross-compiler-i486.patch
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Thu Jan 27 00:20:50 2011 +0100 (2011-01-27) |
parents | e198ea52ecc9 |
children | 9c5e2fdf739d |
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" |
gokhlayeh@8184 | 9 BUILD_DEPENDS="glibc-locale ncurses" |
gokhlayeh@8184 | 10 DEPENDS="gettext-base libgomp ncurses gcc-lib-base" |
pankso@29 | 11 WEB_SITE="http://www.gnu.org/software/gettext/" |
pankso@29 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pankso@29 | 13 |
gokhlayeh@8184 | 14 # Rules to compile & install the temporary toolchain. |
gokhlayeh@8184 | 15 cook_tmp_toolchain() |
gokhlayeh@8184 | 16 { |
gokhlayeh@8184 | 17 cd $src/gettext-tools |
gokhlayeh@8184 | 18 ./configure --disable-shared && |
gokhlayeh@8184 | 19 make -C gnulib-lib && |
gokhlayeh@8184 | 20 make -C src msgfmt && |
gokhlayeh@8184 | 21 cp -a src/msgfmt /tools/bin && |
gokhlayeh@8184 | 22 cd ../gettext-runtime && |
gokhlayeh@8184 | 23 ./configure --disable-shared && |
gokhlayeh@8184 | 24 make -C gnulib-lib && |
gokhlayeh@8184 | 25 make -C src envsubst && |
gokhlayeh@8184 | 26 make -C src gettext && |
gokhlayeh@8184 | 27 make -C src ngettext && |
gokhlayeh@8184 | 28 cp -a src/envsubst src/gettext src/gettext.sh src/ngettext /tools/bin |
gokhlayeh@8184 | 29 } |
gokhlayeh@8184 | 30 |
pankso@29 | 31 # Rules to configure and make the package. |
pankso@29 | 32 compile_rules() |
pankso@29 | 33 { |
pankso@29 | 34 cd $src |
gokhlayeh@8184 | 35 ./configure && make && make install |
pankso@29 | 36 } |
pankso@29 | 37 |
pankso@29 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@29 | 39 genpkg_rules() |
pankso@29 | 40 { |
pankso@2745 | 41 mkdir -p $fs/usr/share |
pankso@29 | 42 cp -a $_pkg/usr/bin $fs/usr |
pankso@29 | 43 cp -a $_pkg/usr/lib $fs/usr |
pankso@29 | 44 cp -a $_pkg/usr/include $fs/usr |
pankso@29 | 45 cp -a $_pkg/usr/share/aclocal $fs/usr/share |
pankso@29 | 46 cp -a $_pkg/usr/share/gettext $fs/usr/share |
pankso@2745 | 47 # Remove gettext-base files. |
pankso@2745 | 48 rm $fs/usr/bin/gettext |
pankso@2745 | 49 rm $fs/usr/bin/gettext.sh |
slaxemulator@6808 | 50 rm $fs/usr/bin/envsubst |
slaxemulator@6808 | 51 rm $fs/usr/bin/ngettext |
gokhlayeh@8184 | 52 } |