wok-current view emacs/receipt @ rev 3309

Up: startup-notification (0.10)
author Mallory MOLLO <mallory@skyrock.com>
date Sat Jun 06 20:17:11 2009 +0200 (2009-06-06)
parents 9058617a46bb
children 6aae08641f1e
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 DESTDIR=$PWD/_pkg install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 echo "Copying files"
41 # Binary files
42 mkdir -p $fs/usr
43 cp -a $_pkg/usr/bin $fs/usr
44 # emacs-22.2 = emacs
45 rm -f $fs/usr/bin/emacs-22.2
46 # Conf files
47 mkdir -p $fs/usr/share/$PACKAGE/$VERSION
48 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc
49 mkdir -p $fs/usr/share/$PACKAGE/info
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/etc/DOC-* $fs/usr/share/$PACKAGE/$VERSION/etc
58 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp $fs/usr/share/$PACKAGE/$VERSION
59 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/leim $fs/usr/share/$PACKAGE/$VERSION
60 cp -a $_pkg/usr/share/$PACKAGE/site-lisp $fs/usr/share/$PACKAGE
61 cp -a $_pkg/usr/share/$PACKAGE/info/em* $fs/usr/share/$PACKAGE/info
62 cp -a $_pkg/usr/share/$PACKAGE/info/info $fs/usr/share/$PACKAGE/info
63 cp -a $_pkg/usr/lib $fs/usr
64 # Delete Lisp sources
65 find $fs/usr/share -name *el.gz > lisp-sources
66 cat lisp-sources | while read filename
67 do
68 rm $filename
69 done
70 # Delete Games
71 rm -rf $fs/usr/share/$PACKAGE/$VERSION/lisp/play
72 # Use linux term only
73 rm -rf $fs/usr/share/$PACKAGE/$VERSION/lisp/term/*
74 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/linux.el $fs/usr/share/$PACKAGE/$VERSION/lisp/term
75 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/rxvt.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
76 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/tty-colors.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
77 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/vt100.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
78 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/xterm.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term
79 # Strip executable files
80 strip -s $fs/usr/bin/* > /dev/null
81 strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* > /dev/null
82 # Install specific site file
83 cp -a stuff/default.el $fs/usr/share/$PACKAGE/site-lisp
84 # Add lua support
85 cp stuff/lua-mode.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/progmodes
86 # Directory workaround
87 cd $fs/usr/share/$PACKAGE/$VERSION
88 ln -s ../site-lisp site-lisp
89 }
91 post_remove()
92 {
93 rm -rf /usr/share/$PACKAGE
94 rm -rf /usr/lib/$PACKAGE
95 }