wok-next annotate gettext/receipt @ rev 20640

Up at-spi2-atk (2.26.1), at-spi2-core (2.26.2), atk (2.26.1), tazlito (492); add catpoint; fix lzma for 64 bit
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 01 14:16:10 2018 +0300 (2018-05-01)
parents 2d4ad53f3c69
children 342b30daff76
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@20436 10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gettext.html"
al@19561 11
al@19561 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@29 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@29 14
al@20436 15 BUILD_DEPENDS_arm="attr-dev ncurses-dev libxml2-tools libxml2-dev"
al@20473 16 BUILD_DEPENDS="libcroco-dev libxml2-dev glib-dev acl-dev emacs \
al@20474 17 xorg-libXrandr-dev xorg-libXfixes-dev"
al@20464 18 SPLIT="gettext-base gettext-tools emacs-pkg-po-mode gettext"
pankso@12147 19
al@20436 20 compile_rules() {
al@20436 21 case "$ARCH" in
al@20436 22 arm) ARCH_ARGS="--disable-acl";;
al@20436 23 esac
gokhlayeh@8184 24
al@20436 25 ./configure $CONFIGURE_ARGS $ARCH_ARGS && make && make install || return 1
al@20436 26
al@20436 27 chmod 0755 $install/usr/lib/preloadable_libintl.so
al@19743 28
al@19743 29 # stripped gettext.sh
al@19743 30 rm $install/usr/bin/gettext.sh
al@19743 31 install -m755 $stuff/gettext.sh $install/usr/bin
al@20464 32
al@20464 33 # emacs-pkg-po-mode --------
al@20464 34
al@20464 35 site_lisp="$install/usr/share/emacs/site-lisp"
al@20464 36 # Installing start file
al@20464 37 mkdir -p $site_lisp/site-start.d
al@20464 38 cp -a $src/gettext-tools/misc/start-po.el $site_lisp/site-start.d/50-start-po.el
al@20464 39
al@20464 40 # Installing po-mode
al@20464 41 mkdir -p $site_lisp/po-mode
al@20464 42 cp -a $src/gettext-tools/misc/po*.el $site_lisp/po-mode
al@20464 43
al@20464 44 # byte-compile files, remove src
al@20464 45 for file in $site_lisp/po-mode/*.el; do
al@20464 46 echo -n "Byte-compiling $(basename $file)"
al@20464 47 emacs -batch -f batch-byte-compile $file 2>/dev/null; err=$?
al@20464 48 status
al@20464 49 [ "$err" -eq 0 ] && rm -f $file
al@20464 50 done
al@19743 51 }
al@19743 52
al@19743 53 # Just to be sure when cross compiling, gettext is part of base system.
al@20436 54 testsuite() {
al@19743 55 readelf -h $install/usr/bin/gettext
pankso@29 56 }
pankso@29 57
al@20436 58 genpkg_rules() {
al@19743 59 case $PACKAGE in
al@19743 60 gettext-base)
al@19743 61 copy gettext gettext.sh envsubst ngettext
al@19743 62 CAT="base-system|base tools"
al@19743 63 DEPENDS="glibc-base"
al@19743 64 ;;
al@19743 65 gettext-tools)
al@19743 66 copy msgcat msgfmt msgmerge xgettext \
al@19743 67 libgettextlib*.so* libgettextsrc*.so*
al@19743 68 CAT="libs|tools"
al@20436 69 DEPENDS="acl attr glib libcroco libgomp liblzma libxml2 ncurses \
al@20436 70 pcre zlib"
al@19743 71 ;;
al@20464 72 emacs-pkg-po-mode)
al@20464 73 copy emacs/
al@20464 74 DEPENDS="emacs"
al@20464 75 CAT="development|Emacs major mode for editing or modifying PO files"
al@20464 76 ;;
al@20199 77 gettext)
al@20199 78 copy @std @dev @rm
al@20436 79 rm -rf $fs/usr/share/doc/ # @dev files here
al@20199 80 # Runtime depends, then dev-depends
al@20199 81 DEPENDS="gettext-base gettext-tools libcroco liblzma libxml2 \
al@20199 82 acl-dev attr-dev libcroco-dev libxml2-dev glib-dev pcre-dev m4"
al@20436 83 TAGS="LFS"
al@20199 84 ;;
al@19743 85 esac
pankso@12147 86 }
al@20464 87
al@20464 88 post_install_emacs_pkg_po_mode() {
al@20464 89 chroot "$1/" tazpkg reconfigure emacs
al@20464 90 }
al@20464 91
al@20464 92 post_remove_emacs_pkg_po_mode() {
al@20464 93 chroot "$1/" tazpkg reconfigure emacs
al@20464 94 }