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