wok-next annotate emacs-pkg-po-mode/receipt @ rev 14087

Up: emacs-pkg-po-mode: tidy receipt
author Dominique Corbex <domcox@slitaz.org>
date Fri Feb 22 21:15:31 2013 +0100 (2013-02-22)
parents 8808f618b300
children d9e0b6aa4cb6
rev   line source
domcox@8126 1 # SliTaz package receipt.
domcox@8126 2
domcox@8126 3 PACKAGE="emacs-pkg-po-mode"
domcox@8126 4 VERSION="0.18.1.1"
domcox@8126 5 CATEGORY="development"
domcox@8126 6 SHORT_DESC="An Emacs major mode for editing or modifying PO files."
domcox@8126 7 MAINTAINER="domcox@slitaz.org"
domcox@8126 8 DEPENDS="emacs"
domcox@8126 9 WEB_SITE="http://www.gnu.org/software/hello/manual/gettext/PO-Mode.html"
domcox@8126 10 WANTED="gettext"
domcox@8126 11
domcox@8126 12
domcox@8126 13 # Rules to gen a SliTaz package suitable for Tazpkg.
domcox@8126 14 genpkg_rules()
domcox@8126 15 {
domcox@14087 16 echo -n "Installing start file"
domcox@14087 17 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
domcox@14087 18 cp -a $src/gettext-tools/misc/start-po.el \
domcox@14087 19 $fs/usr/share/emacs/site-lisp/site-start.d/50-start-po.el
domcox@14087 20 status
domcox@14087 21
domcox@8126 22 echo -n "Installing po-mode"
domcox@8126 23 mkdir -p $fs/usr/share/emacs/site-lisp/po-mode && \
domcox@8126 24 cp -a $src/gettext-tools/misc/po*.el $fs/usr/share/emacs/site-lisp/po-mode
domcox@8126 25 status
domcox@8126 26
domcox@8126 27 # byte-compile files, remove src
domcox@14087 28 cd $fs/usr/share/emacs/site-lisp/po-mode/
domcox@8126 29 for file in *.el ; do
domcox@8126 30 echo -n "Byte-compiling $file"
domcox@8126 31 emacs -batch -f batch-byte-compile $file 2> /dev/null
domcox@8126 32 status
domcox@8126 33 rm -f $file
domcox@8126 34 done
domcox@8126 35 }
domcox@8126 36
domcox@14087 37 post_install()
domcox@8126 38 {
domcox@14087 39 tazpkg reconfigure emacs
domcox@8126 40 }
domcox@8126 41
domcox@8126 42 post_remove()
domcox@8126 43 {
domcox@8126 44 tazpkg reconfigure emacs
domcox@8126 45 }