wok-next view emacs/receipt @ rev 2069
Add perl-net-ip
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 23 18:00:10 2009 +0000 (2009-01-23) |
parents | 4574379dbc68 |
children | 9058617a46bb |
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 -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' Makefile.in
19 sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' leim/Makefile.in
20 # Configure
21 ./configure $CONFIGURE_ARGS \
22 --infodir=/usr/share/info \
23 --mandir=/usr/share/man \
24 --without-pop \
25 --without-sound \
26 --without-x \
27 --with-x-toolkit=no \
28 --libexecdir=/usr/lib \
29 --localstatedir=/var/lib \
30 --sharedstatedir=/var/lib \
31 --prefix=/usr
32 # make
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 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL $fs/usr/share/$PACKAGE/$VERSION/etc
50 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.de $fs/usr/share/$PACKAGE/$VERSION/etc
51 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.es $fs/usr/share/$PACKAGE/$VERSION/etc
52 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.fr $fs/usr/share/$PACKAGE/$VERSION/etc
53 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/ORDERS $fs/usr/share/$PACKAGE/$VERSION/etc
54 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/COPYING $fs/usr/share/$PACKAGE/$VERSION/etc
55 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/DISTRIB $fs/usr/share/$PACKAGE/$VERSION/etc
56 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/DOC-* $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 }
88 post_remove()
89 {
90 rm -rf /usr/share/$PACKAGE
91 rm -rf /usr/lib/$PACKAGE
92 }