wok-6.x annotate emacs-pkg-po-mode/receipt @ rev 14952
Up: ethumb-dev (1.7.8)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu Aug 08 19:16:04 2013 +0200 (2013-08-08) |
parents | f8c578364093 |
children | 2b9f96603415 |
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@14194 | 29 for file in $fs/usr/share/emacs/site-lisp/po-mode/*.el ; do |
domcox@14194 | 30 echo -n "Byte-compiling $(basename $file)" |
domcox@14194 | 31 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$? |
domcox@8126 | 32 status |
domcox@14194 | 33 [ "$err" = "0" ] && rm -f $file |
domcox@8126 | 34 done |
pascal@14196 | 35 true |
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 } |