wok-next annotate emacs/receipt @ rev 20079

Up emacs (2.53)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 25 11:21:45 2017 +0200 (2017-10-25)
parents 1cfe6fd269ef
children c4eee79d0693
rev   line source
pascal@20079 1 # SliTaz package receipt v2.
domcox@1046 2
domcox@1046 3 PACKAGE="emacs"
pascal@20079 4 VERSION="25.3"
pascal@18559 5 CATEGORY="editors"
domcox@1046 6 SHORT_DESC="The GNU Emacs editor"
domcox@3938 7 MAINTAINER="domcox@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
pascal@14999 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@14999 10 WEB_SITE="http://www.gnu.org/software/emacs/"
pascal@14999 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pascal@14999 12
domcox@14082 13 BUILD_DEPENDS="atk-dev cairo-dev expat-dev dbus-dev freetype-dev \
psychomaniak@20014 14 fontconfig-dev glib-dev gnutls-dev gtk+-dev jpeg-dev \
domcox@14082 15 libpng-dev librsvg-dev ncurses-dev pango-dev pkg-config tiff-dev xorg-dev \
psychomaniak@20014 16 xorg-dev-proto" # giflib-dev: version 4 needed, add --with-gif=no)
pascal@20079 17 SPLIT="emacs-help emacs-lisp-sources"
domcox@1046 18
domcox@1046 19 # Rules to configure and make the package.
domcox@1046 20 compile_rules()
domcox@1046 21 {
pascal@20079 22 ./configure $CONFIGURE_ARGS \
slaxemulator@11722 23 --infodir=/usr/share/info \
domcox@3938 24 --mandir=/usr/share/man \
domcox@3938 25 --without-makeinfo \
domcox@7830 26 --without-gconf \
psychomaniak@20015 27 --with-gif=no --with-jpeg=no \
domcox@3938 28 --with-sound \
domcox@3938 29 --with-x \
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 && \
gokhlayeh@11574 36 make $MAKEFLAGS && \
slaxemulator@11722 37 make DESTDIR=$DESTDIR 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 {
pascal@20079 43 case $PACKAGE in
pascal@20079 44 emacs)
pascal@20079 45 SUGGESTED="alsa-lib"
pascal@20079 46 TAGS="text-editor"
pascal@20079 47 DEPENDS="atk cairo dbus expat freetype fontconfig giflib glib \
pascal@20079 48 gnutls gtk+ jpeg libpng librsvg util-linux-uuid \
pascal@20079 49 ncurses pango tiff xorg-server zlib librsvg libgsf \
pascal@20079 50 libgnutls harfbuzz"
pascal@20079 51 # Binary files
pascal@20079 52 BIN_FILES="ctags ebrowse emacs-$VERSION emacsclient etags"
pascal@20079 53 echo -n "Copying emacs binary files"
pascal@20079 54 mkdir -p $fs/usr/bin && \
pascal@20079 55 for file in $BIN_FILES; do
pascal@20079 56 cp -a $install/usr/bin/$file $fs/usr/bin
pascal@20079 57 done
pascal@20079 58 status
pascal@20079 59 # Lib files
pascal@20079 60 echo -n "Copying emacs lib files"
pascal@20079 61 cp -a $install/usr/lib $fs/usr
pascal@20079 62 status
pascal@20079 63 strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* 2> /dev/null
pascal@20079 64 # lisp files
pascal@20079 65 LISP_DIR="lisp lisp/calc lisp/calendar lisp/cedet lisp/cedet/ede \
domcox@14082 66 lisp/cedet/semantic lisp/cedet/semantic/analyze lisp/cedet/semantic/bovine \
domcox@14082 67 lisp/cedet/semantic/decorate lisp/cedet/semantic/symref lisp/cedet/srecode \
domcox@14082 68 lisp/cedet/semantic/wisent lisp/emacs-lisp lisp/emulation lisp/erc lisp/eshell \
domcox@14082 69 lisp/gnus lisp/international lisp/language lisp/mail lisp/mh-e lisp/net \
domcox@14082 70 lisp/nxml lisp/obsolete lisp/org lisp/play lisp/progmodes lisp/textmodes \
domcox@14082 71 lisp/url lisp/vc"
pascal@20079 72 for dir in $LISP_DIR; do
pascal@20079 73 echo -n "Copying $dir files"
pascal@20079 74 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \
pascal@20079 75 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \
domcox@14082 76 $fs/usr/share/$PACKAGE/$VERSION/$dir
pascal@20079 77 if [ $(ls $install/usr/share/$PACKAGE/$VERSION/$dir/ | \
pascal@20079 78 grep -c \.el$) -gt 0 ]; then
pascal@20079 79 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.el \
domcox@14082 80 $fs/usr/share/$PACKAGE/$VERSION/$dir
domcox@3938 81 fi
pascal@20079 82 for file in COPYING README TODO; do
pascal@20079 83 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
pascal@20079 84 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
pascal@20079 85 $fs/usr/share/$PACKAGE/$VERSION/$dir
pascal@20079 86 fi
pascal@20079 87 done
pascal@20079 88 status
pascal@20079 89 done
pascal@20079 90 # Use linux term only
pascal@20079 91 LINUX_TERM="README linux.e* rxvt.elc tty-colors.elc vt100.elc xterm.elc"
pascal@20079 92 echo -n "Copying lisp/term files (linux only)"
pascal@20079 93 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/term && \
pascal@20079 94 for file in $LINUX_TERM; do
pascal@20079 95 cp -a $install/usr/share/$PACKAGE/$VERSION/lisp/term/$file \
pascal@20079 96 $fs/usr/share/$PACKAGE/$VERSION/lisp/term
domcox@3938 97 done
domcox@3938 98 status
pascal@20079 99 LEIM_FILES="leim/ja-dic leim/quail"
pascal@20079 100 for dir in $LEIM_FILES; do
pascal@20079 101 echo -n "Copying $dir files"
pascal@20079 102 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/$dir && \
pascal@20079 103 cp -a $install/usr/share/$PACKAGE/$VERSION/lisp/$dir/*.elc \
pascal@20079 104 $fs/usr/share/$PACKAGE/$VERSION/lisp/$dir && \
pascal@20079 105 status
pascal@20079 106 done
pascal@20079 107 # Conf files
pascal@20079 108 echo -n "Copying conf files"
pascal@20079 109 CONF_FILES="ETAGS.README charsets e enriched.txt edt-user.el forms \
pascal@20079 110 emacs-buffer.gdb gnus nxml org schema srecode ps-prin0.ps \
pascal@20079 111 ps-prin1.ps ses-example.ses spook.lines themes yow.lines"
pascal@20079 112 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc && \
pascal@20079 113 for file in $CONF_FILES; do
pascal@20079 114 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
pascal@20079 115 $fs/usr/share/$PACKAGE/$VERSION/etc
domcox@3938 116 done
domcox@3938 117 status
pascal@20079 118 # Pixmaps files
pascal@20079 119 XPM_DIR="images images/custom images/ezimage images/gnus images/gud \
domcox@14082 120 images/icons/allout-widgets/*-bg images/low-color images/mail images/mpc \
domcox@14082 121 images/newsticker images/smilies images/smilies/grayscale \
domcox@14082 122 images/smilies/medium images/tree-widget/default images/tree-widget/folder"
pascal@20079 123 for dir in $XPM_DIR; do
pascal@20079 124 echo -n "Copying $dir xpm files"
pascal@20079 125 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
pascal@20079 126 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.xpm \
pascal@20079 127 $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
pascal@20079 128 for file in COPYING README TODO; do
pascal@20079 129 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
pascal@20079 130 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
pascal@20079 131 $fs/usr/share/$PACKAGE/$VERSION/$dir
pascal@20079 132 fi
pascal@20079 133 done
pascal@20079 134 status
pascal@20079 135 done
pascal@20079 136 echo -n "Copying png files"
pascal@20079 137 ( cd $install/usr/share/$PACKAGE/$VERSION/etc
pascal@20079 138 find -type f -name '*.png' | cpio -o -H newc ) |
pascal@20079 139 ( cd $fs/usr/share/$PACKAGE/$VERSION/etc ; cpio -id )
pascal@20079 140 status
pascal@20079 141 # Licence
pascal@20079 142 GNU_FILES="AUTHORS CENSORSHIP COPYING DISTRIB FTP GNU ORDERS README"
pascal@20079 143 echo -n "Copying License files"
pascal@20079 144 for file in $GNU_FILES; do
pascal@20079 145 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
pascal@20079 146 $fs/usr/share/$PACKAGE/$VERSION/etc
domcox@3938 147 done
domcox@3938 148 status
pascal@20079 149 # Install specific site file
pascal@20079 150 echo -n "Installing specific SliTaz file"
pascal@20079 151 cp -a $install/usr/share/$PACKAGE/$VERSION/site-lisp \
pascal@20079 152 $fs/usr/share/$PACKAGE && \
pascal@20079 153 mkdir -p $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
pascal@20079 154 cp -a $stuff/default.el $stuff/site-start.el \
pascal@20079 155 $fs/usr/share/$PACKAGE/site-lisp && \
pascal@20079 156 cp -a $stuff/90-slitaz.el \
pascal@20079 157 $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
domcox@3939 158 status
pascal@20079 159 # Install desktop files for emacs
pascal@20079 160 echo -n "Installing emacs menu"
pascal@20079 161 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications && \
pascal@20079 162 cp -a $install/usr/share/applications $fs/usr/share/ && \
pascal@20079 163 cp -a $install/usr/share/icons/hicolor/32x32/apps/emacs.png \
pascal@20079 164 $fs/usr/share/pixmaps
pascal@20079 165 status
pascal@20079 166 # Use default site-lisp
pascal@20079 167 cd $fs/usr/share/$PACKAGE/$VERSION
pascal@20079 168 ln -s ../site-lisp site-lisp
pascal@20079 169 ;;
pascal@20079 170 emacs-help)
pascal@20079 171 CAT="development|The GNU Emacs editor - Help files"
pascal@20079 172 DEPENDS="emacs"
pascal@20079 173 # Help files
pascal@20079 174 echo -n "Copying info files"
pascal@20079 175 mkdir -p $fs/usr/share/info && \
pascal@20079 176 cp -a $install/usr/share/info/* $fs/usr/share/info && \
pascal@20079 177 status
pascal@20079 178 # Tutorial
pascal@20079 179 echo -n "Copying tutorial files"
pascal@20079 180 mkdir -p $fs/usr/share/emacs/$VERSION/etc && \
pascal@20079 181 cp -a $install/usr/share/emacs/$VERSION/etc/tutorials \
pascal@20079 182 $fs/usr/share/emacs/$VERSION/etc
pascal@20079 183 status
pascal@20079 184 # refcards
pascal@20079 185 echo -n "Copying refcards"
pascal@20079 186 mkdir -p $fs/usr/share/emacs/$VERSION/etc/refcards && \
pascal@20079 187 cp -a $install/usr/share/emacs/$VERSION/etc/refcards/*pdf \
pascal@20079 188 $fs/usr/share/emacs/$VERSION/etc/refcards
pascal@20079 189 status
pascal@20079 190 # Doc
pascal@20079 191 echo -n "Copying doc files"
pascal@20079 192 cp -a $install/usr/share/emacs/$VERSION/etc/[A-Z]* \
pascal@20079 193 $fs/usr/share/emacs/$VERSION/etc
pascal@20079 194 cp -a $install/usr/share/emacs/$VERSION/etc/*.txt \
pascal@20079 195 $fs/usr/share/emacs/$VERSION/etc
pascal@20079 196 status
pascal@20079 197 ;;
pascal@20079 198 emacs-lisp-sources)
pascal@20079 199 CAT="development|The GNU Emacs editor - Lisp source files"
pascal@20079 200 DEPENDS="emacs"
pascal@20079 201 # lisp files
pascal@20079 202 echo -n "Copying sources"
pascal@20079 203 ( cd $install/usr/share/$PACKAGE/$VERSION/etc/lisp
pascal@20079 204 find -type f -name '*.el.gz' | cpio -o -H newc ) |
pascal@20079 205 ( cd $fs/usr/share/$PACKAGE/$VERSION/etc/list ; cpio -id )
pascal@20079 206 # refcards
pascal@20079 207 echo -n "Copying refcards sources"
pascal@20079 208 mkdir -p $fs/usr/share/$WANTED/$VERSION/etc/refcards
pascal@20079 209 cp -a $install/usr/share/$WANTED/$VERSION/etc/refcards/*tex \
pascal@20079 210 $fs/usr/share/$WANTED/$VERSION/etc/refcards
pascal@20079 211 status
pascal@20079 212 # Doc
pascal@20079 213 echo -n "Copying doc files"
pascal@20079 214 DOC_FILES="DEBUG MACHINES TODO"
pascal@20079 215 for file in $DOC_FILES; do
pascal@20079 216 cp -a $install/usr/share/emacs/$VERSION/etc/$file \
pascal@20079 217 $fs/usr/share/emacs/$VERSION/etc
pascal@20079 218 done
pascal@20079 219 status
pascal@20079 220 ;;
pascal@20079 221 esac
domcox@1046 222 }
domcox@1380 223
pascal@20079 224 post_install_emacs()
domcox@3939 225 {
domcox@14082 226 # linking /usr/bin/emacs to new version
pascal@18730 227 [ -h "$1/usr/bin/emacs" ] && rm -f "$1/usr/bin/emacs"
pascal@18730 228 ln -s /usr/bin/emacs-$VERSION "$1/usr/bin/emacs"
domcox@3939 229 }
domcox@3939 230
pascal@20079 231 post_remove_emacs()
domcox@1380 232 {
pascal@18730 233 rm -rf "$1/usr/share/emacs"
pascal@18730 234 rm -rf "$1/usr/lib/emacs"
pascal@18730 235 rm -f "$1/usr/bin/emacs"
llevrel@18794 236 }