wok-next annotate emacs-pkg-vala-mode/receipt @ rev 14195

emacs-pkg-vala-mode: tidy receipt
author Dominique Corbex <domcox@slitaz.org>
date Tue Mar 12 23:05:45 2013 +0100 (2013-03-12)
parents 5bd4f2f4f104
children 4e8a13288f6b
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
domcox@8443 34 }
domcox@8443 35
domcox@8443 36 post_install()
domcox@8443 37 {
domcox@8443 38 tazpkg reconfigure emacs
domcox@8443 39 }
domcox@8443 40
domcox@8443 41 post_remove()
domcox@8443 42 {
domcox@8443 43 tazpkg reconfigure emacs
domcox@8443 44 }