wok-4.x annotate emacs/receipt @ rev 1133
Receipt for feh - Image viewer and composer
Receipt for giblib - Graphic library, Imlib2 wrapper. Requested by feh.
Receipt for giblib - Giblib development files. Requested to build feh.
Receipt for giblib - Graphic library, Imlib2 wrapper. Requested by feh.
Receipt for giblib - Giblib development files. Requested to build feh.
author | Mallory MOLLO <mallory@sweetpeople.org> |
---|---|
date | Thu Jul 24 00:38:56 2008 +0200 (2008-07-24) |
parents | |
children | 2cfec27e2d9c |
rev | line source |
---|---|
domcox@1046 | 1 # SliTaz package receipt. |
domcox@1046 | 2 |
domcox@1046 | 3 PACKAGE="emacs" |
domcox@1046 | 4 VERSION="22.2" |
domcox@1046 | 5 CATEGORY="development" |
domcox@1046 | 6 SHORT_DESC="The GNU Emacs editor" |
domcox@1046 | 7 MAINTAINER="domcox@users.sourceforge.net" |
domcox@1046 | 8 DEPENDS="" |
domcox@1046 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
domcox@1046 | 10 WEB_SITE="http://www.gnu.org/software/emacs/" |
domcox@1046 | 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
domcox@1046 | 12 |
domcox@1046 | 13 # Rules to configure and make the package. |
domcox@1046 | 14 compile_rules() |
domcox@1046 | 15 { |
domcox@1046 | 16 cd $src |
domcox@1046 | 17 # Gzip workaround in busybox |
domcox@1046 | 18 sed -e 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' Makefile.in > Makefile.slitaz |
domcox@1046 | 19 cp Makefile.slitaz Makefile.in |
domcox@1046 | 20 sed -e 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' leim/Makefile.in > leim/Makefile.slitaz |
domcox@1046 | 21 cp leim/Makefile.slitaz leim/Makefile.in |
domcox@1046 | 22 # Configure |
domcox@1046 | 23 ./configure $CONFIGURE_ARGS \ |
domcox@1046 | 24 --infodir=/usr/share/info \ |
domcox@1046 | 25 --mandir=/usr/share/man \ |
domcox@1046 | 26 --without-pop \ |
domcox@1046 | 27 --without-sound \ |
domcox@1046 | 28 --without-x \ |
domcox@1046 | 29 --with-x-toolkit=no \ |
domcox@1046 | 30 --libexecdir=/usr/lib \ |
domcox@1046 | 31 --localstatedir=/var \ |
domcox@1046 | 32 --prefix=/usr |
domcox@1046 | 33 # make |
domcox@1046 | 34 make |
domcox@1046 | 35 make DESTDIR=$PWD/_pkg install |
domcox@1046 | 36 } |
domcox@1046 | 37 |
domcox@1046 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@1046 | 39 genpkg_rules() |
domcox@1046 | 40 { |
domcox@1046 | 41 echo "Copying files" |
domcox@1046 | 42 # Binary files |
domcox@1046 | 43 mkdir -p $fs/usr |
domcox@1046 | 44 cp -a $_pkg/usr/bin $fs/usr |
domcox@1046 | 45 # emacs-22.2 = emacs |
domcox@1046 | 46 rm -f $fs/usr/bin/emacs-22.2 |
domcox@1046 | 47 # Conf files |
domcox@1046 | 48 mkdir -p $fs/usr/share/$PACKAGE/$VERSION |
domcox@1046 | 49 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc |
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@1046 | 57 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp $fs/usr/share/$PACKAGE/$VERSION |
domcox@1046 | 58 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/leim $fs/usr/share/$PACKAGE/$VERSION |
domcox@1046 | 59 cp -a $_pkg/usr/share/$PACKAGE/site-lisp $fs/usr/share/$PACKAGE |
domcox@1046 | 60 cp -a $_pkg/usr/lib $fs/usr |
domcox@1046 | 61 # Delete Lisp sources |
domcox@1046 | 62 find $fs/usr/share -name *el.gz > lisp-sources |
domcox@1046 | 63 cat lisp-sources | while read filename |
domcox@1046 | 64 do |
domcox@1046 | 65 rm $filename |
domcox@1046 | 66 done |
domcox@1046 | 67 # Delete Games |
domcox@1046 | 68 rm -rf $fs/usr/share/$PACKAGE/$VERSION/lisp/play |
domcox@1046 | 69 # Use linux term only |
domcox@1046 | 70 rm -rf $fs/usr/share/$PACKAGE/$VERSION/lisp/term/* |
domcox@1046 | 71 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/linux.el $fs/usr/share/$PACKAGE/$VERSION/lisp/term |
domcox@1046 | 72 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/rxvt.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term |
domcox@1046 | 73 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/tty-colors.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term |
domcox@1046 | 74 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/vt100.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term |
domcox@1046 | 75 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/xterm.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term |
domcox@1046 | 76 # Strip executable files |
domcox@1046 | 77 strip -s $fs/usr/bin/* > /dev/null |
domcox@1046 | 78 strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* > /dev/null |
domcox@1046 | 79 # Install specific site file |
domcox@1046 | 80 cp -a stuff/default.el $fs/usr/share/$PACKAGE/site-lisp |
domcox@1046 | 81 # Add lua support |
domcox@1046 | 82 cp stuff/lua-mode.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/progmodes |
domcox@1046 | 83 # Directory workaround |
domcox@1046 | 84 cd $fs/usr/share/$PACKAGE/$VERSION |
domcox@1046 | 85 ln -s ../site-lisp site-lisp |
domcox@1046 | 86 } |