wok-next view gettext/receipt @ rev 21018

Nasty typo broke the cooker
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Oct 17 03:59:24 2018 +0300 (2018-10-17)
parents 757d032c55c7
children d5aab818505e
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 ./configure $CONFIGURE_ARGS $ARCH_ARGS && make && make install || return 1
27 chmod 0755 $install/usr/lib/preloadable_libintl.so
29 # stripped gettext.sh
30 rm $install/usr/bin/gettext.sh
31 install -m755 $stuff/gettext.sh $install/usr/bin
33 # emacs-pkg-po-mode --------
35 site_lisp="$install/usr/share/emacs/site-lisp"
36 # Installing start file
37 mkdir -p $site_lisp/site-start.d
38 cp -a $src/gettext-tools/misc/start-po.el $site_lisp/site-start.d/50-start-po.el
40 # Installing po-mode
41 mkdir -p $site_lisp/po-mode
42 cp -a $src/gettext-tools/misc/po*.el $site_lisp/po-mode
44 # byte-compile files, remove src
45 for file in $site_lisp/po-mode/*.el; do
46 echo -n "Byte-compiling $(basename $file)"
47 emacs -batch -f batch-byte-compile $file 2>/dev/null; err=$?
48 status
49 [ "$err" -eq 0 ] && rm -f $file
50 done
51 }
53 # Just to be sure when cross compiling, gettext is part of base system.
54 testsuite() {
55 readelf -h $install/usr/bin/gettext
56 }
58 genpkg_rules() {
59 case $PACKAGE in
60 gettext-base)
61 copy gettext gettext.sh envsubst ngettext
62 CAT="base-system|base tools"
63 DEPENDS="glibc-base"
64 ;;
65 gettext-tools)
66 copy msgcat msgfmt msgmerge xgettext \
67 libgettextlib*.so* libgettextsrc*.so*
68 CAT="libs|tools"
69 DEPENDS="acl glib libcroco libgomp libxml2 ncurses"
70 ;;
71 emacs-pkg-po-mode)
72 copy emacs/
73 DEPENDS="emacs"
74 CAT="development|Emacs major mode for editing or modifying PO files"
75 ;;
76 gettext)
77 copy @std @dev @rm
78 rm -rf $fs/usr/share/doc/ # @dev files here
79 # Runtime depends, then dev-depends
80 DEPENDS="gettext-base gettext-tools libxml2"
81 TAGS="LFS"
82 ;;
83 esac
84 }
86 post_install_emacs_pkg_po_mode() {
87 chroot "$1/" tazpkg reconfigure emacs
88 }
90 post_remove_emacs_pkg_po_mode() {
91 chroot "$1/" tazpkg reconfigure emacs
92 }