wok-next view emacs/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children 4d9f82dabdbb
line source
1 # SliTaz package receipt v2.
3 PACKAGE="emacs"
4 VERSION="25.3"
5 CATEGORY="editors"
6 SHORT_DESC="The GNU Emacs editor"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.gnu.org/software/emacs/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="atk-dev cairo-dev expat-dev dbus-dev freetype-dev \
15 fontconfig-dev glib-dev gnutls-dev gtk2-dev jpeg-dev \
16 libpng16-dev librsvg-dev ncurses-dev pango-dev tiff-dev xorg-dev \
17 xorg-dev-proto" # giflib-dev: version 4 needed, add --with-gif=no)
18 SPLIT="$PACKAGE-help $PACKAGE-lisp-sources $PACKAGE"
20 compile_rules() {
21 ./configure \
22 --infodir=/usr/share/info \
23 --mandir=/usr/share/man \
24 --without-makeinfo \
25 --without-gconf \
26 --with-gif=no --with-jpeg=no \
27 --with-sound \
28 --with-x \
29 --with-toolkit-scroll-bars \
30 --with-xpm=yes \
31 --libexecdir=/usr/lib \
32 --localstatedir=/var/lib \
33 --sharedstatedir=/var/lib \
34 $CONFIGURE_ARGS &&
35 make $MAKEFLAGS &&
36 make DESTDIR=$install install || return 1
38 # Install specific site file
39 mkdir -p $install/usr/share/emacs/site-lisp/site-start.d
40 cp -a $stuff/default.el \
41 $stuff/site-start.el $install/usr/share/emacs/site-lisp/
42 cp -a $stuff/90-slitaz.el $install/usr/share/emacs/site-lisp/site-start.d
44 # Use default site-lisp
45 ln -s ../site-lisp $install/usr/share/emacs/$VERSION/site-lisp
47 chown -R root:root $install
48 }
50 genpkg_rules() {
51 case $PACKAGE in
52 emacs-help)
53 copy \
54 info/ \
55 tutorials/ \
56 refcards/*.pdf \
57 etc/[A-Z]* \
58 etc/*.txt
59 DEPENDS="emacs"
60 CAT="development|help files"
61 ;;
62 emacs-lisp-sources)
63 copy \
64 *.el.gz \
65 refcards/*.tex
66 DEPENDS="emacs"
67 CAT="development|Lisp source files"
68 ;;
69 emacs)
70 copy @std @dev @rm
71 strip -s $fs/usr/lib/emacs/$VERSION/i486-pc-linux-gnu/* 2>/dev/null
72 DEPENDS="atk cairo dbus expat freetype fontconfig giflib glib \
73 gnutls gtk2 jpeg libpng16 librsvg util-linux-uuid \
74 ncurses pango tiff xorg-server zlib librsvg libgsf \
75 libgnutls harfbuzz"
76 SUGGESTED="alsa-lib"
77 TAGS="text-editor"
78 ;;
79 esac
80 }
82 # linking /usr/bin/emacs to new version
83 post_install_emacs() {
84 ln -sf /usr/bin/emacs-$VERSION "$1/usr/bin/emacs"
85 }
87 post_remove_emacs() {
88 rm -rf "$1/usr/share/emacs"
89 rm -rf "$1/usr/lib/emacs"
90 rm -f "$1/usr/bin/emacs"
91 }