wok-6.x rev 22689

updated emacs (24.3 -> 26.3)
author Hans-G?nter Theisgen
date Mon Jan 20 16:49:20 2020 +0100 (2020-01-20)
parents 151ac8f3d1bd
children 4bd6f9e1ae03
files emacs/receipt
line diff
     1.1 --- a/emacs/receipt	Mon Jan 20 09:41:56 2020 +0100
     1.2 +++ b/emacs/receipt	Mon Jan 20 16:49:20 2020 +0100
     1.3 @@ -1,24 +1,25 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="emacs"
     1.7 -VERSION="24.3"
     1.8 +VERSION="26.3"
     1.9  CATEGORY="editors"
    1.10 -SHORT_DESC="The GNU Emacs editor"
    1.11 +TAGS="text-editor"
    1.12 +SHORT_DESC="The GNU Emacs editor."
    1.13  MAINTAINER="domcox@slitaz.org"
    1.14  LICENSE="GPL3"
    1.15 +WEB_SITE="https://www.gnu.org/software/emacs/"
    1.16 +
    1.17 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.18 +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    1.19 +
    1.20  SUGGESTED="alsa-lib"
    1.21 -TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.22 -WEB_SITE="http://www.gnu.org/software/emacs/"
    1.23 -WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    1.24 -TAGS="text-editor"
    1.25 -
    1.26 -DEPENDS="atk cairo dbus expat freetype fontconfig giflib glib gnutls gtk+ jpeg \
    1.27 -libgio libpng util-linux-uuid ncurses pango tiff xorg-server zlib \
    1.28 -librsvg libgsf libtinfo libgnutls harfbuzz"
    1.29 -BUILD_DEPENDS="atk-dev cairo-dev expat-dev dbus-dev freetype-dev \
    1.30 -fontconfig-dev giflib-dev glib-dev gnutls-dev gtk+-dev jpeg-dev libgio-dev \
    1.31 -libpng-dev librsvg-dev ncurses-dev pango-dev pkg-config tiff-dev xorg-dev \
    1.32 -xorg-dev-proto libgnutls"
    1.33 +DEPENDS="atk cairo dbus expat fontconfig freetype giflib glib gnutls gtk+ 
    1.34 +	harfbuzz jpeg libgio libgnutls libgsf libpng librsvg libtinfo ncurses 
    1.35 +	pango tiff util-linux-uuid xorg-server zlib"
    1.36 +BUILD_DEPENDS="atk-dev cairo-dev dbus-dev expat-dev fontconfig-dev freetype-dev 
    1.37 +	giflib-dev glib-dev gnutls-dev gtk+-dev jpeg-dev libgio-dev libgnutls 
    1.38 +	libpng-dev librsvg-dev ncurses-dev pango-dev pkg-config tiff-dev xorg-dev 
    1.39 +	xorg-dev-proto"
    1.40  
    1.41  # Rules to configure and make the package.
    1.42  compile_rules()
    1.43 @@ -30,21 +31,24 @@
    1.44  	# Gzip workaround in busybox
    1.45  	sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' Makefile.in
    1.46  	sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' leim/Makefile.in
    1.47 +
    1.48  	# Configure (with GCC 4.5.0 workaround)
    1.49 -	CFLAGS="-g -O2 -fno-optimize-sibling-calls" ./configure $CONFIGURE_ARGS \
    1.50 -		--infodir=/usr/share/info \
    1.51 -		--mandir=/usr/share/man \
    1.52 -		--without-makeinfo \
    1.53 -		--without-gconf \
    1.54 -		--with-sound \
    1.55 -		--with-x \
    1.56 -		--with-toolkit-scroll-bars \
    1.57 -		--with-xpm=yes \
    1.58 -		--libexecdir=/usr/lib \
    1.59 -		--localstatedir=/var/lib \
    1.60 -		--sharedstatedir=/var/lib \
    1.61 -		--prefix=/usr && \
    1.62 -	make $MAKEFLAGS && \
    1.63 +	./configure						\
    1.64 +		CFLAGS="-g -O2 -fno-optimize-sibling-calls"	\
    1.65 +		--infodir=/usr/share/info			\
    1.66 +		--mandir=/usr/share/man				\
    1.67 +		--without-makeinfo				\
    1.68 +		--without-gconf					\
    1.69 +		--with-sound					\
    1.70 +		--with-x					\
    1.71 +		--with-toolkit-scroll-bars			\
    1.72 +		--with-xpm=yes					\
    1.73 +		--libexecdir=/usr/lib				\
    1.74 +		--localstatedir=/var/lib			\
    1.75 +		--sharedstatedir=/var/lib			\
    1.76 +		--prefix=/usr					\
    1.77 +		$CONFIGURE_ARGS &&
    1.78 +	make $MAKEFLAGS &&
    1.79  	make DESTDIR=$DESTDIR install
    1.80  }
    1.81  
    1.82 @@ -52,20 +56,23 @@
    1.83  genpkg_rules()
    1.84  {
    1.85  	# Binary files
    1.86 -	BIN_FILES="ctags ebrowse emacs-$VERSION emacsclient etags grep-changelog"
    1.87 +	BIN_FILES="ctags ebrowse emacs-$VERSION emacsclient etags"
    1.88  	echo -n "Copying emacs binary files"
    1.89 -	mkdir -p $fs/usr/bin && \
    1.90 -	for file in $BIN_FILES; do
    1.91 -		cp -a $install/usr/bin/$file $fs/usr/bin
    1.92 -	done
    1.93 +	mkdir -p $fs/usr/bin &&
    1.94 +	for file in $BIN_FILES
    1.95 +	  do
    1.96 +		cp -a $install/usr/bin/$file	$fs/usr/bin
    1.97 +	  done
    1.98  	status
    1.99 -	ln -s /usr/bin/emacs-$VERSION $fs/usr/bin/emacs
   1.100 -	ln -s /usr/bin/emacs-$VERSION $fs/usr/bin/xemacs
   1.101 -	# Lib files
   1.102 -	echo -n "Copying emacs lib files"
   1.103 -	cp -a $install/usr/lib $fs/usr
   1.104 +	ln -s /usr/bin/emacs-$VERSION		$fs/usr/bin/emacs
   1.105 +	ln -s /usr/bin/emacs-$VERSION		$fs/usr/bin/xemacs
   1.106 +
   1.107 +	# Libraries
   1.108 +	echo -n "Copying emacs libraries"
   1.109 +	cp -a $install/usr/lib			$fs/usr
   1.110  	status
   1.111  	strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* 2> /dev/null
   1.112 +
   1.113  	# lisp files
   1.114  	LISP_DIR="lisp lisp/calc lisp/calendar lisp/cedet lisp/cedet/ede \
   1.115  lisp/cedet/semantic lisp/cedet/semantic/analyze lisp/cedet/semantic/bovine \
   1.116 @@ -74,118 +81,139 @@
   1.117  lisp/gnus lisp/international lisp/language lisp/mail lisp/mh-e lisp/net \
   1.118  lisp/nxml lisp/obsolete lisp/org lisp/play lisp/progmodes lisp/textmodes \
   1.119  lisp/url lisp/vc"
   1.120 -	for dir in $LISP_DIR; do
   1.121 +	for dir in $LISP_DIR
   1.122 +	  do
   1.123  		echo -n "Copying $dir files"
   1.124 -		mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \
   1.125 +		mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir &&
   1.126  		cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \
   1.127  			$fs/usr/share/$PACKAGE/$VERSION/$dir
   1.128  		if [ $(ls $install/usr/share/$PACKAGE/$VERSION/$dir/ | \
   1.129 -grep -c \.el$) -gt 0 ]; then
   1.130 +grep -c \.el$) -gt 0 ]
   1.131 +		  then
   1.132  			cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.el \
   1.133  				$fs/usr/share/$PACKAGE/$VERSION/$dir
   1.134  		fi
   1.135 -		for file in COPYING README TODO; do
   1.136 -			if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
   1.137 +		for file in COPYING README TODO
   1.138 +		  do
   1.139 +			if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]
   1.140 +			  then
   1.141  				cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
   1.142  					$fs/usr/share/$PACKAGE/$VERSION/$dir
   1.143  			fi
   1.144 -		done
   1.145 +		  done
   1.146  		status
   1.147 -	done
   1.148 -	# Use linux term only
   1.149 +	  done
   1.150 +
   1.151 +	# Use linux terminal only
   1.152  	LINUX_TERM="README linux.e* rxvt.elc tty-colors.elc vt100.elc xterm.elc"
   1.153  	echo -n "Copying lisp/term files (linux only)"
   1.154 -	mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/term && \
   1.155 -	for file in $LINUX_TERM; do
   1.156 +	mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/term &&
   1.157 +	for file in $LINUX_TERM
   1.158 +	  do
   1.159  		cp -a $install/usr/share/$PACKAGE/$VERSION/lisp/term/$file \
   1.160  			$fs/usr/share/$PACKAGE/$VERSION/lisp/term
   1.161 -	done
   1.162 +	  done
   1.163  	status
   1.164 +
   1.165  	# leim files
   1.166  	echo -n "Copying leim files"
   1.167 -	mkdir -p $fs/usr/share/$PACKAGE/$VERSION/leim && \
   1.168 +	mkdir -p $fs/usr/share/$PACKAGE/$VERSION/leim &&
   1.169  	cp -a $install/usr/share/$PACKAGE/$VERSION/leim/*.el \
   1.170 -		$fs/usr/share/$PACKAGE/$VERSION/leim
   1.171 +			$fs/usr/share/$PACKAGE/$VERSION/leim
   1.172  	status
   1.173  	LEIM_FILES="leim/ja-dic leim/quail"
   1.174 -	for dir in $LEIM_FILES; do
   1.175 +	for dir in $LEIM_FILES
   1.176 +	  do
   1.177  		echo -n "Copying $dir files"
   1.178 -		mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \
   1.179 +		mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir &&
   1.180  		cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \
   1.181  			$fs/usr/share/$PACKAGE/$VERSION/$dir && \
   1.182 -		for file in COPYING README TODO; do
   1.183 -			if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
   1.184 +		for file in COPYING README TODO
   1.185 +		  do
   1.186 +			if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]
   1.187 +			  then
   1.188  				cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
   1.189  					$fs/usr/share/$PACKAGE/$VERSION/$dir
   1.190  			fi
   1.191 -		done
   1.192 +		  done
   1.193  		status
   1.194 -	done
   1.195 -	# Conf files
   1.196 -	echo -n "Copying conf files"
   1.197 -	CONF_FILES="ETAGS.README charsets e enriched.doc edt-user.el forms \
   1.198 +	  done
   1.199 +
   1.200 +	# Configuration files
   1.201 +	echo -n "Copying configuration files"
   1.202 +	CONF_FILES="ETAGS.README charsets e edt-user.el forms \
   1.203  emacs-buffer.gdb gnus nxml org schema srecode ps-prin0.ps \
   1.204  ps-prin1.ps ses-example.ses spook.lines themes yow.lines"
   1.205 -	mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc && \
   1.206 -	for file in $CONF_FILES; do
   1.207 +	mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc &&
   1.208 +	for file in $CONF_FILES
   1.209 +	  do
   1.210  		cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
   1.211  			$fs/usr/share/$PACKAGE/$VERSION/etc
   1.212 -	done
   1.213 +	  done
   1.214  	status
   1.215 +
   1.216  	# Pixmaps files
   1.217  	XPM_DIR="images images/custom images/ezimage images/gnus images/gud \
   1.218  images/icons/allout-widgets/*-bg images/low-color images/mail images/mpc \
   1.219  images/newsticker images/smilies images/smilies/grayscale \
   1.220  images/smilies/medium images/tree-widget/default images/tree-widget/folder"
   1.221 -	for dir in $XPM_DIR; do
   1.222 +	for dir in $XPM_DIR
   1.223 +	  do
   1.224  		echo -n "Copying $dir xpm files"
   1.225 -		mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
   1.226 +		mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir &&
   1.227  		cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.xpm \
   1.228 -			$fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
   1.229 -		for file in COPYING README TODO; do
   1.230 -			if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
   1.231 +			$fs/usr/share/$PACKAGE/$VERSION/etc/$dir &&
   1.232 +		for file in COPYING README TODO
   1.233 +		  do
   1.234 +			if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]
   1.235 +			  then
   1.236  				cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
   1.237  					$fs/usr/share/$PACKAGE/$VERSION/$dir
   1.238  			fi
   1.239 -		done
   1.240 +		  done
   1.241  		status
   1.242 -	done
   1.243 +	  done
   1.244  	PNG_DIR="images images/gnus images/icons/allout-widgets/dark-bg \
   1.245  images/icons/allout-widgets/light-bg images/tree-widget/default \
   1.246  images/tree-widget/folder"
   1.247 -	for dir in $PNG_DIR; do
   1.248 +	for dir in $PNG_DIR
   1.249 +	  do
   1.250  		echo -n "Copying $dir png files"
   1.251  		mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir 2> /dev/null || true
   1.252  		cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.png \
   1.253 -			$fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
   1.254 +			$fs/usr/share/$PACKAGE/$VERSION/etc/$dir &&
   1.255  		status
   1.256 -	done
   1.257 +	  done
   1.258 +
   1.259  	# Licence
   1.260 -	GNU_FILES="AUTHORS CENSORSHIP COPYING DISTRIB FTP GNU ORDERS README \
   1.261 -SERVICE copying.paper"
   1.262 +	GNU_FILES="AUTHORS CENSORSHIP COPYING DISTRIB FTP GNU ORDERS README SERVICE"
   1.263  	echo -n "Copying License files"
   1.264 -	for file in $GNU_FILES; do
   1.265 +	for file in $GNU_FILES
   1.266 +	  do
   1.267  		cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
   1.268  			$fs/usr/share/$PACKAGE/$VERSION/etc
   1.269 -	done
   1.270 +	  done
   1.271  	status
   1.272 -	# Install specific site file
   1.273 -	echo -n "Installing specific SliTaz file"
   1.274 +
   1.275 +	# Install specific site files
   1.276 +	echo -n "Installing specific SliTaz files"
   1.277  	cp -a $install/usr/share/$PACKAGE/$VERSION/site-lisp \
   1.278 -		$fs/usr/share/$PACKAGE && \
   1.279 -	mkdir -p $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
   1.280 -	cp -a $stuff/default.el $stuff/site-start.el \
   1.281 -		$fs/usr/share/$PACKAGE/site-lisp && \
   1.282 -	cp -a $stuff/90-slitaz.el \
   1.283 -		$fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
   1.284 +		$fs/usr/share/$PACKAGE &&
   1.285 +	mkdir -p $fs/usr/share/$PACKAGE/site-lisp/site-start.d &&
   1.286 +	cp -a $stuff/default.el		$fs/usr/share/$PACKAGE/site-lisp &&
   1.287 +	cp -a $stuff/site-start.el	$fs/usr/share/$PACKAGE/site-lisp &&
   1.288 +	cp -a $stuff/90-slitaz.el	$fs/usr/share/$PACKAGE/site-lisp/site-start.d &&
   1.289  	status
   1.290 +
   1.291  	# Install desktop files for emacs
   1.292  	echo -n "Installing emacs menu"
   1.293 -	mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications && \
   1.294 -	cp -a $install/usr/share/applications $fs/usr/share/ && \
   1.295 +	mkdir -p			$fs/usr/share/pixmaps &&
   1.296 +	mkdir -p			$fs/usr/share/applications &&
   1.297 +	cp -a $install/usr/share/applications $fs/usr/share/ &&
   1.298  	cp -a $install/usr/share/icons/hicolor/32x32/apps/emacs.png \
   1.299 -		$fs/usr/share/pixmaps
   1.300 +					$fs/usr/share/pixmaps
   1.301  	status
   1.302 +
   1.303  	# Use default site-lisp
   1.304  	cd $fs/usr/share/$PACKAGE/$VERSION
   1.305  	ln -s ../site-lisp site-lisp