wok-current view emacs/receipt @ rev 2468
emacs: update depends
author | Dominique Corbex <domcox@users.sourceforge.net> |
---|---|
date | Sat Mar 14 20:44:49 2009 +0100 (2009-03-14) |
parents | 08e389ea2b32 |
children | ecb146e32c08 |
line source
1 # SliTaz package receipt.
3 PACKAGE="emacs"
4 VERSION="22.3"
5 CATEGORY="development"
6 SHORT_DESC="The GNU Emacs editor"
7 MAINTAINER="domcox@users.sourceforge.net"
8 DEPENDS="ncurses"
9 BUILD_DEPENDS="ncurses-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.gnu.org/software/emacs/"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 # Gzip workaround in busybox
19 sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' Makefile.in
20 sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' leim/Makefile.in
21 # Configure
22 ./configure $CONFIGURE_ARGS \
23 --infodir=/usr/share/emacs/info \
24 --mandir=/usr/share/man \
25 --without-pop \
26 --without-sound \
27 --without-x \
28 --with-x-toolkit=no \
29 --libexecdir=/usr/lib \
30 --localstatedir=/var/lib \
31 --sharedstatedir=/var/lib \
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 mkdir -p $fs/usr/share/$PACKAGE/info
51 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL $fs/usr/share/$PACKAGE/$VERSION/etc
52 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.de $fs/usr/share/$PACKAGE/$VERSION/etc
53 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.es $fs/usr/share/$PACKAGE/$VERSION/etc
54 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.fr $fs/usr/share/$PACKAGE/$VERSION/etc
55 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/ORDERS $fs/usr/share/$PACKAGE/$VERSION/etc
56 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/COPYING $fs/usr/share/$PACKAGE/$VERSION/etc
57 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/DISTRIB $fs/usr/share/$PACKAGE/$VERSION/etc
58 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/DOC-* $fs/usr/share/$PACKAGE/$VERSION/etc
59 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp $fs/usr/share/$PACKAGE/$VERSION
60 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/leim $fs/usr/share/$PACKAGE/$VERSION
61 cp -a $_pkg/usr/share/$PACKAGE/site-lisp $fs/usr/share/$PACKAGE
62 cp -a $_pkg/usr/share/$PACKAGE/info/em* $fs/usr/share/$PACKAGE/info
63 cp -a $_pkg/usr/share/$PACKAGE/info/info $fs/usr/share/$PACKAGE/info
64 cp -a $_pkg/usr/lib $fs/usr
65 # Delete Lisp sources
66 find $fs/usr/share -name *el.gz > lisp-sources
67 cat lisp-sources | while read filename
68 do
69 rm $filename
70 done
71 # Delete Games
72 rm -rf $fs/usr/share/$PACKAGE/$VERSION/lisp/play
73 # Use linux term only
74 rm -rf $fs/usr/share/$PACKAGE/$VERSION/lisp/term/*
75 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/linux.el $fs/usr/share/$PACKAGE/$VERSION/lisp/term
76 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/rxvt.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
77 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/tty-colors.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
78 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/vt100.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
79 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/xterm.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
80 # Strip executable files
81 strip -s $fs/usr/bin/* > /dev/null
82 strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* > /dev/null
83 # Install specific site file
84 cp -a stuff/default.el $fs/usr/share/$PACKAGE/site-lisp
85 # Add lua support
86 cp stuff/lua-mode.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/progmodes
87 # Directory workaround
88 cd $fs/usr/share/$PACKAGE/$VERSION
89 ln -s ../site-lisp site-lisp
90 }
92 post_remove()
93 {
94 rm -rf /usr/share/$PACKAGE
95 rm -rf /usr/lib/$PACKAGE
96 }