wok-next annotate emacs/receipt @ rev 3938
emacs: up to 23.1
author | Dominique Corbex <domcox@users.sourceforge.net> |
---|---|
date | Fri Aug 21 21:49:57 2009 +0200 (2009-08-21) |
parents | ecb146e32c08 |
children | 4cf5da7c32ac |
rev | line source |
---|---|
domcox@1046 | 1 # SliTaz package receipt. |
domcox@1046 | 2 |
domcox@3938 | 3 PACKED_SIZE="16.0M" |
domcox@3938 | 4 UNPACKED_SIZE="57.6M" |
domcox@1046 | 5 PACKAGE="emacs" |
domcox@3938 | 6 VERSION="23.1" |
domcox@1046 | 7 CATEGORY="development" |
domcox@1046 | 8 SHORT_DESC="The GNU Emacs editor" |
domcox@3938 | 9 MAINTAINER="domcox@slitaz.org" |
domcox@3938 | 10 DEPENDS="atk cairo dbus expat freetype fontconfig giflib glib gtk+ jpeg libgio libpng libuuid ncurses pango tiff xorg-server zlib" |
domcox@3938 | 11 BUILD_DEPENDS="atk-dev cairo-dev expat-dev dbus-dev freetype-dev fontconfig-dev giflib-dev glib-dev gtk+-dev jpeg-dev \ |
domcox@3938 | 12 libgio-dev libpng-dev ncurses-dev pango-dev pkg-config tiff-dev xorg-dev xorg-dev-proto" |
domcox@1046 | 13 TARBALL="$PACKAGE-$VERSION.tar.gz" |
domcox@1046 | 14 WEB_SITE="http://www.gnu.org/software/emacs/" |
domcox@1046 | 15 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
domcox@1046 | 16 |
domcox@1046 | 17 # Rules to configure and make the package. |
domcox@1046 | 18 compile_rules() |
domcox@1046 | 19 { |
domcox@1046 | 20 cd $src |
domcox@1046 | 21 # Gzip workaround in busybox |
domcox@1900 | 22 sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' Makefile.in |
domcox@1900 | 23 sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' leim/Makefile.in |
domcox@1046 | 24 # Configure |
domcox@1046 | 25 ./configure $CONFIGURE_ARGS \ |
domcox@3938 | 26 --infodir=/usr/share/emacs/info \ |
domcox@3938 | 27 --mandir=/usr/share/man \ |
domcox@3938 | 28 --without-makeinfo \ |
domcox@3938 | 29 --with-sound \ |
domcox@3938 | 30 --with-x \ |
domcox@3938 | 31 --with-x-toolkit=gtk \ |
domcox@3938 | 32 --with-toolkit-scroll-bars \ |
domcox@3938 | 33 --with-xpm=yes \ |
domcox@3938 | 34 --libexecdir=/usr/lib \ |
domcox@3938 | 35 --localstatedir=/var/lib \ |
domcox@3938 | 36 --sharedstatedir=/var/lib \ |
domcox@3938 | 37 --prefix=/usr && \ |
domcox@3938 | 38 make && \ |
domcox@1046 | 39 make DESTDIR=$PWD/_pkg install |
domcox@1046 | 40 } |
domcox@1046 | 41 |
domcox@1046 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@1046 | 43 genpkg_rules() |
domcox@1046 | 44 { |
domcox@1046 | 45 # Binary files |
domcox@3938 | 46 BIN_FILES="b2m ctags ebrowse emacs emacsclient etags grep-changelog rcs-checkin" |
domcox@3938 | 47 echo -n "Copying emacs binary files" |
domcox@3938 | 48 mkdir -p $fs/usr/bin && \ |
domcox@3938 | 49 for file in $BIN_FILES; do |
domcox@3938 | 50 cp -a $_pkg/usr/bin/$file $fs/usr/bin |
domcox@3938 | 51 done |
domcox@3938 | 52 status |
domcox@3938 | 53 # Lib files |
domcox@3938 | 54 echo -n "Copying emacs lib files" |
domcox@3938 | 55 cp -a $_pkg/usr/lib $fs/usr |
domcox@3938 | 56 status |
domcox@3938 | 57 strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* 2> /dev/null |
domcox@3938 | 58 # lisp files |
domcox@3938 | 59 LISP_DIR=" lisp lisp/calc lisp/calendar lisp/emacs-lisp lisp/emulation lisp/erc lisp/eshell \ |
domcox@3938 | 60 lisp/gnus lisp/international lisp/language lisp/mail lisp/mh-e lisp/net lisp/nxml \ |
domcox@3938 | 61 lisp/obsolete lisp/org lisp/play lisp/progmodes lisp/textmodes lisp/url" |
domcox@3938 | 62 for dir in $LISP_DIR; do |
domcox@3938 | 63 echo -n "Copying $dir files" |
domcox@3938 | 64 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \ |
domcox@3938 | 65 cp $_pkg/usr/share/$PACKAGE/$VERSION/$dir/*.elc $fs/usr/share/$PACKAGE/$VERSION/$dir |
domcox@3938 | 66 if [ `ls $_pkg/usr/share/$PACKAGE/$VERSION/$dir/ | grep -c \.el$` -gt 0 ]; then |
domcox@3938 | 67 cp $_pkg/usr/share/$PACKAGE/$VERSION/$dir/*.el $fs/usr/share/$PACKAGE/$VERSION/$dir |
domcox@3938 | 68 fi |
domcox@3938 | 69 for file in COPYING README TODO; do |
domcox@3938 | 70 if [ -e $_pkg/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then |
domcox@3938 | 71 cp $_pkg/usr/share/$PACKAGE/$VERSION/$dir/$file $fs/usr/share/$PACKAGE/$VERSION/$dir |
domcox@3938 | 72 fi |
domcox@3938 | 73 done |
domcox@3938 | 74 status |
domcox@3938 | 75 done |
domcox@3938 | 76 # Use linux term only |
domcox@3938 | 77 LINUX_TERM="README linux.el rxvt.elc tty-colors.elc vt100.elc xterm.elc" |
domcox@3938 | 78 echo -n "Copying lisp/term files (linux only)" |
domcox@3938 | 79 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/term && \ |
domcox@3938 | 80 for file in $LINUX_TERM; do |
domcox@3938 | 81 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/$file $fs/usr/share/$PACKAGE/$VERSION/lisp/term |
domcox@3938 | 82 done |
domcox@3938 | 83 status |
domcox@3938 | 84 # leim files |
domcox@3938 | 85 echo -n "Copying leim files" |
domcox@3938 | 86 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/leim && \ |
domcox@3938 | 87 cp $_pkg/usr/share/$PACKAGE/$VERSION/leim/*.el $fs/usr/share/$PACKAGE/$VERSION/leim |
domcox@3938 | 88 status |
domcox@3938 | 89 LEIM_FILES="leim/ja-dic leim/quail" |
domcox@3938 | 90 for dir in $LEIM_FILES; do |
domcox@3938 | 91 echo -n "Copying $dir files" |
domcox@3938 | 92 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \ |
domcox@3938 | 93 cp $_pkg/usr/share/$PACKAGE/$VERSION/$dir/*.elc $fs/usr/share/$PACKAGE/$VERSION/$dir && \ |
domcox@3938 | 94 for file in COPYING README TODO; do |
domcox@3938 | 95 if [ -e $_pkg/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then |
domcox@3938 | 96 cp $_pkg/usr/share/$PACKAGE/$VERSION/$dir/$file $fs/usr/share/$PACKAGE/$VERSION/$dir |
domcox@3938 | 97 fi |
domcox@3938 | 98 done |
domcox@3938 | 99 status |
domcox@3938 | 100 done |
domcox@1046 | 101 # Conf files |
domcox@3938 | 102 echo -n "Copying conf files" |
domcox@3938 | 103 CONF_FILES="ETAGS.README charsets e emacs2.py emacs3.py emacs-buffer.gdb emacs.py forms-d2.dat \ |
domcox@3938 | 104 gnus nxml schema enriched.doc ms-kermit ps-prin0.ps ps-prin1.ps ses-example.ses \ |
domcox@3938 | 105 spook.lines yow.lines" |
domcox@3938 | 106 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc && \ |
domcox@3938 | 107 for file in $CONF_FILES; do |
domcox@3938 | 108 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/$file $fs/usr/share/$PACKAGE/$VERSION/etc |
domcox@1046 | 109 done |
domcox@3938 | 110 status |
domcox@3938 | 111 # Pixmaps files |
domcox@3938 | 112 XPM_DIR=" images images/custom images/ezimage images/gnus images/gud images/mail images/smilies \ |
domcox@3938 | 113 images/smilies/grayscale images/smilies/medium images/tree-widget/default images/tree-widget/folder" |
domcox@3938 | 114 for dir in $XPM_DIR; do |
domcox@3938 | 115 echo -n "Copying $dir files" |
domcox@3938 | 116 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \ |
domcox@3938 | 117 cp $_pkg/usr/share/$PACKAGE/$VERSION/etc/$dir/*.xpm $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \ |
domcox@3938 | 118 for file in COPYING README TODO; do |
domcox@3938 | 119 if [ -e $_pkg/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then |
domcox@3938 | 120 cp $_pkg/usr/share/$PACKAGE/$VERSION/$dir/$file $fs/usr/share/$PACKAGE/$VERSION/$dir |
domcox@3938 | 121 fi |
domcox@3938 | 122 done |
domcox@3938 | 123 status |
domcox@3938 | 124 done |
domcox@3938 | 125 # Licence |
domcox@3938 | 126 GNU_FILES="AUTHORS BABYL CENSORSHIP COPYING DISTRIB FTP GNU ORDERS SERVICE copying.paper" |
domcox@3938 | 127 echo -n "Copying License files" |
domcox@3938 | 128 for file in $GNU_FILES; do |
domcox@3938 | 129 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/$file $fs/usr/share/$PACKAGE/$VERSION/etc |
domcox@3938 | 130 done |
domcox@3938 | 131 status |
domcox@1046 | 132 # Install specific site file |
domcox@3938 | 133 echo -n "Installing specific SliTaz file" |
domcox@3938 | 134 mkdir -p $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \ |
domcox@3938 | 135 cp -a $_pkg/usr/share/$PACKAGE/site-lisp $fs/usr/share/$PACKAGE && \ |
domcox@3938 | 136 cp -a stuff/slitaz.el $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \ |
domcox@3938 | 137 status |
domcox@3938 | 138 # Install desktop files for emacs |
domcox@3938 | 139 echo -n "Installing emacs menu" |
domcox@3938 | 140 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications && \ |
domcox@3938 | 141 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/emacs.desktop $fs/usr/share/applications/ && \ |
domcox@3938 | 142 cp -a $_pkg/usr/share/icons/hicolor/32x32/apps/emacs.png $fs/usr/share/pixmaps |
domcox@3938 | 143 status |
domcox@3938 | 144 # Add a desktop file for emacs client |
domcox@3938 | 145 echo -n "Installing emacsclient menu" |
domcox@3938 | 146 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/emacs.desktop $fs/usr/share/applications/emacsclient.desktop && \ |
domcox@3938 | 147 sed -i 's/Exec.*/Exec=xterm -e emacsclient --alternate-editor="" %F/' $fs/usr/share/applications/emacsclient.desktop && \ |
domcox@3938 | 148 sed -i 's/Name=.*/Name=Emacsclient/' $fs/usr/share/applications/emacsclient.desktop |
domcox@3938 | 149 status |
domcox@1046 | 150 # Directory workaround |
domcox@1046 | 151 cd $fs/usr/share/$PACKAGE/$VERSION |
domcox@1046 | 152 ln -s ../site-lisp site-lisp |
domcox@1046 | 153 } |
domcox@1380 | 154 |
domcox@1380 | 155 post_remove() |
domcox@1380 | 156 { |
domcox@3938 | 157 rm -rf /usr/share/emacs |
domcox@3938 | 158 rm -rf /usr/lib/emacs |
domcox@1900 | 159 } |