wok-next annotate gettext/receipt @ rev 21245
updated cups-filters (1.11.1 -> 1.25.13)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Dec 05 15:55:07 2019 +0100 (2019-12-05) |
parents | 7b8e80e44f01 |
children |
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" |
al@21031 | 7 MAINTAINER="devel@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@20473 | 15 BUILD_DEPENDS="libcroco-dev libxml2-dev glib-dev acl-dev emacs \ |
al@21078 | 16 libxrandr-dev libxfixes-dev" |
al@21029 | 17 SPLIT="$PACKAGE-base $PACKAGE emacs-pkg-po-mode $PACKAGE-dev" |
pankso@12147 | 18 |
al@20436 | 19 compile_rules() { |
al@21020 | 20 ./configure $CONFIGURE_ARGS && |
al@21020 | 21 make && |
al@21020 | 22 make install || return 1 |
al@20436 | 23 |
al@20436 | 24 chmod 0755 $install/usr/lib/preloadable_libintl.so |
al@19743 | 25 |
al@19743 | 26 # stripped gettext.sh |
al@19743 | 27 rm $install/usr/bin/gettext.sh |
al@19743 | 28 install -m755 $stuff/gettext.sh $install/usr/bin |
al@20464 | 29 |
al@20464 | 30 # emacs-pkg-po-mode -------- |
al@20464 | 31 |
al@20464 | 32 site_lisp="$install/usr/share/emacs/site-lisp" |
al@20464 | 33 # Installing start file |
al@20464 | 34 mkdir -p $site_lisp/site-start.d |
al@20464 | 35 cp -a $src/gettext-tools/misc/start-po.el $site_lisp/site-start.d/50-start-po.el |
al@20464 | 36 |
al@20464 | 37 # Installing po-mode |
al@20464 | 38 mkdir -p $site_lisp/po-mode |
al@20464 | 39 cp -a $src/gettext-tools/misc/po*.el $site_lisp/po-mode |
al@20464 | 40 |
al@20464 | 41 # byte-compile files, remove src |
al@20464 | 42 for file in $site_lisp/po-mode/*.el; do |
al@20464 | 43 echo -n "Byte-compiling $(basename $file)" |
al@20464 | 44 emacs -batch -f batch-byte-compile $file 2>/dev/null; err=$? |
al@20464 | 45 status |
al@20464 | 46 [ "$err" -eq 0 ] && rm -f $file |
al@20464 | 47 done |
al@19743 | 48 } |
al@19743 | 49 |
al@19743 | 50 # Just to be sure when cross compiling, gettext is part of base system. |
al@20436 | 51 testsuite() { |
al@19743 | 52 readelf -h $install/usr/bin/gettext |
pankso@29 | 53 } |
pankso@29 | 54 |
al@20436 | 55 genpkg_rules() { |
al@19743 | 56 case $PACKAGE in |
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@21029 | 62 gettext) |
al@19743 | 63 copy msgcat msgfmt msgmerge xgettext \ |
al@21029 | 64 libgettextlib*.so* libgettextsrc*.so* |
al@20749 | 65 DEPENDS="acl glib libcroco libgomp libxml2 ncurses" |
al@21029 | 66 TAGS="LFS" |
al@19743 | 67 ;; |
al@20464 | 68 emacs-pkg-po-mode) |
al@20464 | 69 copy emacs/ |
al@20464 | 70 DEPENDS="emacs" |
al@20464 | 71 CAT="development|Emacs major mode for editing or modifying PO files" |
al@20464 | 72 ;; |
al@21029 | 73 *-dev) |
al@20199 | 74 copy @std @dev @rm |
al@20436 | 75 rm -rf $fs/usr/share/doc/ # @dev files here |
al@20199 | 76 # Runtime depends, then dev-depends |
al@21029 | 77 DEPENDS="gettext-base gettext libxml2" |
al@20199 | 78 ;; |
al@19743 | 79 esac |
pankso@12147 | 80 } |
al@20464 | 81 |
al@20464 | 82 post_install_emacs_pkg_po_mode() { |
al@20464 | 83 chroot "$1/" tazpkg reconfigure emacs |
al@20464 | 84 } |
al@20464 | 85 |
al@20464 | 86 post_remove_emacs_pkg_po_mode() { |
al@20464 | 87 chroot "$1/" tazpkg reconfigure emacs |
al@20464 | 88 } |