wok-current annotate emacs-pkg-po-mode/receipt @ rev 24463
updated dar (2.6.7 -> 2.7.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 17 07:23:25 2022 +0100 (2022-02-17) |
parents | 9122458e5bb5 |
children | 82d54eca72be |
rev | line source |
---|---|
domcox@8126 | 1 # SliTaz package receipt. |
domcox@8126 | 2 |
domcox@8126 | 3 PACKAGE="emacs-pkg-po-mode" |
pascal@19922 | 4 VERSION="0.19.8.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" |
pascal@14999 | 8 LICENSE="GPL3" |
domcox@8126 | 9 WEB_SITE="http://www.gnu.org/software/hello/manual/gettext/PO-Mode.html" |
domcox@8126 | 10 WANTED="gettext" |
domcox@8126 | 11 |
pascal@14999 | 12 DEPENDS="emacs" |
pascal@14999 | 13 BUILD_DEPENDS="emacs" |
domcox@8126 | 14 |
domcox@8126 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@8126 | 16 genpkg_rules() |
domcox@8126 | 17 { |
domcox@14087 | 18 echo -n "Installing start file" |
domcox@14087 | 19 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \ |
domcox@14087 | 20 cp -a $src/gettext-tools/misc/start-po.el \ |
domcox@14087 | 21 $fs/usr/share/emacs/site-lisp/site-start.d/50-start-po.el |
domcox@14087 | 22 status |
domcox@14087 | 23 |
domcox@8126 | 24 echo -n "Installing po-mode" |
domcox@8126 | 25 mkdir -p $fs/usr/share/emacs/site-lisp/po-mode && \ |
domcox@8126 | 26 cp -a $src/gettext-tools/misc/po*.el $fs/usr/share/emacs/site-lisp/po-mode |
domcox@8126 | 27 status |
domcox@8126 | 28 |
domcox@8126 | 29 # byte-compile files, remove src |
domcox@14194 | 30 for file in $fs/usr/share/emacs/site-lisp/po-mode/*.el ; do |
domcox@14194 | 31 echo -n "Byte-compiling $(basename $file)" |
domcox@14194 | 32 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$? |
domcox@8126 | 33 status |
domcox@14194 | 34 [ "$err" = "0" ] && rm -f $file |
domcox@8126 | 35 done |
pascal@14196 | 36 true |
domcox@8126 | 37 } |
domcox@8126 | 38 |
domcox@14087 | 39 post_install() |
domcox@8126 | 40 { |
pascal@17552 | 41 chroot "$1/" tazpkg reconfigure emacs |
domcox@8126 | 42 } |
domcox@8126 | 43 |
domcox@8126 | 44 post_remove() |
domcox@8126 | 45 { |
pascal@17552 | 46 chroot "$1/" tazpkg reconfigure emacs |
domcox@8126 | 47 } |