wok annotate emacs-pkg-vala-mode/receipt @ rev 14459
nagios-nrpe: Add missing patch file
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sat Apr 27 02:52:36 2013 +0200 (2013-04-27) |
parents | fddbfa2d4fb3 |
children | 223b265f40fd |
rev | line source |
---|---|
domcox@8443 | 1 # SliTaz package receipt. |
domcox@8443 | 2 |
domcox@8443 | 3 PACKAGE="emacs-pkg-vala-mode" |
domcox@8443 | 4 VERSION="0.1" |
domcox@8443 | 5 CATEGORY="development" |
domcox@8443 | 6 SHORT_DESC="An Emacs major mode for editing Vala code." |
domcox@8443 | 7 MAINTAINER="domcox@slitaz.org" |
domcox@8443 | 8 DEPENDS="emacs" |
domcox@14094 | 9 BUILD_DEPENDS="emacs" |
domcox@8443 | 10 WEB_SITE="http://live.gnome.org/Vala/Emacs" |
domcox@8443 | 11 TAGS="emacs vala" |
domcox@8443 | 12 |
domcox@8443 | 13 |
domcox@8443 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@8443 | 15 genpkg_rules() |
domcox@8443 | 16 { |
domcox@14088 | 17 echo -n "Installing start file" |
domcox@14088 | 18 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \ |
domcox@14088 | 19 cp -a stuff/80-vala-init.el $fs/usr/share/emacs/site-lisp/site-start.d |
domcox@14088 | 20 status |
domcox@14088 | 21 |
domcox@8443 | 22 echo -n "Installing vala-mode" |
domcox@8443 | 23 mkdir -p $fs/usr/share/emacs/site-lisp/vala-mode && \ |
domcox@14088 | 24 cp -a stuff/vala-mode.el $fs/usr/share/emacs/site-lisp/vala-mode |
domcox@8443 | 25 status |
domcox@8443 | 26 |
domcox@14088 | 27 # byte-compile files, remove src |
domcox@14195 | 28 for file in $fs/usr/share/emacs/site-lisp/vala-mode/vala*.el ; do |
domcox@14195 | 29 echo -n "Byte-compiling $(basename file)" |
domcox@14195 | 30 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$? |
domcox@14088 | 31 status |
domcox@14195 | 32 [ "$err" = "0" ] && rm -f $file |
domcox@14088 | 33 done |
pascal@14196 | 34 true |
domcox@8443 | 35 } |
domcox@8443 | 36 |
domcox@8443 | 37 post_install() |
domcox@8443 | 38 { |
domcox@8443 | 39 tazpkg reconfigure emacs |
domcox@8443 | 40 } |
domcox@8443 | 41 |
domcox@8443 | 42 post_remove() |
domcox@8443 | 43 { |
domcox@8443 | 44 tazpkg reconfigure emacs |
domcox@8443 | 45 } |