wok-next annotate gettext/receipt @ rev 19980
Up libva (1.8.2)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Oct 18 03:39:08 2017 +0300 (2017-10-18) |
parents | 18c4d15a72df |
children | c3d04e304a7a |
rev | line source |
---|---|
al@19743 | 1 # SliTaz package receipt v2. |
pankso@29 | 2 |
pankso@29 | 3 PACKAGE="gettext" |
al@19561 | 4 VERSION="0.19.8.1" |
pankso@204 | 5 CATEGORY="development" |
al@19743 | 6 SHORT_DESC="Utilities for the GNU Translation Project" |
pankso@29 | 7 MAINTAINER="pankso@slitaz.org" |
al@14903 | 8 LICENSE="GPL3" |
al@19561 | 9 WEB_SITE="https://www.gnu.org/software/gettext/" |
al@19561 | 10 HOST_ARCH="i486 arm" |
al@19561 | 11 |
al@19561 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@29 | 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pankso@29 | 14 |
al@19561 | 15 BUILD_DEPENDS="libcroco-dev libxml2-dev glib-dev acl-dev" |
al@19743 | 16 BUILD_DEPENDS_arm="attr-dev ncurses-dev libxml2-tools libxml2-dev" |
al@19567 | 17 SPLIT="gettext-base gettext-tools" |
pankso@12147 | 18 |
pankso@12830 | 19 # Handle cross compilation. Glibc-locale are installed in cross chroot. |
pankso@12830 | 20 case "$ARCH" in |
al@19743 | 21 arm) ARCH_ARGS="--disable-acl" ;; |
pankso@12830 | 22 esac |
gokhlayeh@8184 | 23 |
pankso@29 | 24 # Rules to configure and make the package. |
pankso@29 | 25 compile_rules() |
pankso@29 | 26 { |
pascal@19098 | 27 ./configure $CONFIGURE_ARGS $ARCH_ARGS && |
pankso@12830 | 28 make && make install |
al@19743 | 29 |
al@19743 | 30 # stripped gettext.sh |
al@19743 | 31 rm $install/usr/bin/gettext.sh |
al@19743 | 32 install -m755 $stuff/gettext.sh $install/usr/bin |
al@19743 | 33 } |
al@19743 | 34 |
al@19743 | 35 # Just to be sure when cross compiling, gettext is part of base system. |
al@19743 | 36 testsuite() |
al@19743 | 37 { |
al@19743 | 38 readelf -h $install/usr/bin/gettext |
pankso@29 | 39 } |
pankso@29 | 40 |
pankso@29 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@29 | 42 genpkg_rules() |
pankso@29 | 43 { |
al@19743 | 44 case $PACKAGE in |
al@19743 | 45 gettext) |
al@19743 | 46 copy @std @dev |
al@19743 | 47 # Remove "gettext-base" and "gettext-tools" files. |
al@19743 | 48 for i in gettext gettext.sh envsubst ngettext \ |
al@19743 | 49 msgcat msgfmt msgmerge xgettext \ |
al@19743 | 50 libgettextlib*.so* libgettextsrc*.so*; do |
al@19743 | 51 find $fs -name "$i" -delete |
al@19743 | 52 done |
al@19743 | 53 # Runtime depends, then dev-depends |
al@19743 | 54 DEPENDS="gettext-base gettext-tools libcroco liblzma libxml2 \ |
al@19743 | 55 acl-dev attr-dev libcroco-dev libxml2-dev glib-dev pcre-dev m4" |
al@19743 | 56 ;; |
al@19743 | 57 gettext-base) |
al@19743 | 58 copy gettext gettext.sh envsubst ngettext |
al@19743 | 59 CAT="base-system|base tools" |
al@19743 | 60 DEPENDS="glibc-base" |
al@19743 | 61 ;; |
al@19743 | 62 gettext-tools) |
al@19743 | 63 copy msgcat msgfmt msgmerge xgettext \ |
al@19743 | 64 libgettextlib*.so* libgettextsrc*.so* |
al@19743 | 65 CAT="libs|tools" |
al@19743 | 66 DEPENDS="acl attr glib libcroco libgomp liblzma libxml2 pcre zlib" |
al@19743 | 67 ;; |
al@19743 | 68 esac |
pankso@12147 | 69 } |