wok-next annotate emacs/receipt @ rev 1380

emacs: new upstream version 22.3
author Dominique Corbex <domcox@users.sourceforge.net>
date Sat Sep 13 22:42:13 2008 +0200 (2008-09-13)
parents 2cfec27e2d9c
children 08e389ea2b32
rev   line source
domcox@1046 1 # SliTaz package receipt.
domcox@1046 2
domcox@1046 3 PACKAGE="emacs"
domcox@1380 4 VERSION="22.3"
domcox@1046 5 CATEGORY="development"
domcox@1046 6 SHORT_DESC="The GNU Emacs editor"
domcox@1046 7 MAINTAINER="domcox@users.sourceforge.net"
domcox@1046 8 DEPENDS=""
domcox@1046 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
domcox@1046 10 WEB_SITE="http://www.gnu.org/software/emacs/"
domcox@1046 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
domcox@1046 12
domcox@1046 13 # Rules to configure and make the package.
domcox@1046 14 compile_rules()
domcox@1046 15 {
domcox@1046 16 cd $src
domcox@1046 17 # Gzip workaround in busybox
domcox@1046 18 sed -e 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' Makefile.in > Makefile.slitaz
domcox@1046 19 cp Makefile.slitaz Makefile.in
domcox@1046 20 sed -e 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' leim/Makefile.in > leim/Makefile.slitaz
domcox@1046 21 cp leim/Makefile.slitaz leim/Makefile.in
domcox@1046 22 # Configure
domcox@1046 23 ./configure $CONFIGURE_ARGS \
domcox@1046 24 --infodir=/usr/share/info \
domcox@1046 25 --mandir=/usr/share/man \
domcox@1046 26 --without-pop \
domcox@1046 27 --without-sound \
domcox@1046 28 --without-x \
domcox@1046 29 --with-x-toolkit=no \
domcox@1046 30 --libexecdir=/usr/lib \
domcox@1251 31 --localstatedir=/var/lib \
domcox@1251 32 --sharedstatedir=/var/lib \
domcox@1046 33 --prefix=/usr
domcox@1046 34 # make
domcox@1046 35 make
domcox@1046 36 make DESTDIR=$PWD/_pkg install
domcox@1046 37 }
domcox@1046 38
domcox@1046 39 # Rules to gen a SliTaz package suitable for Tazpkg.
domcox@1046 40 genpkg_rules()
domcox@1046 41 {
domcox@1046 42 echo "Copying files"
domcox@1046 43 # Binary files
domcox@1046 44 mkdir -p $fs/usr
domcox@1046 45 cp -a $_pkg/usr/bin $fs/usr
domcox@1046 46 # emacs-22.2 = emacs
domcox@1046 47 rm -f $fs/usr/bin/emacs-22.2
domcox@1046 48 # Conf files
domcox@1046 49 mkdir -p $fs/usr/share/$PACKAGE/$VERSION
domcox@1046 50 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc
domcox@1046 51 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL $fs/usr/share/$PACKAGE/$VERSION/etc
domcox@1046 52 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.de $fs/usr/share/$PACKAGE/$VERSION/etc
domcox@1046 53 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.es $fs/usr/share/$PACKAGE/$VERSION/etc
domcox@1046 54 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.fr $fs/usr/share/$PACKAGE/$VERSION/etc
domcox@1046 55 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/ORDERS $fs/usr/share/$PACKAGE/$VERSION/etc
domcox@1046 56 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/COPYING $fs/usr/share/$PACKAGE/$VERSION/etc
domcox@1046 57 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/DISTRIB $fs/usr/share/$PACKAGE/$VERSION/etc
domcox@1251 58 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/DOC-* $fs/usr/share/$PACKAGE/$VERSION/etc
domcox@1046 59 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp $fs/usr/share/$PACKAGE/$VERSION
domcox@1046 60 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/leim $fs/usr/share/$PACKAGE/$VERSION
domcox@1046 61 cp -a $_pkg/usr/share/$PACKAGE/site-lisp $fs/usr/share/$PACKAGE
domcox@1046 62 cp -a $_pkg/usr/lib $fs/usr
domcox@1046 63 # Delete Lisp sources
domcox@1046 64 find $fs/usr/share -name *el.gz > lisp-sources
domcox@1046 65 cat lisp-sources | while read filename
domcox@1046 66 do
domcox@1046 67 rm $filename
domcox@1046 68 done
domcox@1046 69 # Delete Games
domcox@1046 70 rm -rf $fs/usr/share/$PACKAGE/$VERSION/lisp/play
domcox@1046 71 # Use linux term only
domcox@1046 72 rm -rf $fs/usr/share/$PACKAGE/$VERSION/lisp/term/*
domcox@1046 73 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/linux.el $fs/usr/share/$PACKAGE/$VERSION/lisp/term
domcox@1046 74 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/rxvt.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
domcox@1046 75 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/tty-colors.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
domcox@1046 76 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/vt100.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
domcox@1046 77 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/xterm.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
domcox@1046 78 # Strip executable files
domcox@1046 79 strip -s $fs/usr/bin/* > /dev/null
domcox@1046 80 strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* > /dev/null
domcox@1046 81 # Install specific site file
domcox@1046 82 cp -a stuff/default.el $fs/usr/share/$PACKAGE/site-lisp
domcox@1046 83 # Add lua support
domcox@1046 84 cp stuff/lua-mode.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/progmodes
domcox@1046 85 # Directory workaround
domcox@1046 86 cd $fs/usr/share/$PACKAGE/$VERSION
domcox@1046 87 ln -s ../site-lisp site-lisp
domcox@1046 88 }
domcox@1380 89
domcox@1380 90 post_remove()
domcox@1380 91 {
domcox@1380 92 rm -rf /usr/share/$PACKAGE
domcox@1380 93 rm -rf /usr/lib/$PACKAGE
domcox@1380 94 }