wok annotate emacs/receipt @ rev 22689

updated emacs (24.3 -> 26.3)
author Hans-G?nter Theisgen
date Mon Jan 20 16:49:20 2020 +0100 (2020-01-20)
parents 11e446052847
children 4bd6f9e1ae03
rev   line source
domcox@1046 1 # SliTaz package receipt.
domcox@1046 2
domcox@1046 3 PACKAGE="emacs"
Hans-G?nter@22689 4 VERSION="26.3"
pascal@18559 5 CATEGORY="editors"
Hans-G?nter@22689 6 TAGS="text-editor"
Hans-G?nter@22689 7 SHORT_DESC="The GNU Emacs editor."
domcox@3938 8 MAINTAINER="domcox@slitaz.org"
pascal@14999 9 LICENSE="GPL3"
Hans-G?nter@22689 10 WEB_SITE="https://www.gnu.org/software/emacs/"
Hans-G?nter@22689 11
Hans-G?nter@22689 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
Hans-G?nter@22689 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
Hans-G?nter@22689 14
pascal@14999 15 SUGGESTED="alsa-lib"
Hans-G?nter@22689 16 DEPENDS="atk cairo dbus expat fontconfig freetype giflib glib gnutls gtk+
Hans-G?nter@22689 17 harfbuzz jpeg libgio libgnutls libgsf libpng librsvg libtinfo ncurses
Hans-G?nter@22689 18 pango tiff util-linux-uuid xorg-server zlib"
Hans-G?nter@22689 19 BUILD_DEPENDS="atk-dev cairo-dev dbus-dev expat-dev fontconfig-dev freetype-dev
Hans-G?nter@22689 20 giflib-dev glib-dev gnutls-dev gtk+-dev jpeg-dev libgio-dev libgnutls
Hans-G?nter@22689 21 libpng-dev librsvg-dev ncurses-dev pango-dev pkg-config tiff-dev xorg-dev
Hans-G?nter@22689 22 xorg-dev-proto"
domcox@1046 23
domcox@1046 24 # Rules to configure and make the package.
domcox@1046 25 compile_rules()
domcox@1046 26 {
pascal@22363 27 sed -i 's|EGifPutExtensionLast|EGifPutExtensionTrailer|' configure*
pascal@22363 28 sed -i 's|\(gif = fn_DGifOpen.*\));|\1,NULL);|' src/image.c
pascal@22363 29 sed -i 's|fn_DGifCloseFile (gif|&,NULL|' src/image.c
pascal@22363 30
domcox@1046 31 # Gzip workaround in busybox
domcox@1900 32 sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' Makefile.in
domcox@1900 33 sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' leim/Makefile.in
Hans-G?nter@22689 34
pascal@5582 35 # Configure (with GCC 4.5.0 workaround)
Hans-G?nter@22689 36 ./configure \
Hans-G?nter@22689 37 CFLAGS="-g -O2 -fno-optimize-sibling-calls" \
Hans-G?nter@22689 38 --infodir=/usr/share/info \
Hans-G?nter@22689 39 --mandir=/usr/share/man \
Hans-G?nter@22689 40 --without-makeinfo \
Hans-G?nter@22689 41 --without-gconf \
Hans-G?nter@22689 42 --with-sound \
Hans-G?nter@22689 43 --with-x \
Hans-G?nter@22689 44 --with-toolkit-scroll-bars \
Hans-G?nter@22689 45 --with-xpm=yes \
Hans-G?nter@22689 46 --libexecdir=/usr/lib \
Hans-G?nter@22689 47 --localstatedir=/var/lib \
Hans-G?nter@22689 48 --sharedstatedir=/var/lib \
Hans-G?nter@22689 49 --prefix=/usr \
Hans-G?nter@22689 50 $CONFIGURE_ARGS &&
Hans-G?nter@22689 51 make $MAKEFLAGS &&
slaxemulator@11722 52 make DESTDIR=$DESTDIR install
domcox@1046 53 }
domcox@1046 54
domcox@1046 55 # Rules to gen a SliTaz package suitable for Tazpkg.
domcox@1046 56 genpkg_rules()
domcox@1046 57 {
domcox@1046 58 # Binary files
Hans-G?nter@22689 59 BIN_FILES="ctags ebrowse emacs-$VERSION emacsclient etags"
domcox@3938 60 echo -n "Copying emacs binary files"
Hans-G?nter@22689 61 mkdir -p $fs/usr/bin &&
Hans-G?nter@22689 62 for file in $BIN_FILES
Hans-G?nter@22689 63 do
Hans-G?nter@22689 64 cp -a $install/usr/bin/$file $fs/usr/bin
Hans-G?nter@22689 65 done
domcox@3938 66 status
Hans-G?nter@22689 67 ln -s /usr/bin/emacs-$VERSION $fs/usr/bin/emacs
Hans-G?nter@22689 68 ln -s /usr/bin/emacs-$VERSION $fs/usr/bin/xemacs
Hans-G?nter@22689 69
Hans-G?nter@22689 70 # Libraries
Hans-G?nter@22689 71 echo -n "Copying emacs libraries"
Hans-G?nter@22689 72 cp -a $install/usr/lib $fs/usr
domcox@3938 73 status
domcox@14082 74 strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* 2> /dev/null
Hans-G?nter@22689 75
domcox@3938 76 # lisp files
domcox@14082 77 LISP_DIR="lisp lisp/calc lisp/calendar lisp/cedet lisp/cedet/ede \
domcox@14082 78 lisp/cedet/semantic lisp/cedet/semantic/analyze lisp/cedet/semantic/bovine \
domcox@14082 79 lisp/cedet/semantic/decorate lisp/cedet/semantic/symref lisp/cedet/srecode \
domcox@14082 80 lisp/cedet/semantic/wisent lisp/emacs-lisp lisp/emulation lisp/erc lisp/eshell \
domcox@14082 81 lisp/gnus lisp/international lisp/language lisp/mail lisp/mh-e lisp/net \
domcox@14082 82 lisp/nxml lisp/obsolete lisp/org lisp/play lisp/progmodes lisp/textmodes \
domcox@14082 83 lisp/url lisp/vc"
Hans-G?nter@22689 84 for dir in $LISP_DIR
Hans-G?nter@22689 85 do
domcox@3938 86 echo -n "Copying $dir files"
Hans-G?nter@22689 87 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir &&
pascal@14999 88 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \
domcox@14082 89 $fs/usr/share/$PACKAGE/$VERSION/$dir
pascal@14999 90 if [ $(ls $install/usr/share/$PACKAGE/$VERSION/$dir/ | \
Hans-G?nter@22689 91 grep -c \.el$) -gt 0 ]
Hans-G?nter@22689 92 then
pascal@14999 93 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.el \
domcox@14082 94 $fs/usr/share/$PACKAGE/$VERSION/$dir
domcox@3938 95 fi
Hans-G?nter@22689 96 for file in COPYING README TODO
Hans-G?nter@22689 97 do
Hans-G?nter@22689 98 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]
Hans-G?nter@22689 99 then
pascal@14999 100 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
domcox@14082 101 $fs/usr/share/$PACKAGE/$VERSION/$dir
domcox@3938 102 fi
Hans-G?nter@22689 103 done
domcox@3938 104 status
Hans-G?nter@22689 105 done
Hans-G?nter@22689 106
Hans-G?nter@22689 107 # Use linux terminal only
domcox@14082 108 LINUX_TERM="README linux.e* rxvt.elc tty-colors.elc vt100.elc xterm.elc"
domcox@3938 109 echo -n "Copying lisp/term files (linux only)"
Hans-G?nter@22689 110 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/term &&
Hans-G?nter@22689 111 for file in $LINUX_TERM
Hans-G?nter@22689 112 do
pascal@14999 113 cp -a $install/usr/share/$PACKAGE/$VERSION/lisp/term/$file \
domcox@14082 114 $fs/usr/share/$PACKAGE/$VERSION/lisp/term
Hans-G?nter@22689 115 done
domcox@3938 116 status
Hans-G?nter@22689 117
domcox@3938 118 # leim files
domcox@3938 119 echo -n "Copying leim files"
Hans-G?nter@22689 120 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/leim &&
pascal@14999 121 cp -a $install/usr/share/$PACKAGE/$VERSION/leim/*.el \
Hans-G?nter@22689 122 $fs/usr/share/$PACKAGE/$VERSION/leim
domcox@3938 123 status
domcox@3938 124 LEIM_FILES="leim/ja-dic leim/quail"
Hans-G?nter@22689 125 for dir in $LEIM_FILES
Hans-G?nter@22689 126 do
domcox@3938 127 echo -n "Copying $dir files"
Hans-G?nter@22689 128 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir &&
pascal@14999 129 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \
domcox@14082 130 $fs/usr/share/$PACKAGE/$VERSION/$dir && \
Hans-G?nter@22689 131 for file in COPYING README TODO
Hans-G?nter@22689 132 do
Hans-G?nter@22689 133 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]
Hans-G?nter@22689 134 then
pascal@14999 135 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
domcox@14082 136 $fs/usr/share/$PACKAGE/$VERSION/$dir
domcox@3938 137 fi
Hans-G?nter@22689 138 done
domcox@3938 139 status
Hans-G?nter@22689 140 done
Hans-G?nter@22689 141
Hans-G?nter@22689 142 # Configuration files
Hans-G?nter@22689 143 echo -n "Copying configuration files"
Hans-G?nter@22689 144 CONF_FILES="ETAGS.README charsets e edt-user.el forms \
domcox@14190 145 emacs-buffer.gdb gnus nxml org schema srecode ps-prin0.ps \
domcox@14082 146 ps-prin1.ps ses-example.ses spook.lines themes yow.lines"
Hans-G?nter@22689 147 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc &&
Hans-G?nter@22689 148 for file in $CONF_FILES
Hans-G?nter@22689 149 do
pascal@14999 150 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
domcox@14082 151 $fs/usr/share/$PACKAGE/$VERSION/etc
Hans-G?nter@22689 152 done
domcox@3938 153 status
Hans-G?nter@22689 154
domcox@3938 155 # Pixmaps files
domcox@14082 156 XPM_DIR="images images/custom images/ezimage images/gnus images/gud \
domcox@14082 157 images/icons/allout-widgets/*-bg images/low-color images/mail images/mpc \
domcox@14082 158 images/newsticker images/smilies images/smilies/grayscale \
domcox@14082 159 images/smilies/medium images/tree-widget/default images/tree-widget/folder"
Hans-G?nter@22689 160 for dir in $XPM_DIR
Hans-G?nter@22689 161 do
domcox@3939 162 echo -n "Copying $dir xpm files"
Hans-G?nter@22689 163 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir &&
pascal@14999 164 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.xpm \
Hans-G?nter@22689 165 $fs/usr/share/$PACKAGE/$VERSION/etc/$dir &&
Hans-G?nter@22689 166 for file in COPYING README TODO
Hans-G?nter@22689 167 do
Hans-G?nter@22689 168 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]
Hans-G?nter@22689 169 then
pascal@14999 170 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
domcox@14082 171 $fs/usr/share/$PACKAGE/$VERSION/$dir
domcox@3938 172 fi
Hans-G?nter@22689 173 done
domcox@3938 174 status
Hans-G?nter@22689 175 done
pascal@19731 176 PNG_DIR="images images/gnus images/icons/allout-widgets/dark-bg \
pascal@19731 177 images/icons/allout-widgets/light-bg images/tree-widget/default \
pascal@19731 178 images/tree-widget/folder"
Hans-G?nter@22689 179 for dir in $PNG_DIR
Hans-G?nter@22689 180 do
domcox@3939 181 echo -n "Copying $dir png files"
pascal@19731 182 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir 2> /dev/null || true
pascal@14999 183 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.png \
Hans-G?nter@22689 184 $fs/usr/share/$PACKAGE/$VERSION/etc/$dir &&
domcox@3939 185 status
Hans-G?nter@22689 186 done
Hans-G?nter@22689 187
domcox@3938 188 # Licence
Hans-G?nter@22689 189 GNU_FILES="AUTHORS CENSORSHIP COPYING DISTRIB FTP GNU ORDERS README SERVICE"
domcox@3938 190 echo -n "Copying License files"
Hans-G?nter@22689 191 for file in $GNU_FILES
Hans-G?nter@22689 192 do
pascal@14999 193 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
domcox@14082 194 $fs/usr/share/$PACKAGE/$VERSION/etc
Hans-G?nter@22689 195 done
domcox@3938 196 status
Hans-G?nter@22689 197
Hans-G?nter@22689 198 # Install specific site files
Hans-G?nter@22689 199 echo -n "Installing specific SliTaz files"
pascal@14999 200 cp -a $install/usr/share/$PACKAGE/$VERSION/site-lisp \
Hans-G?nter@22689 201 $fs/usr/share/$PACKAGE &&
Hans-G?nter@22689 202 mkdir -p $fs/usr/share/$PACKAGE/site-lisp/site-start.d &&
Hans-G?nter@22689 203 cp -a $stuff/default.el $fs/usr/share/$PACKAGE/site-lisp &&
Hans-G?nter@22689 204 cp -a $stuff/site-start.el $fs/usr/share/$PACKAGE/site-lisp &&
Hans-G?nter@22689 205 cp -a $stuff/90-slitaz.el $fs/usr/share/$PACKAGE/site-lisp/site-start.d &&
domcox@3938 206 status
Hans-G?nter@22689 207
domcox@3938 208 # Install desktop files for emacs
domcox@3938 209 echo -n "Installing emacs menu"
Hans-G?nter@22689 210 mkdir -p $fs/usr/share/pixmaps &&
Hans-G?nter@22689 211 mkdir -p $fs/usr/share/applications &&
Hans-G?nter@22689 212 cp -a $install/usr/share/applications $fs/usr/share/ &&
pascal@14999 213 cp -a $install/usr/share/icons/hicolor/32x32/apps/emacs.png \
Hans-G?nter@22689 214 $fs/usr/share/pixmaps
domcox@3938 215 status
Hans-G?nter@22689 216
domcox@14082 217 # Use default site-lisp
domcox@14082 218 cd $fs/usr/share/$PACKAGE/$VERSION
domcox@1046 219 ln -s ../site-lisp site-lisp
domcox@1046 220 }