wok-next view gettext/receipt @ rev 20523

libnsgif: add missing stuff
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 23 15:16:45 2018 +0200 (2018-03-23)
parents e1c0edabdcb2
children 757d032c55c7
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gettext"
4 VERSION="0.19.8.1"
5 CATEGORY="development"
6 SHORT_DESC="Utilities for the GNU Translation Project"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/gettext/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gettext.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS_arm="attr-dev ncurses-dev libxml2-tools libxml2-dev"
16 BUILD_DEPENDS="libcroco-dev libxml2-dev glib-dev acl-dev emacs \
17 xorg-libXrandr-dev xorg-libXfixes-dev"
18 SPLIT="gettext-base gettext-tools emacs-pkg-po-mode gettext"
20 compile_rules() {
21 case "$ARCH" in
22 arm) ARCH_ARGS="--disable-acl";;
23 esac
25 fix ld
26 ./configure $CONFIGURE_ARGS $ARCH_ARGS && make && make install || return 1
28 chmod 0755 $install/usr/lib/preloadable_libintl.so
30 # stripped gettext.sh
31 rm $install/usr/bin/gettext.sh
32 install -m755 $stuff/gettext.sh $install/usr/bin
34 # emacs-pkg-po-mode --------
36 site_lisp="$install/usr/share/emacs/site-lisp"
37 # Installing start file
38 mkdir -p $site_lisp/site-start.d
39 cp -a $src/gettext-tools/misc/start-po.el $site_lisp/site-start.d/50-start-po.el
41 # Installing po-mode
42 mkdir -p $site_lisp/po-mode
43 cp -a $src/gettext-tools/misc/po*.el $site_lisp/po-mode
45 # byte-compile files, remove src
46 for file in $site_lisp/po-mode/*.el; do
47 echo -n "Byte-compiling $(basename $file)"
48 emacs -batch -f batch-byte-compile $file 2>/dev/null; err=$?
49 status
50 [ "$err" -eq 0 ] && rm -f $file
51 done
52 }
54 # Just to be sure when cross compiling, gettext is part of base system.
55 testsuite() {
56 readelf -h $install/usr/bin/gettext
57 }
59 genpkg_rules() {
60 case $PACKAGE in
61 gettext-base)
62 copy gettext gettext.sh envsubst ngettext
63 CAT="base-system|base tools"
64 DEPENDS="glibc-base"
65 ;;
66 gettext-tools)
67 copy msgcat msgfmt msgmerge xgettext \
68 libgettextlib*.so* libgettextsrc*.so*
69 CAT="libs|tools"
70 DEPENDS="acl attr glib libcroco libgomp liblzma libxml2 ncurses \
71 pcre zlib"
72 ;;
73 emacs-pkg-po-mode)
74 copy emacs/
75 DEPENDS="emacs"
76 CAT="development|Emacs major mode for editing or modifying PO files"
77 ;;
78 gettext)
79 copy @std @dev @rm
80 rm -rf $fs/usr/share/doc/ # @dev files here
81 # Runtime depends, then dev-depends
82 DEPENDS="gettext-base gettext-tools libcroco liblzma libxml2 \
83 acl-dev attr-dev libcroco-dev libxml2-dev glib-dev pcre-dev m4"
84 TAGS="LFS"
85 ;;
86 esac
87 }
89 post_install_emacs_pkg_po_mode() {
90 chroot "$1/" tazpkg reconfigure emacs
91 }
93 post_remove_emacs_pkg_po_mode() {
94 chroot "$1/" tazpkg reconfigure emacs
95 }