wok-current annotate emacs-pkg-po-mode/receipt @ rev 14095
emacs-po-mode: fix bdeps
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Fri Feb 22 23:05:07 2013 +0100 (2013-02-22) |
parents | e439deff3a85 |
children | f8c578364093 |
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@14095 | 9 BUILD_DEPENDS="emacs" |
domcox@8126 | 10 WEB_SITE="http://www.gnu.org/software/hello/manual/gettext/PO-Mode.html" |
domcox@8126 | 11 WANTED="gettext" |
domcox@8126 | 12 |
domcox@8126 | 13 |
domcox@8126 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@8126 | 15 genpkg_rules() |
domcox@8126 | 16 { |
domcox@14087 | 17 echo -n "Installing start file" |
domcox@14087 | 18 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \ |
domcox@14087 | 19 cp -a $src/gettext-tools/misc/start-po.el \ |
domcox@14087 | 20 $fs/usr/share/emacs/site-lisp/site-start.d/50-start-po.el |
domcox@14087 | 21 status |
domcox@14087 | 22 |
domcox@8126 | 23 echo -n "Installing po-mode" |
domcox@8126 | 24 mkdir -p $fs/usr/share/emacs/site-lisp/po-mode && \ |
domcox@8126 | 25 cp -a $src/gettext-tools/misc/po*.el $fs/usr/share/emacs/site-lisp/po-mode |
domcox@8126 | 26 status |
domcox@8126 | 27 |
domcox@8126 | 28 # byte-compile files, remove src |
domcox@14087 | 29 cd $fs/usr/share/emacs/site-lisp/po-mode/ |
domcox@8126 | 30 for file in *.el ; do |
domcox@8126 | 31 echo -n "Byte-compiling $file" |
domcox@8126 | 32 emacs -batch -f batch-byte-compile $file 2> /dev/null |
domcox@8126 | 33 status |
domcox@8126 | 34 rm -f $file |
domcox@8126 | 35 done |
domcox@8126 | 36 } |
domcox@8126 | 37 |
domcox@14087 | 38 post_install() |
domcox@8126 | 39 { |
domcox@14087 | 40 tazpkg reconfigure emacs |
domcox@8126 | 41 } |
domcox@8126 | 42 |
domcox@8126 | 43 post_remove() |
domcox@8126 | 44 { |
domcox@8126 | 45 tazpkg reconfigure emacs |
domcox@8126 | 46 } |