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