wok-6.x diff emacs/receipt @ rev 3938

emacs: up to 23.1
author Dominique Corbex <domcox@users.sourceforge.net>
date Fri Aug 21 21:49:57 2009 +0200 (2009-08-21)
parents ecb146e32c08
children 4cf5da7c32ac
line diff
     1.1 --- a/emacs/receipt	Sun Mar 15 21:45:47 2009 +0000
     1.2 +++ b/emacs/receipt	Fri Aug 21 21:49:57 2009 +0200
     1.3 @@ -1,12 +1,15 @@
     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="22.3"
    1.10 +VERSION="23.1"
    1.11  CATEGORY="development"
    1.12  SHORT_DESC="The GNU Emacs editor"
    1.13 -MAINTAINER="domcox@users.sourceforge.net"
    1.14 -DEPENDS="ncurses"
    1.15 -BUILD_DEPENDS="ncurses-dev"
    1.16 +MAINTAINER="domcox@slitaz.org"
    1.17 +DEPENDS="atk cairo dbus expat freetype fontconfig giflib glib gtk+ jpeg libgio libpng libuuid ncurses pango tiff xorg-server zlib"
    1.18 +BUILD_DEPENDS="atk-dev cairo-dev expat-dev dbus-dev freetype-dev fontconfig-dev giflib-dev glib-dev gtk+-dev jpeg-dev \
    1.19 +				libgio-dev libpng-dev ncurses-dev pango-dev pkg-config tiff-dev xorg-dev xorg-dev-proto"
    1.20  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.21  WEB_SITE="http://www.gnu.org/software/emacs/"
    1.22  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    1.23 @@ -20,69 +23,130 @@
    1.24  	sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' leim/Makefile.in
    1.25  	# Configure
    1.26  	./configure $CONFIGURE_ARGS \
    1.27 -	--infodir=/usr/share/emacs/info \
    1.28 -	--mandir=/usr/share/man \
    1.29 -	--without-pop \
    1.30 -	--without-sound \
    1.31 -	--without-x \
    1.32 -	--with-x-toolkit=no \
    1.33 -	--libexecdir=/usr/lib \
    1.34 -	--localstatedir=/var/lib \
    1.35 -	--sharedstatedir=/var/lib \
    1.36 -	--prefix=/usr &&
    1.37 -	make &&
    1.38 +		--infodir=/usr/share/emacs/info \
    1.39 +		--mandir=/usr/share/man \
    1.40 +		--without-makeinfo \
    1.41 +		--with-sound \
    1.42 +		--with-x \
    1.43 +		--with-x-toolkit=gtk \
    1.44 +		--with-toolkit-scroll-bars \
    1.45 +		--with-xpm=yes \
    1.46 +		--libexecdir=/usr/lib \
    1.47 +		--localstatedir=/var/lib \
    1.48 +		--sharedstatedir=/var/lib \
    1.49 +		--prefix=/usr && \
    1.50 +	make && \
    1.51  	make DESTDIR=$PWD/_pkg install
    1.52  }
    1.53  
    1.54  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.55  genpkg_rules()
    1.56  {
    1.57 -	echo "Copying files"
    1.58  	# Binary files
    1.59 -	mkdir -p $fs/usr
    1.60 -	cp -a $_pkg/usr/bin $fs/usr
    1.61 -	# emacs-22.2 = emacs
    1.62 -	rm -f $fs/usr/bin/emacs-22.2
    1.63 +	BIN_FILES="b2m ctags ebrowse emacs emacsclient etags grep-changelog rcs-checkin"
    1.64 +	echo -n "Copying emacs binary files"
    1.65 +	mkdir -p $fs/usr/bin && \
    1.66 +	for file in $BIN_FILES; do
    1.67 +		cp -a $_pkg/usr/bin/$file $fs/usr/bin
    1.68 +	done
    1.69 +	status
    1.70 +	# Lib files
    1.71 +	echo -n "Copying emacs lib files"
    1.72 +	cp -a $_pkg/usr/lib $fs/usr
    1.73 +	status
    1.74 +	strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* 2> /dev/null
    1.75 +	# lisp files
    1.76 +	LISP_DIR="	lisp lisp/calc lisp/calendar lisp/emacs-lisp lisp/emulation lisp/erc lisp/eshell  \
    1.77 +				lisp/gnus lisp/international lisp/language lisp/mail lisp/mh-e lisp/net lisp/nxml \
    1.78 +				lisp/obsolete lisp/org lisp/play lisp/progmodes lisp/textmodes lisp/url"
    1.79 +	for dir in $LISP_DIR; do
    1.80 +		echo -n "Copying $dir files"
    1.81 +		mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \
    1.82 +		cp $_pkg/usr/share/$PACKAGE/$VERSION/$dir/*.elc $fs/usr/share/$PACKAGE/$VERSION/$dir
    1.83 +		if [ `ls $_pkg/usr/share/$PACKAGE/$VERSION/$dir/ | grep -c \.el$` -gt 0 ]; then
    1.84 +			cp $_pkg/usr/share/$PACKAGE/$VERSION/$dir/*.el $fs/usr/share/$PACKAGE/$VERSION/$dir
    1.85 +		fi
    1.86 +		for file in COPYING README TODO; do
    1.87 +			if [ -e $_pkg/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
    1.88 +				cp $_pkg/usr/share/$PACKAGE/$VERSION/$dir/$file $fs/usr/share/$PACKAGE/$VERSION/$dir
    1.89 +			fi
    1.90 +		done
    1.91 +		status
    1.92 +	done
    1.93 +	# Use linux term only
    1.94 +	LINUX_TERM="README linux.el rxvt.elc tty-colors.elc vt100.elc xterm.elc"
    1.95 +	echo -n "Copying lisp/term files (linux only)"
    1.96 +	mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/term && \
    1.97 +	for file in $LINUX_TERM; do
    1.98 +		cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/$file $fs/usr/share/$PACKAGE/$VERSION/lisp/term
    1.99 +	done
   1.100 +	status
   1.101 +	# leim files
   1.102 +	echo -n "Copying leim files"
   1.103 +	mkdir -p $fs/usr/share/$PACKAGE/$VERSION/leim && \
   1.104 +	cp $_pkg/usr/share/$PACKAGE/$VERSION/leim/*.el $fs/usr/share/$PACKAGE/$VERSION/leim
   1.105 +	status
   1.106 +	LEIM_FILES="leim/ja-dic leim/quail"
   1.107 +	for dir in $LEIM_FILES; do
   1.108 +		echo -n "Copying $dir files"
   1.109 +		mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \
   1.110 +		cp $_pkg/usr/share/$PACKAGE/$VERSION/$dir/*.elc $fs/usr/share/$PACKAGE/$VERSION/$dir && \
   1.111 +		for file in COPYING README TODO; do
   1.112 +			if [ -e $_pkg/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
   1.113 +				cp $_pkg/usr/share/$PACKAGE/$VERSION/$dir/$file $fs/usr/share/$PACKAGE/$VERSION/$dir
   1.114 +			fi
   1.115 +		done
   1.116 +		status
   1.117 +	done
   1.118  	# Conf files
   1.119 -	mkdir -p $fs/usr/share/$PACKAGE/$VERSION
   1.120 -	mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc
   1.121 -	mkdir -p $fs/usr/share/$PACKAGE/info
   1.122 -	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL $fs/usr/share/$PACKAGE/$VERSION/etc
   1.123 -	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.de $fs/usr/share/$PACKAGE/$VERSION/etc
   1.124 -	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.es $fs/usr/share/$PACKAGE/$VERSION/etc
   1.125 -	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.fr $fs/usr/share/$PACKAGE/$VERSION/etc
   1.126 -	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/ORDERS $fs/usr/share/$PACKAGE/$VERSION/etc
   1.127 -	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/COPYING $fs/usr/share/$PACKAGE/$VERSION/etc
   1.128 -	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/DISTRIB $fs/usr/share/$PACKAGE/$VERSION/etc
   1.129 -	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/DOC-* $fs/usr/share/$PACKAGE/$VERSION/etc
   1.130 -	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp $fs/usr/share/$PACKAGE/$VERSION
   1.131 -	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/leim $fs/usr/share/$PACKAGE/$VERSION
   1.132 -	cp -a $_pkg/usr/share/$PACKAGE/site-lisp $fs/usr/share/$PACKAGE
   1.133 -	cp -a $_pkg/usr/share/$PACKAGE/info/em* $fs/usr/share/$PACKAGE/info
   1.134 -	cp -a $_pkg/usr/share/$PACKAGE/info/info $fs/usr/share/$PACKAGE/info
   1.135 -	cp -a $_pkg/usr/lib $fs/usr
   1.136 -	# Delete Lisp sources
   1.137 -	find $fs/usr/share -name *el.gz > lisp-sources
   1.138 -	cat lisp-sources | while read filename
   1.139 -	do
   1.140 -		rm $filename
   1.141 +	echo -n "Copying conf files"
   1.142 +	CONF_FILES="ETAGS.README charsets e emacs2.py emacs3.py emacs-buffer.gdb emacs.py forms-d2.dat \
   1.143 +				gnus nxml schema enriched.doc ms-kermit ps-prin0.ps ps-prin1.ps ses-example.ses \
   1.144 +				spook.lines yow.lines"
   1.145 +	mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc && \
   1.146 +	for file in $CONF_FILES; do
   1.147 +		cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/$file $fs/usr/share/$PACKAGE/$VERSION/etc
   1.148  	done
   1.149 -	# Delete Games
   1.150 -	rm -rf $fs/usr/share/$PACKAGE/$VERSION/lisp/play
   1.151 -	# Use linux term only
   1.152 -	rm -rf $fs/usr/share/$PACKAGE/$VERSION/lisp/term/*
   1.153 -	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/linux.el $fs/usr/share/$PACKAGE/$VERSION/lisp/term
   1.154 -	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/rxvt.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
   1.155 -	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/tty-colors.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
   1.156 -	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/vt100.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
   1.157 -	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/xterm.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
   1.158 -	# Strip executable files
   1.159 -	strip -s $fs/usr/bin/* > /dev/null
   1.160 -	strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* > /dev/null
   1.161 +	status
   1.162 +	# Pixmaps files
   1.163 +	XPM_DIR="	images images/custom images/ezimage images/gnus images/gud images/mail images/smilies \
   1.164 +				images/smilies/grayscale images/smilies/medium images/tree-widget/default images/tree-widget/folder"
   1.165 +	for dir in $XPM_DIR; do
   1.166 +		echo -n "Copying $dir files"
   1.167 +		mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
   1.168 +		cp $_pkg/usr/share/$PACKAGE/$VERSION/etc/$dir/*.xpm $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
   1.169 +		for file in COPYING README TODO; do
   1.170 +			if [ -e $_pkg/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
   1.171 +				cp $_pkg/usr/share/$PACKAGE/$VERSION/$dir/$file $fs/usr/share/$PACKAGE/$VERSION/$dir
   1.172 +			fi
   1.173 +		done
   1.174 +		status
   1.175 +	done
   1.176 +	# Licence
   1.177 +	GNU_FILES="AUTHORS BABYL CENSORSHIP COPYING DISTRIB FTP GNU ORDERS SERVICE copying.paper"
   1.178 +	echo -n "Copying License files"
   1.179 +	for file in $GNU_FILES; do
   1.180 +		cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/$file $fs/usr/share/$PACKAGE/$VERSION/etc
   1.181 +	done
   1.182 +	status
   1.183  	# Install specific site file
   1.184 -	cp -a stuff/default.el $fs/usr/share/$PACKAGE/site-lisp
   1.185 -	# Add lua support
   1.186 -	cp stuff/lua-mode.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/progmodes
   1.187 +	echo -n "Installing specific SliTaz file"
   1.188 +	mkdir -p $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
   1.189 +	cp -a $_pkg/usr/share/$PACKAGE/site-lisp $fs/usr/share/$PACKAGE && \
   1.190 +	cp -a stuff/slitaz.el $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
   1.191 +	status
   1.192 +	# Install desktop files for emacs
   1.193 +	echo -n "Installing emacs menu"
   1.194 +	mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications && \
   1.195 +	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/emacs.desktop $fs/usr/share/applications/ && \
   1.196 +	cp -a $_pkg/usr/share/icons/hicolor/32x32/apps/emacs.png $fs/usr/share/pixmaps
   1.197 +	status
   1.198 +	# Add a desktop file for emacs client
   1.199 +	echo -n "Installing emacsclient menu"
   1.200 +	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/emacs.desktop $fs/usr/share/applications/emacsclient.desktop && \
   1.201 +	sed -i 's/Exec.*/Exec=xterm -e emacsclient --alternate-editor="" %F/' $fs/usr/share/applications/emacsclient.desktop && \
   1.202 +	sed -i 's/Name=.*/Name=Emacsclient/' $fs/usr/share/applications/emacsclient.desktop
   1.203 +	status
   1.204  	# Directory  workaround
   1.205  	cd $fs/usr/share/$PACKAGE/$VERSION
   1.206  	ln -s ../site-lisp site-lisp
   1.207 @@ -90,6 +154,6 @@
   1.208  
   1.209  post_remove()
   1.210  {
   1.211 -	rm -rf /usr/share/$PACKAGE
   1.212 -	rm -rf /usr/lib/$PACKAGE
   1.213 +	rm -rf /usr/share/emacs
   1.214 +	rm -rf /usr/lib/emacs
   1.215  }