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