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

Up mtpfs (1.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 29 11:43:08 2012 +0200 (2012-04-29)
parents
children e439deff3a85
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 WEB_SITE="http://www.gnu.org/software/hello/manual/gettext/PO-Mode.html"
10 WANTED="gettext"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 echo -n "Installing po-mode"
17 mkdir -p $fs/usr/share/emacs/site-lisp/po-mode && \
18 cp -a $src/gettext-tools/misc/po*.el $fs/usr/share/emacs/site-lisp/po-mode
19 status
21 echo -n "Installing start file"
22 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
23 cp -a $src/gettext-tools/misc/start-po.el \
24 $fs/usr/share/emacs/site-lisp/site-start.d/50-start-po.el
25 status
26 }
28 post_install()
29 {
30 # byte-compile files, remove src
31 cd /usr/share/emacs/site-lisp/po-mode/
32 for file in *.el ; do
33 echo -n "Byte-compiling $file"
34 emacs -batch -f batch-byte-compile $file 2> /dev/null
35 status
36 rm -f $file
37 done
38 tazpkg reconfigure emacs
39 }
41 pre_remove()
42 {
43 # remove byte-compiled files,
44 # created by post_install()
45 cd /usr/share/emacs/site-lisp/po-mode/
46 for file in *.elc ; do
47 echo -n "Deleting byte-compiled code $file"
48 touch "$file" "`basename $file .elc`.el"
49 rm -f $file
50 status
51 done
52 }
54 post_remove()
55 {
56 tazpkg reconfigure emacs
57 }