wok-undigest diff gettext/receipt @ rev 1236
updated ffmpeg
author | Hans-G?nter Theisgen |
---|---|
date | Sat Aug 06 17:24:31 2022 +0100 (23 months ago) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gettext/receipt Sat Aug 06 17:24:31 2022 +0100 1.3 @@ -0,0 +1,88 @@ 1.4 +# SliTaz package receipt v2. 1.5 + 1.6 +PACKAGE="gettext" 1.7 +VERSION="0.19.8.1" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="Utilities for the GNU Translation Project" 1.10 +MAINTAINER="devel@slitaz.org" 1.11 +LICENSE="GPL3" 1.12 +WEB_SITE="https://www.gnu.org/software/gettext/" 1.13 +LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gettext.html" 1.14 + 1.15 +TARBALL="$PACKAGE-$VERSION.tar.xz" 1.16 +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" 1.17 + 1.18 +BUILD_DEPENDS="libcroco-dev libxml2-dev glib-dev acl-dev emacs \ 1.19 +libxrandr-dev libxfixes-dev" 1.20 +SPLIT="$PACKAGE-base $PACKAGE emacs-pkg-po-mode $PACKAGE-dev" 1.21 + 1.22 +compile_rules() { 1.23 + ./configure $CONFIGURE_ARGS && 1.24 + make && 1.25 + make install || return 1 1.26 + 1.27 + chmod 0755 $install/usr/lib/preloadable_libintl.so 1.28 + 1.29 + # stripped gettext.sh 1.30 + rm $install/usr/bin/gettext.sh 1.31 + install -m755 $stuff/gettext.sh $install/usr/bin 1.32 + 1.33 + # emacs-pkg-po-mode -------- 1.34 + 1.35 + site_lisp="$install/usr/share/emacs/site-lisp" 1.36 + # Installing start file 1.37 + mkdir -p $site_lisp/site-start.d 1.38 + cp -a $src/gettext-tools/misc/start-po.el $site_lisp/site-start.d/50-start-po.el 1.39 + 1.40 + # Installing po-mode 1.41 + mkdir -p $site_lisp/po-mode 1.42 + cp -a $src/gettext-tools/misc/po*.el $site_lisp/po-mode 1.43 + 1.44 + # byte-compile files, remove src 1.45 + for file in $site_lisp/po-mode/*.el; do 1.46 + echo -n "Byte-compiling $(basename $file)" 1.47 + emacs -batch -f batch-byte-compile $file 2>/dev/null; err=$? 1.48 + status 1.49 + [ "$err" -eq 0 ] && rm -f $file 1.50 + done 1.51 +} 1.52 + 1.53 +# Just to be sure when cross compiling, gettext is part of base system. 1.54 +testsuite() { 1.55 + readelf -h $install/usr/bin/gettext 1.56 +} 1.57 + 1.58 +genpkg_rules() { 1.59 + case $PACKAGE in 1.60 + gettext-base) 1.61 + copy gettext gettext.sh envsubst ngettext 1.62 + CAT="base-system|base tools" 1.63 + DEPENDS="glibc-base" 1.64 + ;; 1.65 + gettext) 1.66 + copy msgcat msgfmt msgmerge xgettext \ 1.67 + libgettextlib*.so* libgettextsrc*.so* 1.68 + DEPENDS="acl glib libcroco libgomp libxml2 ncurses" 1.69 + TAGS="LFS" 1.70 + ;; 1.71 + emacs-pkg-po-mode) 1.72 + copy emacs/ 1.73 + DEPENDS="emacs" 1.74 + CAT="development|Emacs major mode for editing or modifying PO files" 1.75 + ;; 1.76 + *-dev) 1.77 + copy @std @dev @rm 1.78 + rm -rf $fs/usr/share/doc/ # @dev files here 1.79 + # Runtime depends, then dev-depends 1.80 + DEPENDS="gettext-base gettext libxml2" 1.81 + ;; 1.82 + esac 1.83 +} 1.84 + 1.85 +post_install_emacs_pkg_po_mode() { 1.86 + chroot "$1/" tazpkg reconfigure emacs 1.87 +} 1.88 + 1.89 +post_remove_emacs_pkg_po_mode() { 1.90 + chroot "$1/" tazpkg reconfigure emacs 1.91 +}