wok-next rev 20079

Up emacs (2.53)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 25 11:21:45 2017 +0200 (2017-10-25)
parents 6b9ba3a24c77
children 09e6af9cb070
files emacs-help/receipt emacs-lisp-sources/receipt emacs/receipt
line diff
     1.1 --- a/emacs-help/receipt	Wed Oct 25 11:19:15 2017 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,46 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="emacs-help"
     1.7 -VERSION="24.3"
     1.8 -CATEGORY="development"
     1.9 -SHORT_DESC="The GNU Emacs editor - Help files"
    1.10 -MAINTAINER="domcox@slitaz.org"
    1.11 -LICENSE="GPL3"
    1.12 -WEB_SITE="http://www.gnu.org/software/emacs/"
    1.13 -WANTED="emacs"
    1.14 -
    1.15 -DEPENDS="emacs"
    1.16 -
    1.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 -genpkg_rules()
    1.19 -{
    1.20 -	# Help files
    1.21 -	echo -n "Copying info files"
    1.22 -	mkdir -p $fs/usr/share/info && \
    1.23 -	cp -a $install/usr/share/info/* $fs/usr/share/info && \
    1.24 -	status
    1.25 -	# Tutorial
    1.26 -	echo -n "Copying tutorial files"
    1.27 -	mkdir -p $fs/usr/share/emacs/$VERSION/etc && \
    1.28 -	cp -a $install/usr/share/emacs/$VERSION/etc/tutorials \
    1.29 -		$fs/usr/share/emacs/$VERSION/etc
    1.30 -	status
    1.31 -	# refcards
    1.32 -	echo -n "Copying refcards"
    1.33 -	mkdir -p $fs/usr/share/emacs/$VERSION/etc/refcards && \
    1.34 -	cp -a  $install/usr/share/emacs/$VERSION/etc/refcards/*pdf \
    1.35 -		$fs/usr/share/emacs/$VERSION/etc/refcards
    1.36 -	status
    1.37 -	# Doc
    1.38 -	echo -n "Copying doc files"
    1.39 -	DOC_FILES="COOKIES DOC-$VERSION.1 DEVEL.HUMOR ERC-NEWS ETAGS.EBNF \
    1.40 -GNUS-NEWS HELLO INTERVIEW JOKES LINUX-GNU MH-E-NEWS MORE.STUFF MOTIVATION \
    1.41 -NEWS.* NXML-NEWS ORG-NEWS PROBLEMS TERMS THE-GNU-PROJECT WHY-FREE \
    1.42 -compilation.txt gnus-tut.txt grep.txt"
    1.43 -	for file in $DOC_FILES; do
    1.44 -		cp -a $install/usr/share/emacs/$VERSION/etc/$file \
    1.45 -			$fs/usr/share/emacs/$VERSION/etc
    1.46 -	done
    1.47 -	status
    1.48 -}
    1.49 -
     2.1 --- a/emacs-lisp-sources/receipt	Wed Oct 25 11:19:15 2017 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,65 +0,0 @@
     2.4 -# SliTaz package receipt.
     2.5 -
     2.6 -PACKAGE="emacs-lisp-sources"
     2.7 -VERSION="24.3"
     2.8 -CATEGORY="development"
     2.9 -SHORT_DESC="The GNU Emacs editor - Lisp source files"
    2.10 -MAINTAINER="domcox@slitaz.org"
    2.11 -LICENSE="GPL3"
    2.12 -WEB_SITE="http://www.gnu.org/software/emacs/"
    2.13 -WANTED="emacs"
    2.14 -
    2.15 -DEPENDS="emacs"
    2.16 -
    2.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.18 -genpkg_rules()
    2.19 -{
    2.20 -	# lisp files
    2.21 -	LISP_DIR="lisp lisp/calc lisp/calendar lisp/cedet lisp/cedet/ede \
    2.22 -lisp/cedet/semantic lisp/cedet/semantic/analyze lisp/cedet/semantic/bovine \
    2.23 -lisp/cedet/semantic/decorate lisp/cedet/semantic/symref lisp/cedet/srecode \
    2.24 -lisp/cedet/semantic/wisent lisp/emacs-lisp lisp/emulation lisp/erc lisp/eshell \
    2.25 -lisp/gnus lisp/international lisp/language lisp/mail lisp/mh-e lisp/net \
    2.26 -lisp/nxml lisp/obsolete lisp/org lisp/play lisp/progmodes lisp/textmodes \
    2.27 -lisp/url lisp/vc"
    2.28 -
    2.29 -	for dir in $LISP_DIR; do
    2.30 -		echo -n "Copying $dir sources"
    2.31 -		mkdir -p $fs/usr/share/$WANTED/$VERSION/$dir && \
    2.32 -		cp -a $install/usr/share/$WANTED/$VERSION/$dir/*.el.gz \
    2.33 -			$fs/usr/share/$WANTED/$VERSION/$dir
    2.34 -		status
    2.35 -	done
    2.36 -	# Use linux term only
    2.37 -	LINUX_TERM="rxvt.el.gz tty-colors.el.gz vt100.el.gz xterm.el.gz"
    2.38 -	echo -n "Copying lisp/term sources"
    2.39 -	mkdir -p $fs/usr/share/$WANTED/$VERSION/lisp/term && \
    2.40 -	for file in $LINUX_TERM; do
    2.41 -		cp -a $install/usr/share/$WANTED/$VERSION/lisp/term/$file \
    2.42 -			$fs/usr/share/$WANTED/$VERSION/lisp/term
    2.43 -	done
    2.44 -	status
    2.45 -	# leim files
    2.46 -	LEIM_FILES="leim/ja-dic leim/quail"
    2.47 -	for dir in $LEIM_FILES; do
    2.48 -		echo -n "Copying $dir sources"
    2.49 -		mkdir -p $fs/usr/share/$WANTED/$VERSION/$dir && \
    2.50 -		cp -a $install/usr/share/$WANTED/$VERSION/$dir/*.el.gz \
    2.51 -			$fs/usr/share/$WANTED/$VERSION/$dir && \
    2.52 -		status
    2.53 -	done
    2.54 -	# refcards
    2.55 -	echo -n "Copying refcards sources"
    2.56 -	mkdir -p $fs/usr/share/$WANTED/$VERSION/etc/refcards
    2.57 -	cp -a $install/usr/share/$WANTED/$VERSION/etc/refcards/*tex \
    2.58 -		$fs/usr/share/$WANTED/$VERSION/etc/refcards
    2.59 -	status
    2.60 -	# Doc
    2.61 -	echo -n "Copying doc files"
    2.62 -	DOC_FILES="CONTRIBUTE DEBUG MACHINES MAILINGLISTS TODO"
    2.63 -	for file in $DOC_FILES; do
    2.64 -		cp -a $install/usr/share/emacs/$VERSION/etc/$file \
    2.65 -			$fs/usr/share/emacs/$VERSION/etc
    2.66 -	done
    2.67 -	status
    2.68 -}
     3.1 --- a/emacs/receipt	Wed Oct 25 11:19:15 2017 +0200
     3.2 +++ b/emacs/receipt	Wed Oct 25 11:21:45 2017 +0200
     3.3 @@ -1,33 +1,25 @@
     3.4 -# SliTaz package receipt.
     3.5 +# SliTaz package receipt v2.
     3.6  
     3.7  PACKAGE="emacs"
     3.8 -VERSION="24.3"
     3.9 +VERSION="25.3"
    3.10  CATEGORY="editors"
    3.11  SHORT_DESC="The GNU Emacs editor"
    3.12  MAINTAINER="domcox@slitaz.org"
    3.13  LICENSE="GPL3"
    3.14 -SUGGESTED="alsa-lib"
    3.15  TARBALL="$PACKAGE-$VERSION.tar.xz"
    3.16  WEB_SITE="http://www.gnu.org/software/emacs/"
    3.17  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    3.18 -TAGS="text-editor"
    3.19  
    3.20 -DEPENDS="atk cairo dbus expat freetype fontconfig giflib glib gnutls gtk+ jpeg \
    3.21 -libpng librsvg util-linux-uuid ncurses pango tiff xorg-server zlib \
    3.22 -librsvg libgsf libgnutls harfbuzz"
    3.23  BUILD_DEPENDS="atk-dev cairo-dev expat-dev dbus-dev freetype-dev \
    3.24  fontconfig-dev glib-dev gnutls-dev gtk+-dev jpeg-dev \
    3.25  libpng-dev librsvg-dev ncurses-dev pango-dev pkg-config tiff-dev xorg-dev \
    3.26  xorg-dev-proto" # giflib-dev: version 4 needed, add --with-gif=no)
    3.27 +SPLIT="emacs-help emacs-lisp-sources"
    3.28  
    3.29  # Rules to configure and make the package.
    3.30  compile_rules()
    3.31  {
    3.32 -	# Gzip workaround in busybox
    3.33 -	sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' Makefile.in
    3.34 -	sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' leim/Makefile.in
    3.35 -	# Configure (with GCC 4.5.0 workaround)
    3.36 -	CFLAGS="-g -O2 -fno-optimize-sibling-calls" ./configure $CONFIGURE_ARGS \
    3.37 +	./configure $CONFIGURE_ARGS \
    3.38  		--infodir=/usr/share/info \
    3.39  		--mandir=/usr/share/man \
    3.40  		--without-makeinfo \
    3.41 @@ -48,150 +40,195 @@
    3.42  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.43  genpkg_rules()
    3.44  {
    3.45 -	# Binary files
    3.46 -	BIN_FILES="ctags ebrowse emacs-$VERSION emacsclient etags grep-changelog"
    3.47 -	echo -n "Copying emacs binary files"
    3.48 -	mkdir -p $fs/usr/bin && \
    3.49 -	for file in $BIN_FILES; do
    3.50 -		cp -a $install/usr/bin/$file $fs/usr/bin
    3.51 -	done
    3.52 -	status
    3.53 -	# Lib files
    3.54 -	echo -n "Copying emacs lib files"
    3.55 -	cp -a $install/usr/lib $fs/usr
    3.56 -	status
    3.57 -	strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* 2> /dev/null
    3.58 -	# lisp files
    3.59 -	LISP_DIR="lisp lisp/calc lisp/calendar lisp/cedet lisp/cedet/ede \
    3.60 +	case $PACKAGE in
    3.61 +	emacs)
    3.62 +		SUGGESTED="alsa-lib"
    3.63 +		TAGS="text-editor"
    3.64 +		DEPENDS="atk cairo dbus expat freetype fontconfig giflib glib \
    3.65 +			gnutls gtk+ jpeg libpng librsvg util-linux-uuid \
    3.66 +			ncurses pango tiff xorg-server zlib librsvg libgsf \
    3.67 +			libgnutls harfbuzz"
    3.68 +		# Binary files
    3.69 +		BIN_FILES="ctags ebrowse emacs-$VERSION emacsclient etags"
    3.70 +		echo -n "Copying emacs binary files"
    3.71 +		mkdir -p $fs/usr/bin && \
    3.72 +		for file in $BIN_FILES; do
    3.73 +			cp -a $install/usr/bin/$file $fs/usr/bin
    3.74 +		done
    3.75 +		status
    3.76 +		# Lib files
    3.77 +		echo -n "Copying emacs lib files"
    3.78 +		cp -a $install/usr/lib $fs/usr
    3.79 +		status
    3.80 +		strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* 2> /dev/null
    3.81 +		# lisp files
    3.82 +		LISP_DIR="lisp lisp/calc lisp/calendar lisp/cedet lisp/cedet/ede \
    3.83  lisp/cedet/semantic lisp/cedet/semantic/analyze lisp/cedet/semantic/bovine \
    3.84  lisp/cedet/semantic/decorate lisp/cedet/semantic/symref lisp/cedet/srecode \
    3.85  lisp/cedet/semantic/wisent lisp/emacs-lisp lisp/emulation lisp/erc lisp/eshell \
    3.86  lisp/gnus lisp/international lisp/language lisp/mail lisp/mh-e lisp/net \
    3.87  lisp/nxml lisp/obsolete lisp/org lisp/play lisp/progmodes lisp/textmodes \
    3.88  lisp/url lisp/vc"
    3.89 -	for dir in $LISP_DIR; do
    3.90 -		echo -n "Copying $dir files"
    3.91 -		mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \
    3.92 -		cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \
    3.93 -			$fs/usr/share/$PACKAGE/$VERSION/$dir
    3.94 -		if [ $(ls $install/usr/share/$PACKAGE/$VERSION/$dir/ | \
    3.95 -grep -c \.el$) -gt 0 ]; then
    3.96 -			cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.el \
    3.97 +		for dir in $LISP_DIR; do
    3.98 +			echo -n "Copying $dir files"
    3.99 +			mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \
   3.100 +			cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \
   3.101  				$fs/usr/share/$PACKAGE/$VERSION/$dir
   3.102 -		fi
   3.103 -		for file in COPYING README TODO; do
   3.104 -			if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
   3.105 -				cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
   3.106 +			if [ $(ls $install/usr/share/$PACKAGE/$VERSION/$dir/ | \
   3.107 +					grep -c \.el$) -gt 0 ]; then
   3.108 +				cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.el \
   3.109  					$fs/usr/share/$PACKAGE/$VERSION/$dir
   3.110  			fi
   3.111 +			for file in COPYING README TODO; do
   3.112 +				if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
   3.113 +					cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
   3.114 +						$fs/usr/share/$PACKAGE/$VERSION/$dir
   3.115 +				fi
   3.116 +			done
   3.117 +			status
   3.118 +		done
   3.119 +		# Use linux term only
   3.120 +		LINUX_TERM="README linux.e* rxvt.elc tty-colors.elc vt100.elc xterm.elc"
   3.121 +		echo -n "Copying lisp/term files (linux only)"
   3.122 +		mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/term && \
   3.123 +		for file in $LINUX_TERM; do
   3.124 +			cp -a $install/usr/share/$PACKAGE/$VERSION/lisp/term/$file \
   3.125 +				$fs/usr/share/$PACKAGE/$VERSION/lisp/term
   3.126  		done
   3.127  		status
   3.128 -	done
   3.129 -	# Use linux term only
   3.130 -	LINUX_TERM="README linux.e* rxvt.elc tty-colors.elc vt100.elc xterm.elc"
   3.131 -	echo -n "Copying lisp/term files (linux only)"
   3.132 -	mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/term && \
   3.133 -	for file in $LINUX_TERM; do
   3.134 -		cp -a $install/usr/share/$PACKAGE/$VERSION/lisp/term/$file \
   3.135 -			$fs/usr/share/$PACKAGE/$VERSION/lisp/term
   3.136 -	done
   3.137 -	status
   3.138 -	# leim files
   3.139 -	echo -n "Copying leim files"
   3.140 -	mkdir -p $fs/usr/share/$PACKAGE/$VERSION/leim && \
   3.141 -	cp -a $install/usr/share/$PACKAGE/$VERSION/leim/*.el \
   3.142 -		$fs/usr/share/$PACKAGE/$VERSION/leim
   3.143 -	status
   3.144 -	LEIM_FILES="leim/ja-dic leim/quail"
   3.145 -	for dir in $LEIM_FILES; do
   3.146 -		echo -n "Copying $dir files"
   3.147 -		mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \
   3.148 -		cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \
   3.149 -			$fs/usr/share/$PACKAGE/$VERSION/$dir && \
   3.150 -		for file in COPYING README TODO; do
   3.151 -			if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
   3.152 -				cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
   3.153 -					$fs/usr/share/$PACKAGE/$VERSION/$dir
   3.154 -			fi
   3.155 +		LEIM_FILES="leim/ja-dic leim/quail"
   3.156 +		for dir in $LEIM_FILES; do
   3.157 +			echo -n "Copying $dir files"
   3.158 +			mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/$dir && \
   3.159 +			cp -a $install/usr/share/$PACKAGE/$VERSION/lisp/$dir/*.elc \
   3.160 +				$fs/usr/share/$PACKAGE/$VERSION/lisp/$dir && \
   3.161 +			status
   3.162 +		done
   3.163 +		# Conf files
   3.164 +		echo -n "Copying conf files"
   3.165 +		CONF_FILES="ETAGS.README charsets e enriched.txt edt-user.el forms \
   3.166 +emacs-buffer.gdb gnus nxml org schema srecode ps-prin0.ps \
   3.167 +ps-prin1.ps ses-example.ses spook.lines themes yow.lines"
   3.168 +		mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc && \
   3.169 +		for file in $CONF_FILES; do
   3.170 +			cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
   3.171 +				$fs/usr/share/$PACKAGE/$VERSION/etc
   3.172  		done
   3.173  		status
   3.174 -	done
   3.175 -	# Conf files
   3.176 -	echo -n "Copying conf files"
   3.177 -	CONF_FILES="ETAGS.README charsets e enriched.doc edt-user.el forms \
   3.178 -emacs-buffer.gdb gnus nxml org schema srecode ps-prin0.ps \
   3.179 -ps-prin1.ps ses-example.ses spook.lines themes yow.lines"
   3.180 -	mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc && \
   3.181 -	for file in $CONF_FILES; do
   3.182 -		cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
   3.183 -			$fs/usr/share/$PACKAGE/$VERSION/etc
   3.184 -	done
   3.185 -	status
   3.186 -	# Pixmaps files
   3.187 -	XPM_DIR="images images/custom images/ezimage images/gnus images/gud \
   3.188 +		# Pixmaps files
   3.189 +		XPM_DIR="images images/custom images/ezimage images/gnus images/gud \
   3.190  images/icons/allout-widgets/*-bg images/low-color images/mail images/mpc \
   3.191  images/newsticker images/smilies images/smilies/grayscale \
   3.192  images/smilies/medium images/tree-widget/default images/tree-widget/folder"
   3.193 -	for dir in $XPM_DIR; do
   3.194 -		echo -n "Copying $dir xpm files"
   3.195 -		mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
   3.196 -		cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.xpm \
   3.197 -			$fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
   3.198 -		for file in COPYING README TODO; do
   3.199 -			if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
   3.200 -				cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
   3.201 -					$fs/usr/share/$PACKAGE/$VERSION/$dir
   3.202 -			fi
   3.203 +		for dir in $XPM_DIR; do
   3.204 +			echo -n "Copying $dir xpm files"
   3.205 +			mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
   3.206 +			cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.xpm \
   3.207 +				$fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
   3.208 +			for file in COPYING README TODO; do
   3.209 +				if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
   3.210 +					cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
   3.211 +						$fs/usr/share/$PACKAGE/$VERSION/$dir
   3.212 +				fi
   3.213 +			done
   3.214 +			status
   3.215 +		done
   3.216 +		echo -n "Copying png files"
   3.217 +		( cd $install/usr/share/$PACKAGE/$VERSION/etc
   3.218 +		  find -type f -name '*.png' | cpio -o -H newc ) |
   3.219 +		( cd $fs/usr/share/$PACKAGE/$VERSION/etc ; cpio -id )
   3.220 +		status
   3.221 +		# Licence
   3.222 +		GNU_FILES="AUTHORS CENSORSHIP COPYING DISTRIB FTP GNU ORDERS README"
   3.223 +		echo -n "Copying License files"
   3.224 +		for file in $GNU_FILES; do
   3.225 +			cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
   3.226 +				$fs/usr/share/$PACKAGE/$VERSION/etc
   3.227  		done
   3.228  		status
   3.229 -	done
   3.230 -	PNG_DIR="images images/gnus images/icons/allout-widgets/*-bg \
   3.231 -images/tree-widget/default images/tree-widget/folder"
   3.232 -	for dir in $PNG_DIR; do
   3.233 -		echo -n "Copying $dir png files"
   3.234 -		cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.png \
   3.235 -			$fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
   3.236 +		# Install specific site file
   3.237 +		echo -n "Installing specific SliTaz file"
   3.238 +		cp -a $install/usr/share/$PACKAGE/$VERSION/site-lisp \
   3.239 +			$fs/usr/share/$PACKAGE && \
   3.240 +		mkdir -p $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
   3.241 +		cp -a $stuff/default.el $stuff/site-start.el \
   3.242 +			$fs/usr/share/$PACKAGE/site-lisp && \
   3.243 +		cp -a $stuff/90-slitaz.el \
   3.244 +			$fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
   3.245  		status
   3.246 -	done
   3.247 -	# Licence
   3.248 -	GNU_FILES="AUTHORS CENSORSHIP COPYING DISTRIB FTP GNU ORDERS README \
   3.249 -SERVICE copying.paper"
   3.250 -	echo -n "Copying License files"
   3.251 -	for file in $GNU_FILES; do
   3.252 -		cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
   3.253 -			$fs/usr/share/$PACKAGE/$VERSION/etc
   3.254 -	done
   3.255 -	status
   3.256 -	# Install specific site file
   3.257 -	echo -n "Installing specific SliTaz file"
   3.258 -	cp -a $install/usr/share/$PACKAGE/$VERSION/site-lisp \
   3.259 -		$fs/usr/share/$PACKAGE && \
   3.260 -	mkdir -p $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
   3.261 -	cp -a $stuff/default.el $stuff/site-start.el \
   3.262 -		$fs/usr/share/$PACKAGE/site-lisp && \
   3.263 -	cp -a $stuff/90-slitaz.el \
   3.264 -		$fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
   3.265 -	status
   3.266 -	# Install desktop files for emacs
   3.267 -	echo -n "Installing emacs menu"
   3.268 -	mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications && \
   3.269 -	cp -a $install/usr/share/applications $fs/usr/share/ && \
   3.270 -	cp -a $install/usr/share/icons/hicolor/32x32/apps/emacs.png \
   3.271 -		$fs/usr/share/pixmaps
   3.272 -	status
   3.273 -	# Use default site-lisp
   3.274 -	cd $fs/usr/share/$PACKAGE/$VERSION
   3.275 -	ln -s ../site-lisp site-lisp
   3.276 +		# Install desktop files for emacs
   3.277 +		echo -n "Installing emacs menu"
   3.278 +		mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications && \
   3.279 +		cp -a $install/usr/share/applications $fs/usr/share/ && \
   3.280 +		cp -a $install/usr/share/icons/hicolor/32x32/apps/emacs.png \
   3.281 +			$fs/usr/share/pixmaps
   3.282 +		status
   3.283 +		# Use default site-lisp
   3.284 +		cd $fs/usr/share/$PACKAGE/$VERSION
   3.285 +		ln -s ../site-lisp site-lisp
   3.286 +		;;
   3.287 +	emacs-help)
   3.288 +		CAT="development|The GNU Emacs editor - Help files"
   3.289 +		DEPENDS="emacs"
   3.290 +		# Help files
   3.291 +		echo -n "Copying info files"
   3.292 +		mkdir -p $fs/usr/share/info && \
   3.293 +		cp -a $install/usr/share/info/* $fs/usr/share/info && \
   3.294 +		status
   3.295 +		# Tutorial
   3.296 +		echo -n "Copying tutorial files"
   3.297 +		mkdir -p $fs/usr/share/emacs/$VERSION/etc && \
   3.298 +		cp -a $install/usr/share/emacs/$VERSION/etc/tutorials \
   3.299 +			$fs/usr/share/emacs/$VERSION/etc
   3.300 +		status
   3.301 +		# refcards
   3.302 +		echo -n "Copying refcards"
   3.303 +		mkdir -p $fs/usr/share/emacs/$VERSION/etc/refcards && \
   3.304 +		cp -a  $install/usr/share/emacs/$VERSION/etc/refcards/*pdf \
   3.305 +			$fs/usr/share/emacs/$VERSION/etc/refcards
   3.306 +		status
   3.307 +		# Doc
   3.308 +		echo -n "Copying doc files"
   3.309 +		cp -a $install/usr/share/emacs/$VERSION/etc/[A-Z]* \
   3.310 +			$fs/usr/share/emacs/$VERSION/etc
   3.311 +		cp -a $install/usr/share/emacs/$VERSION/etc/*.txt \
   3.312 +			$fs/usr/share/emacs/$VERSION/etc
   3.313 +		status
   3.314 +		;;
   3.315 +	emacs-lisp-sources)
   3.316 +		CAT="development|The GNU Emacs editor - Lisp source files"
   3.317 +		DEPENDS="emacs"
   3.318 +		# lisp files
   3.319 +		echo -n "Copying sources"
   3.320 +		( cd $install/usr/share/$PACKAGE/$VERSION/etc/lisp
   3.321 +		  find -type f -name '*.el.gz' | cpio -o -H newc ) |
   3.322 +		( cd $fs/usr/share/$PACKAGE/$VERSION/etc/list ; cpio -id )
   3.323 +		# refcards
   3.324 +		echo -n "Copying refcards sources"
   3.325 +		mkdir -p $fs/usr/share/$WANTED/$VERSION/etc/refcards
   3.326 +		cp -a $install/usr/share/$WANTED/$VERSION/etc/refcards/*tex \
   3.327 +			$fs/usr/share/$WANTED/$VERSION/etc/refcards
   3.328 +		status
   3.329 +		# Doc
   3.330 +		echo -n "Copying doc files"
   3.331 +		DOC_FILES="DEBUG MACHINES TODO"
   3.332 +		for file in $DOC_FILES; do
   3.333 +			cp -a $install/usr/share/emacs/$VERSION/etc/$file \
   3.334 +				$fs/usr/share/emacs/$VERSION/etc
   3.335 +		done
   3.336 +		status
   3.337 +		;;
   3.338 +	esac
   3.339  }
   3.340  
   3.341 -post_install()
   3.342 +post_install_emacs()
   3.343  {
   3.344  	# linking /usr/bin/emacs to new version
   3.345  	[ -h "$1/usr/bin/emacs" ] && rm -f "$1/usr/bin/emacs"
   3.346  	ln -s /usr/bin/emacs-$VERSION "$1/usr/bin/emacs"
   3.347  }
   3.348  
   3.349 -post_remove()
   3.350 +post_remove_emacs()
   3.351  {
   3.352  	rm -rf "$1/usr/share/emacs"
   3.353  	rm -rf "$1/usr/lib/emacs"