wok-stable diff emacs-pkg-po-mode/receipt @ rev 8262

Removed -j 4 in zsnes.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Jan 29 16:37:30 2011 +0000 (2011-01-29)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/emacs-pkg-po-mode/receipt	Sat Jan 29 16:37:30 2011 +0000
     1.3 @@ -0,0 +1,57 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="emacs-pkg-po-mode"
     1.7 +VERSION="0.18.1.1"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="An Emacs major mode for editing or modifying PO files."
    1.10 +MAINTAINER="domcox@slitaz.org"
    1.11 +DEPENDS="emacs"
    1.12 +WEB_SITE="http://www.gnu.org/software/hello/manual/gettext/PO-Mode.html"
    1.13 +WANTED="gettext"
    1.14 +
    1.15 +
    1.16 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.17 +genpkg_rules()
    1.18 +{
    1.19 +	echo -n "Installing po-mode"
    1.20 +	mkdir -p $fs/usr/share/emacs/site-lisp/po-mode && \
    1.21 +	cp -a $src/gettext-tools/misc/po*.el $fs/usr/share/emacs/site-lisp/po-mode
    1.22 +	status
    1.23 +
    1.24 +	echo -n "Installing start file"
    1.25 +	mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
    1.26 +	cp -a $src/gettext-tools/misc/start-po.el \
    1.27 +		$fs/usr/share/emacs/site-lisp/site-start.d/50-start-po.el
    1.28 +	status
    1.29 +}
    1.30 +
    1.31 +post_install()
    1.32 +{
    1.33 +	# byte-compile files, remove src
    1.34 +	cd /usr/share/emacs/site-lisp/po-mode/
    1.35 +	for file in *.el ; do
    1.36 +		echo -n "Byte-compiling $file"
    1.37 +		emacs -batch -f batch-byte-compile $file 2> /dev/null
    1.38 +		status
    1.39 +		rm -f $file
    1.40 +	done
    1.41 +	tazpkg reconfigure emacs
    1.42 +}
    1.43 +
    1.44 +pre_remove()
    1.45 +{
    1.46 +	# remove byte-compiled files,
    1.47 +	# created by post_install()
    1.48 +	cd /usr/share/emacs/site-lisp/po-mode/
    1.49 +	for file in *.elc ; do
    1.50 +		echo -n "Deleting byte-compiled code $file"
    1.51 +		touch "$file" "`basename $file .elc`.el"
    1.52 +		rm -f $file
    1.53 +		status
    1.54 +	done
    1.55 +}
    1.56 +
    1.57 +post_remove()
    1.58 +{
    1.59 +	tazpkg reconfigure emacs
    1.60 +}