wok-stable view emacs/receipt @ rev 1655
python: update DEPENDS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 08 13:45:38 2008 +0000 (2008-11-08) |
parents | 2cfec27e2d9c |
children | 08e389ea2b32 |
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=""
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/lib \
32 --sharedstatedir=/var/lib \
33 --prefix=/usr
34 # make
35 make
36 make DESTDIR=$PWD/_pkg install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 echo "Copying files"
43 # Binary files
44 mkdir -p $fs/usr
45 cp -a $_pkg/usr/bin $fs/usr
46 # emacs-22.2 = emacs
47 rm -f $fs/usr/bin/emacs-22.2
48 # Conf files
49 mkdir -p $fs/usr/share/$PACKAGE/$VERSION
50 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc
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/lib $fs/usr
63 # Delete Lisp sources
64 find $fs/usr/share -name *el.gz > lisp-sources
65 cat lisp-sources | while read filename
66 do
67 rm $filename
68 done
69 # Delete Games
70 rm -rf $fs/usr/share/$PACKAGE/$VERSION/lisp/play
71 # Use linux term only
72 rm -rf $fs/usr/share/$PACKAGE/$VERSION/lisp/term/*
73 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/linux.el $fs/usr/share/$PACKAGE/$VERSION/lisp/term
74 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/rxvt.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
75 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/tty-colors.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
76 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/vt100.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
77 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/xterm.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
78 # Strip executable files
79 strip -s $fs/usr/bin/* > /dev/null
80 strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* > /dev/null
81 # Install specific site file
82 cp -a stuff/default.el $fs/usr/share/$PACKAGE/site-lisp
83 # Add lua support
84 cp stuff/lua-mode.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/progmodes
85 # Directory workaround
86 cd $fs/usr/share/$PACKAGE/$VERSION
87 ln -s ../site-lisp site-lisp
88 }
90 post_remove()
91 {
92 rm -rf /usr/share/$PACKAGE
93 rm -rf /usr/lib/$PACKAGE
94 }