wok-next diff 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 |
line diff
1.1 --- a/emacs/receipt Sat Oct 21 22:32:46 2017 +0200 1.2 +++ b/emacs/receipt Wed Oct 25 11:21:45 2017 +0200 1.3 @@ -1,33 +1,25 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="emacs" 1.8 -VERSION="24.3" 1.9 +VERSION="25.3" 1.10 CATEGORY="editors" 1.11 SHORT_DESC="The GNU Emacs editor" 1.12 MAINTAINER="domcox@slitaz.org" 1.13 LICENSE="GPL3" 1.14 -SUGGESTED="alsa-lib" 1.15 TARBALL="$PACKAGE-$VERSION.tar.xz" 1.16 WEB_SITE="http://www.gnu.org/software/emacs/" 1.17 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" 1.18 -TAGS="text-editor" 1.19 1.20 -DEPENDS="atk cairo dbus expat freetype fontconfig giflib glib gnutls gtk+ jpeg \ 1.21 -libpng librsvg util-linux-uuid ncurses pango tiff xorg-server zlib \ 1.22 -librsvg libgsf libgnutls harfbuzz" 1.23 BUILD_DEPENDS="atk-dev cairo-dev expat-dev dbus-dev freetype-dev \ 1.24 fontconfig-dev glib-dev gnutls-dev gtk+-dev jpeg-dev \ 1.25 libpng-dev librsvg-dev ncurses-dev pango-dev pkg-config tiff-dev xorg-dev \ 1.26 xorg-dev-proto" # giflib-dev: version 4 needed, add --with-gif=no) 1.27 +SPLIT="emacs-help emacs-lisp-sources" 1.28 1.29 # Rules to configure and make the package. 1.30 compile_rules() 1.31 { 1.32 - # Gzip workaround in busybox 1.33 - sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' Makefile.in 1.34 - sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' leim/Makefile.in 1.35 - # Configure (with GCC 4.5.0 workaround) 1.36 - CFLAGS="-g -O2 -fno-optimize-sibling-calls" ./configure $CONFIGURE_ARGS \ 1.37 + ./configure $CONFIGURE_ARGS \ 1.38 --infodir=/usr/share/info \ 1.39 --mandir=/usr/share/man \ 1.40 --without-makeinfo \ 1.41 @@ -48,150 +40,195 @@ 1.42 # Rules to gen a SliTaz package suitable for Tazpkg. 1.43 genpkg_rules() 1.44 { 1.45 - # Binary files 1.46 - BIN_FILES="ctags ebrowse emacs-$VERSION emacsclient etags grep-changelog" 1.47 - echo -n "Copying emacs binary files" 1.48 - mkdir -p $fs/usr/bin && \ 1.49 - for file in $BIN_FILES; do 1.50 - cp -a $install/usr/bin/$file $fs/usr/bin 1.51 - done 1.52 - status 1.53 - # Lib files 1.54 - echo -n "Copying emacs lib files" 1.55 - cp -a $install/usr/lib $fs/usr 1.56 - status 1.57 - strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* 2> /dev/null 1.58 - # lisp files 1.59 - LISP_DIR="lisp lisp/calc lisp/calendar lisp/cedet lisp/cedet/ede \ 1.60 + case $PACKAGE in 1.61 + emacs) 1.62 + SUGGESTED="alsa-lib" 1.63 + TAGS="text-editor" 1.64 + DEPENDS="atk cairo dbus expat freetype fontconfig giflib glib \ 1.65 + gnutls gtk+ jpeg libpng librsvg util-linux-uuid \ 1.66 + ncurses pango tiff xorg-server zlib librsvg libgsf \ 1.67 + libgnutls harfbuzz" 1.68 + # Binary files 1.69 + BIN_FILES="ctags ebrowse emacs-$VERSION emacsclient etags" 1.70 + echo -n "Copying emacs binary files" 1.71 + mkdir -p $fs/usr/bin && \ 1.72 + for file in $BIN_FILES; do 1.73 + cp -a $install/usr/bin/$file $fs/usr/bin 1.74 + done 1.75 + status 1.76 + # Lib files 1.77 + echo -n "Copying emacs lib files" 1.78 + cp -a $install/usr/lib $fs/usr 1.79 + status 1.80 + strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* 2> /dev/null 1.81 + # lisp files 1.82 + LISP_DIR="lisp lisp/calc lisp/calendar lisp/cedet lisp/cedet/ede \ 1.83 lisp/cedet/semantic lisp/cedet/semantic/analyze lisp/cedet/semantic/bovine \ 1.84 lisp/cedet/semantic/decorate lisp/cedet/semantic/symref lisp/cedet/srecode \ 1.85 lisp/cedet/semantic/wisent lisp/emacs-lisp lisp/emulation lisp/erc lisp/eshell \ 1.86 lisp/gnus lisp/international lisp/language lisp/mail lisp/mh-e lisp/net \ 1.87 lisp/nxml lisp/obsolete lisp/org lisp/play lisp/progmodes lisp/textmodes \ 1.88 lisp/url lisp/vc" 1.89 - for dir in $LISP_DIR; do 1.90 - echo -n "Copying $dir files" 1.91 - mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \ 1.92 - cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \ 1.93 - $fs/usr/share/$PACKAGE/$VERSION/$dir 1.94 - if [ $(ls $install/usr/share/$PACKAGE/$VERSION/$dir/ | \ 1.95 -grep -c \.el$) -gt 0 ]; then 1.96 - cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.el \ 1.97 + for dir in $LISP_DIR; do 1.98 + echo -n "Copying $dir files" 1.99 + mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \ 1.100 + cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \ 1.101 $fs/usr/share/$PACKAGE/$VERSION/$dir 1.102 - fi 1.103 - for file in COPYING README TODO; do 1.104 - if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then 1.105 - cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \ 1.106 + if [ $(ls $install/usr/share/$PACKAGE/$VERSION/$dir/ | \ 1.107 + grep -c \.el$) -gt 0 ]; then 1.108 + cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.el \ 1.109 $fs/usr/share/$PACKAGE/$VERSION/$dir 1.110 fi 1.111 + for file in COPYING README TODO; do 1.112 + if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then 1.113 + cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \ 1.114 + $fs/usr/share/$PACKAGE/$VERSION/$dir 1.115 + fi 1.116 + done 1.117 + status 1.118 + done 1.119 + # Use linux term only 1.120 + LINUX_TERM="README linux.e* rxvt.elc tty-colors.elc vt100.elc xterm.elc" 1.121 + echo -n "Copying lisp/term files (linux only)" 1.122 + mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/term && \ 1.123 + for file in $LINUX_TERM; do 1.124 + cp -a $install/usr/share/$PACKAGE/$VERSION/lisp/term/$file \ 1.125 + $fs/usr/share/$PACKAGE/$VERSION/lisp/term 1.126 done 1.127 status 1.128 - done 1.129 - # Use linux term only 1.130 - LINUX_TERM="README linux.e* rxvt.elc tty-colors.elc vt100.elc xterm.elc" 1.131 - echo -n "Copying lisp/term files (linux only)" 1.132 - mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/term && \ 1.133 - for file in $LINUX_TERM; do 1.134 - cp -a $install/usr/share/$PACKAGE/$VERSION/lisp/term/$file \ 1.135 - $fs/usr/share/$PACKAGE/$VERSION/lisp/term 1.136 - done 1.137 - status 1.138 - # leim files 1.139 - echo -n "Copying leim files" 1.140 - mkdir -p $fs/usr/share/$PACKAGE/$VERSION/leim && \ 1.141 - cp -a $install/usr/share/$PACKAGE/$VERSION/leim/*.el \ 1.142 - $fs/usr/share/$PACKAGE/$VERSION/leim 1.143 - status 1.144 - LEIM_FILES="leim/ja-dic leim/quail" 1.145 - for dir in $LEIM_FILES; do 1.146 - echo -n "Copying $dir files" 1.147 - mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \ 1.148 - cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \ 1.149 - $fs/usr/share/$PACKAGE/$VERSION/$dir && \ 1.150 - for file in COPYING README TODO; do 1.151 - if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then 1.152 - cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \ 1.153 - $fs/usr/share/$PACKAGE/$VERSION/$dir 1.154 - fi 1.155 + LEIM_FILES="leim/ja-dic leim/quail" 1.156 + for dir in $LEIM_FILES; do 1.157 + echo -n "Copying $dir files" 1.158 + mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/$dir && \ 1.159 + cp -a $install/usr/share/$PACKAGE/$VERSION/lisp/$dir/*.elc \ 1.160 + $fs/usr/share/$PACKAGE/$VERSION/lisp/$dir && \ 1.161 + status 1.162 + done 1.163 + # Conf files 1.164 + echo -n "Copying conf files" 1.165 + CONF_FILES="ETAGS.README charsets e enriched.txt edt-user.el forms \ 1.166 +emacs-buffer.gdb gnus nxml org schema srecode ps-prin0.ps \ 1.167 +ps-prin1.ps ses-example.ses spook.lines themes yow.lines" 1.168 + mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc && \ 1.169 + for file in $CONF_FILES; do 1.170 + cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \ 1.171 + $fs/usr/share/$PACKAGE/$VERSION/etc 1.172 done 1.173 status 1.174 - done 1.175 - # Conf files 1.176 - echo -n "Copying conf files" 1.177 - CONF_FILES="ETAGS.README charsets e enriched.doc edt-user.el forms \ 1.178 -emacs-buffer.gdb gnus nxml org schema srecode ps-prin0.ps \ 1.179 -ps-prin1.ps ses-example.ses spook.lines themes yow.lines" 1.180 - mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc && \ 1.181 - for file in $CONF_FILES; do 1.182 - cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \ 1.183 - $fs/usr/share/$PACKAGE/$VERSION/etc 1.184 - done 1.185 - status 1.186 - # Pixmaps files 1.187 - XPM_DIR="images images/custom images/ezimage images/gnus images/gud \ 1.188 + # Pixmaps files 1.189 + XPM_DIR="images images/custom images/ezimage images/gnus images/gud \ 1.190 images/icons/allout-widgets/*-bg images/low-color images/mail images/mpc \ 1.191 images/newsticker images/smilies images/smilies/grayscale \ 1.192 images/smilies/medium images/tree-widget/default images/tree-widget/folder" 1.193 - for dir in $XPM_DIR; do 1.194 - echo -n "Copying $dir xpm files" 1.195 - mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \ 1.196 - cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.xpm \ 1.197 - $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \ 1.198 - for file in COPYING README TODO; do 1.199 - if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then 1.200 - cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \ 1.201 - $fs/usr/share/$PACKAGE/$VERSION/$dir 1.202 - fi 1.203 + for dir in $XPM_DIR; do 1.204 + echo -n "Copying $dir xpm files" 1.205 + mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \ 1.206 + cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.xpm \ 1.207 + $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \ 1.208 + for file in COPYING README TODO; do 1.209 + if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then 1.210 + cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \ 1.211 + $fs/usr/share/$PACKAGE/$VERSION/$dir 1.212 + fi 1.213 + done 1.214 + status 1.215 + done 1.216 + echo -n "Copying png files" 1.217 + ( cd $install/usr/share/$PACKAGE/$VERSION/etc 1.218 + find -type f -name '*.png' | cpio -o -H newc ) | 1.219 + ( cd $fs/usr/share/$PACKAGE/$VERSION/etc ; cpio -id ) 1.220 + status 1.221 + # Licence 1.222 + GNU_FILES="AUTHORS CENSORSHIP COPYING DISTRIB FTP GNU ORDERS README" 1.223 + echo -n "Copying License files" 1.224 + for file in $GNU_FILES; do 1.225 + cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \ 1.226 + $fs/usr/share/$PACKAGE/$VERSION/etc 1.227 done 1.228 status 1.229 - done 1.230 - PNG_DIR="images images/gnus images/icons/allout-widgets/*-bg \ 1.231 -images/tree-widget/default images/tree-widget/folder" 1.232 - for dir in $PNG_DIR; do 1.233 - echo -n "Copying $dir png files" 1.234 - cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.png \ 1.235 - $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \ 1.236 + # Install specific site file 1.237 + echo -n "Installing specific SliTaz file" 1.238 + cp -a $install/usr/share/$PACKAGE/$VERSION/site-lisp \ 1.239 + $fs/usr/share/$PACKAGE && \ 1.240 + mkdir -p $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \ 1.241 + cp -a $stuff/default.el $stuff/site-start.el \ 1.242 + $fs/usr/share/$PACKAGE/site-lisp && \ 1.243 + cp -a $stuff/90-slitaz.el \ 1.244 + $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \ 1.245 status 1.246 - done 1.247 - # Licence 1.248 - GNU_FILES="AUTHORS CENSORSHIP COPYING DISTRIB FTP GNU ORDERS README \ 1.249 -SERVICE copying.paper" 1.250 - echo -n "Copying License files" 1.251 - for file in $GNU_FILES; do 1.252 - cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \ 1.253 - $fs/usr/share/$PACKAGE/$VERSION/etc 1.254 - done 1.255 - status 1.256 - # Install specific site file 1.257 - echo -n "Installing specific SliTaz file" 1.258 - cp -a $install/usr/share/$PACKAGE/$VERSION/site-lisp \ 1.259 - $fs/usr/share/$PACKAGE && \ 1.260 - mkdir -p $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \ 1.261 - cp -a $stuff/default.el $stuff/site-start.el \ 1.262 - $fs/usr/share/$PACKAGE/site-lisp && \ 1.263 - cp -a $stuff/90-slitaz.el \ 1.264 - $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \ 1.265 - status 1.266 - # Install desktop files for emacs 1.267 - echo -n "Installing emacs menu" 1.268 - mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications && \ 1.269 - cp -a $install/usr/share/applications $fs/usr/share/ && \ 1.270 - cp -a $install/usr/share/icons/hicolor/32x32/apps/emacs.png \ 1.271 - $fs/usr/share/pixmaps 1.272 - status 1.273 - # Use default site-lisp 1.274 - cd $fs/usr/share/$PACKAGE/$VERSION 1.275 - ln -s ../site-lisp site-lisp 1.276 + # Install desktop files for emacs 1.277 + echo -n "Installing emacs menu" 1.278 + mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications && \ 1.279 + cp -a $install/usr/share/applications $fs/usr/share/ && \ 1.280 + cp -a $install/usr/share/icons/hicolor/32x32/apps/emacs.png \ 1.281 + $fs/usr/share/pixmaps 1.282 + status 1.283 + # Use default site-lisp 1.284 + cd $fs/usr/share/$PACKAGE/$VERSION 1.285 + ln -s ../site-lisp site-lisp 1.286 + ;; 1.287 + emacs-help) 1.288 + CAT="development|The GNU Emacs editor - Help files" 1.289 + DEPENDS="emacs" 1.290 + # Help files 1.291 + echo -n "Copying info files" 1.292 + mkdir -p $fs/usr/share/info && \ 1.293 + cp -a $install/usr/share/info/* $fs/usr/share/info && \ 1.294 + status 1.295 + # Tutorial 1.296 + echo -n "Copying tutorial files" 1.297 + mkdir -p $fs/usr/share/emacs/$VERSION/etc && \ 1.298 + cp -a $install/usr/share/emacs/$VERSION/etc/tutorials \ 1.299 + $fs/usr/share/emacs/$VERSION/etc 1.300 + status 1.301 + # refcards 1.302 + echo -n "Copying refcards" 1.303 + mkdir -p $fs/usr/share/emacs/$VERSION/etc/refcards && \ 1.304 + cp -a $install/usr/share/emacs/$VERSION/etc/refcards/*pdf \ 1.305 + $fs/usr/share/emacs/$VERSION/etc/refcards 1.306 + status 1.307 + # Doc 1.308 + echo -n "Copying doc files" 1.309 + cp -a $install/usr/share/emacs/$VERSION/etc/[A-Z]* \ 1.310 + $fs/usr/share/emacs/$VERSION/etc 1.311 + cp -a $install/usr/share/emacs/$VERSION/etc/*.txt \ 1.312 + $fs/usr/share/emacs/$VERSION/etc 1.313 + status 1.314 + ;; 1.315 + emacs-lisp-sources) 1.316 + CAT="development|The GNU Emacs editor - Lisp source files" 1.317 + DEPENDS="emacs" 1.318 + # lisp files 1.319 + echo -n "Copying sources" 1.320 + ( cd $install/usr/share/$PACKAGE/$VERSION/etc/lisp 1.321 + find -type f -name '*.el.gz' | cpio -o -H newc ) | 1.322 + ( cd $fs/usr/share/$PACKAGE/$VERSION/etc/list ; cpio -id ) 1.323 + # refcards 1.324 + echo -n "Copying refcards sources" 1.325 + mkdir -p $fs/usr/share/$WANTED/$VERSION/etc/refcards 1.326 + cp -a $install/usr/share/$WANTED/$VERSION/etc/refcards/*tex \ 1.327 + $fs/usr/share/$WANTED/$VERSION/etc/refcards 1.328 + status 1.329 + # Doc 1.330 + echo -n "Copying doc files" 1.331 + DOC_FILES="DEBUG MACHINES TODO" 1.332 + for file in $DOC_FILES; do 1.333 + cp -a $install/usr/share/emacs/$VERSION/etc/$file \ 1.334 + $fs/usr/share/emacs/$VERSION/etc 1.335 + done 1.336 + status 1.337 + ;; 1.338 + esac 1.339 } 1.340 1.341 -post_install() 1.342 +post_install_emacs() 1.343 { 1.344 # linking /usr/bin/emacs to new version 1.345 [ -h "$1/usr/bin/emacs" ] && rm -f "$1/usr/bin/emacs" 1.346 ln -s /usr/bin/emacs-$VERSION "$1/usr/bin/emacs" 1.347 } 1.348 1.349 -post_remove() 1.350 +post_remove_emacs() 1.351 { 1.352 rm -rf "$1/usr/share/emacs" 1.353 rm -rf "$1/usr/lib/emacs"