wok-current annotate emacs-pkg-po-mode/receipt @ rev 12710
cross-arm-gcc: improve receipt, use --libexecdir= and --disable-threads
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 04 15:59:16 2012 +0200 (2012-05-04) |
parents | |
children | e439deff3a85 |
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@8126 | 16 echo -n "Installing po-mode" |
domcox@8126 | 17 mkdir -p $fs/usr/share/emacs/site-lisp/po-mode && \ |
domcox@8126 | 18 cp -a $src/gettext-tools/misc/po*.el $fs/usr/share/emacs/site-lisp/po-mode |
domcox@8126 | 19 status |
domcox@8126 | 20 |
domcox@8126 | 21 echo -n "Installing start file" |
domcox@8126 | 22 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \ |
domcox@8126 | 23 cp -a $src/gettext-tools/misc/start-po.el \ |
domcox@8126 | 24 $fs/usr/share/emacs/site-lisp/site-start.d/50-start-po.el |
domcox@8126 | 25 status |
domcox@8126 | 26 } |
domcox@8126 | 27 |
domcox@8126 | 28 post_install() |
domcox@8126 | 29 { |
domcox@8126 | 30 # byte-compile files, remove src |
domcox@8126 | 31 cd /usr/share/emacs/site-lisp/po-mode/ |
domcox@8126 | 32 for file in *.el ; do |
domcox@8126 | 33 echo -n "Byte-compiling $file" |
domcox@8126 | 34 emacs -batch -f batch-byte-compile $file 2> /dev/null |
domcox@8126 | 35 status |
domcox@8126 | 36 rm -f $file |
domcox@8126 | 37 done |
domcox@8126 | 38 tazpkg reconfigure emacs |
domcox@8126 | 39 } |
domcox@8126 | 40 |
domcox@8126 | 41 pre_remove() |
domcox@8126 | 42 { |
domcox@8126 | 43 # remove byte-compiled files, |
domcox@8126 | 44 # created by post_install() |
domcox@8126 | 45 cd /usr/share/emacs/site-lisp/po-mode/ |
domcox@8126 | 46 for file in *.elc ; do |
domcox@8126 | 47 echo -n "Deleting byte-compiled code $file" |
domcox@8126 | 48 touch "$file" "`basename $file .elc`.el" |
domcox@8126 | 49 rm -f $file |
domcox@8126 | 50 status |
domcox@8126 | 51 done |
domcox@8126 | 52 } |
domcox@8126 | 53 |
domcox@8126 | 54 post_remove() |
domcox@8126 | 55 { |
domcox@8126 | 56 tazpkg reconfigure emacs |
domcox@8126 | 57 } |