wok-next diff emacs/receipt @ rev 1070

Add: grisbi, an another bank manager, fix: missing icon for Homebank and deps for Inkscape
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Tue Jul 15 23:12:44 2008 +0200 (2008-07-15)
parents
children 2cfec27e2d9c
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/emacs/receipt	Tue Jul 15 23:12:44 2008 +0200
     1.3 @@ -0,0 +1,86 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="emacs"
     1.7 +VERSION="22.2"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="The GNU Emacs editor"
    1.10 +MAINTAINER="domcox@users.sourceforge.net"
    1.11 +DEPENDS=""
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://www.gnu.org/software/emacs/"
    1.14 +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +	cd $src
    1.20 +	# Gzip workaround in busybox
    1.21 +	sed -e 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' Makefile.in > Makefile.slitaz
    1.22 +	cp Makefile.slitaz Makefile.in
    1.23 +	sed -e 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' leim/Makefile.in > leim/Makefile.slitaz
    1.24 +	cp leim/Makefile.slitaz leim/Makefile.in
    1.25 +	# Configure
    1.26 +	./configure $CONFIGURE_ARGS \
    1.27 +	--infodir=/usr/share/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 \
    1.35 +	--prefix=/usr
    1.36 +	# make
    1.37 +	make
    1.38 +	make DESTDIR=$PWD/_pkg install
    1.39 +}
    1.40 +
    1.41 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.42 +genpkg_rules()
    1.43 +{
    1.44 +	echo "Copying files"
    1.45 +	# Binary files
    1.46 +	mkdir -p $fs/usr
    1.47 +	cp -a $_pkg/usr/bin $fs/usr
    1.48 +	# emacs-22.2 = emacs
    1.49 +	rm -f $fs/usr/bin/emacs-22.2
    1.50 +	# Conf files
    1.51 +	mkdir -p $fs/usr/share/$PACKAGE/$VERSION
    1.52 +	mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc
    1.53 +	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL $fs/usr/share/$PACKAGE/$VERSION/etc
    1.54 +	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.de $fs/usr/share/$PACKAGE/$VERSION/etc
    1.55 +	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.es $fs/usr/share/$PACKAGE/$VERSION/etc
    1.56 +	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.fr $fs/usr/share/$PACKAGE/$VERSION/etc
    1.57 +	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/ORDERS $fs/usr/share/$PACKAGE/$VERSION/etc
    1.58 +	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/COPYING $fs/usr/share/$PACKAGE/$VERSION/etc
    1.59 +	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/DISTRIB $fs/usr/share/$PACKAGE/$VERSION/etc
    1.60 +	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp $fs/usr/share/$PACKAGE/$VERSION
    1.61 +	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/leim $fs/usr/share/$PACKAGE/$VERSION
    1.62 +	cp -a $_pkg/usr/share/$PACKAGE/site-lisp $fs/usr/share/$PACKAGE
    1.63 +	cp -a $_pkg/usr/lib $fs/usr
    1.64 +	# Delete Lisp sources
    1.65 +	find $fs/usr/share -name *el.gz > lisp-sources
    1.66 +	cat lisp-sources | while read filename
    1.67 +	do
    1.68 +		rm $filename
    1.69 +	done
    1.70 +	# Delete Games
    1.71 +	rm -rf $fs/usr/share/$PACKAGE/$VERSION/lisp/play
    1.72 +	# Use linux term only
    1.73 +	rm -rf $fs/usr/share/$PACKAGE/$VERSION/lisp/term/*
    1.74 +	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/linux.el $fs/usr/share/$PACKAGE/$VERSION/lisp/term
    1.75 +	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/rxvt.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
    1.76 +	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/tty-colors.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
    1.77 +	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/vt100.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
    1.78 +	cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/xterm.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
    1.79 +	# Strip executable files
    1.80 +	strip -s $fs/usr/bin/* > /dev/null
    1.81 +	strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* > /dev/null
    1.82 +	# Install specific site file
    1.83 +	cp -a stuff/default.el $fs/usr/share/$PACKAGE/site-lisp
    1.84 +	# Add lua support
    1.85 +	cp stuff/lua-mode.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/progmodes
    1.86 +	# Directory  workaround
    1.87 +	cd $fs/usr/share/$PACKAGE/$VERSION
    1.88 +	ln -s ../site-lisp site-lisp
    1.89 +}