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