wok-current view emacs-pkg-po-mode/receipt @ rev 14476

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