wok-next diff emacs/receipt @ rev 3939

emacs 23.1: small adjustments
author Dominique Corbex <domcox@users.sourceforge.net>
date Sat Aug 22 11:15:56 2009 +0200 (2009-08-22)
parents 6aae08641f1e
children 0588160a6878
line diff
     1.1 --- a/emacs/receipt	Fri Aug 21 21:49:57 2009 +0200
     1.2 +++ b/emacs/receipt	Sat Aug 22 11:15:56 2009 +0200
     1.3 @@ -1,7 +1,5 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6 -PACKED_SIZE="16.0M"
     1.7 -UNPACKED_SIZE="57.6M"
     1.8  PACKAGE="emacs"
     1.9  VERSION="23.1"
    1.10  CATEGORY="development"
    1.11 @@ -112,7 +110,7 @@
    1.12  	XPM_DIR="	images images/custom images/ezimage images/gnus images/gud images/mail images/smilies \
    1.13  				images/smilies/grayscale images/smilies/medium images/tree-widget/default images/tree-widget/folder"
    1.14  	for dir in $XPM_DIR; do
    1.15 -		echo -n "Copying $dir files"
    1.16 +		echo -n "Copying $dir xpm files"
    1.17  		mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
    1.18  		cp $_pkg/usr/share/$PACKAGE/$VERSION/etc/$dir/*.xpm $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
    1.19  		for file in COPYING README TODO; do
    1.20 @@ -122,6 +120,12 @@
    1.21  		done
    1.22  		status
    1.23  	done
    1.24 +	PNG_DIR="	images images/gnus images/tree-widget/default images/tree-widget/folder"
    1.25 +	for dir in $PNG_DIR; do
    1.26 +		echo -n "Copying $dir png files"
    1.27 +		cp $_pkg/usr/share/$PACKAGE/$VERSION/etc/$dir/*.png $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
    1.28 +		status
    1.29 +	done
    1.30  	# Licence
    1.31  	GNU_FILES="AUTHORS BABYL CENSORSHIP COPYING DISTRIB FTP GNU ORDERS SERVICE copying.paper"
    1.32  	echo -n "Copying License files"
    1.33 @@ -133,7 +137,8 @@
    1.34  	echo -n "Installing specific SliTaz file"
    1.35  	mkdir -p $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
    1.36  	cp -a $_pkg/usr/share/$PACKAGE/site-lisp $fs/usr/share/$PACKAGE && \
    1.37 -	cp -a stuff/slitaz.el $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
    1.38 +	cp -a stuff/default.el $fs/usr/share/$PACKAGE/site-lisp && \
    1.39 +	cp -a stuff/90-slitaz.el $fs/usr/share/$PACKAGE/site-lisp/site-start.d
    1.40  	status
    1.41  	# Install desktop files for emacs
    1.42  	echo -n "Installing emacs menu"
    1.43 @@ -152,6 +157,25 @@
    1.44  	ln -s ../site-lisp site-lisp
    1.45  }
    1.46  
    1.47 +post_install()
    1.48 +{
    1.49 +	cd /usr/share/emacs/site-lisp
    1.50 +	cat <<-EOF >site-start.el
    1.51 +	;; site-start.el for SliTaz			-*- no-byte-compile: t -*-
    1.52 +	;;
    1.53 +	;; (C) GNU gpl v3 - SliTaz GNU/Linux 2009.
    1.54 +	;;
    1.55 +	;; This default site startup file for Emacs was created by tazpkg
    1.56 +	;; reconfigure emacs. You may modify this file, replace it by your
    1.57 +	;; own site initialisation, or even remove it completely.
    1.58 +	;;
    1.59 +	EOF
    1.60 +	START_FILES=`ls site-start.d/ | sort`
    1.61 +	for file in $START_FILES; do
    1.62 +	    cat site-start.d/$file >> site-start.el
    1.63 +	done
    1.64 +}
    1.65 +
    1.66  post_remove()
    1.67  {
    1.68  	rm -rf /usr/share/emacs