wok-6.x view emacs-pkg-po-mode/receipt @ rev 19796

file: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 23 15:12:51 2017 +0100 (2017-02-23)
parents 9b7b70c9feef
children 28e74f124643
line source
1 # SliTaz package receipt.
3 PACKAGE="emacs-pkg-po-mode"
4 VERSION="0.19.4"
5 CATEGORY="development"
6 SHORT_DESC="An Emacs major mode for editing or modifying PO files."
7 MAINTAINER="domcox@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.gnu.org/software/hello/manual/gettext/PO-Mode.html"
10 WANTED="gettext"
12 DEPENDS="emacs"
13 BUILD_DEPENDS="emacs"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 echo -n "Installing start file"
19 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
20 cp -a $src/gettext-tools/misc/start-po.el \
21 $fs/usr/share/emacs/site-lisp/site-start.d/50-start-po.el
22 status
24 echo -n "Installing po-mode"
25 mkdir -p $fs/usr/share/emacs/site-lisp/po-mode && \
26 cp -a $src/gettext-tools/misc/po*.el $fs/usr/share/emacs/site-lisp/po-mode
27 status
29 # byte-compile files, remove src
30 for file in $fs/usr/share/emacs/site-lisp/po-mode/*.el ; do
31 echo -n "Byte-compiling $(basename $file)"
32 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$?
33 status
34 [ "$err" = "0" ] && rm -f $file
35 done
36 true
37 }
39 post_install()
40 {
41 chroot "$1/" tazpkg reconfigure emacs
42 }
44 post_remove()
45 {
46 chroot "$1/" tazpkg reconfigure emacs
47 }