wok-6.x rev 14087

Up: emacs-pkg-po-mode: tidy receipt
author Dominique Corbex <domcox@slitaz.org>
date Fri Feb 22 21:15:31 2013 +0100 (2013-02-22)
parents d0643861276a
children 62aaad21141d
files emacs-pkg-po-mode/receipt
line diff
     1.1 --- a/emacs-pkg-po-mode/receipt	Fri Feb 22 21:14:47 2013 +0100
     1.2 +++ b/emacs-pkg-po-mode/receipt	Fri Feb 22 21:15:31 2013 +0100
     1.3 @@ -13,42 +13,30 @@
     1.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     1.5  genpkg_rules()
     1.6  {
     1.7 +	echo -n "Installing start file"
     1.8 +	mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
     1.9 +	cp -a $src/gettext-tools/misc/start-po.el \
    1.10 +		$fs/usr/share/emacs/site-lisp/site-start.d/50-start-po.el
    1.11 +	status
    1.12 +
    1.13  	echo -n "Installing po-mode"
    1.14  	mkdir -p $fs/usr/share/emacs/site-lisp/po-mode && \
    1.15  	cp -a $src/gettext-tools/misc/po*.el $fs/usr/share/emacs/site-lisp/po-mode
    1.16  	status
    1.17  
    1.18 -	echo -n "Installing start file"
    1.19 -	mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
    1.20 -	cp -a $src/gettext-tools/misc/start-po.el \
    1.21 -		$fs/usr/share/emacs/site-lisp/site-start.d/50-start-po.el
    1.22 -	status
    1.23 -}
    1.24 -
    1.25 -post_install()
    1.26 -{
    1.27  	# byte-compile files, remove src
    1.28 -	cd /usr/share/emacs/site-lisp/po-mode/
    1.29 +	cd $fs/usr/share/emacs/site-lisp/po-mode/
    1.30  	for file in *.el ; do
    1.31  		echo -n "Byte-compiling $file"
    1.32  		emacs -batch -f batch-byte-compile $file 2> /dev/null
    1.33  		status
    1.34  		rm -f $file
    1.35  	done
    1.36 -	tazpkg reconfigure emacs
    1.37  }
    1.38  
    1.39 -pre_remove()
    1.40 +post_install()
    1.41  {
    1.42 -	# remove byte-compiled files,
    1.43 -	# created by post_install()
    1.44 -	cd /usr/share/emacs/site-lisp/po-mode/
    1.45 -	for file in *.elc ; do
    1.46 -		echo -n "Deleting byte-compiled code $file"
    1.47 -		touch "$file" "`basename $file .elc`.el"
    1.48 -		rm -f $file
    1.49 -		status
    1.50 -	done
    1.51 +	tazpkg reconfigure emacs
    1.52  }
    1.53  
    1.54  post_remove()