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