wok-6.x annotate emacs-pkg-vala-mode/receipt @ rev 14094
emacs-pkg-vala-mode: fix bdeps
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Fri Feb 22 23:03:27 2013 +0100 (2013-02-22) |
parents | 62aaad21141d |
children | fddbfa2d4fb3 |
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@14088 | 28 cd $fs/usr/share/emacs/site-lisp/vala-mode/ |
domcox@14088 | 29 for file in vala*.el ; do |
domcox@14088 | 30 echo -n "Byte-compiling $file" |
domcox@14088 | 31 emacs -batch -f batch-byte-compile $file 2> /dev/null |
domcox@14088 | 32 status |
domcox@14088 | 33 rm -f $file |
domcox@14088 | 34 done |
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 } |