wok-next view emacs/receipt @ rev 20690
add missing SHA256sums
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Mon May 21 19:36:47 2018 +0000 (2018-05-21) |
parents | dd145c435e4b |
children | f48456621a9d |
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="domcox@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 gtk+-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="emacs-help emacs-lisp-sources emacs"
20 # Rules to configure and make the package.
21 compile_rules() {
22 ./configure \
23 --infodir=/usr/share/info \
24 --mandir=/usr/share/man \
25 --without-makeinfo \
26 --without-gconf \
27 --with-gif=no --with-jpeg=no \
28 --with-sound \
29 --with-x \
30 --with-toolkit-scroll-bars \
31 --with-xpm=yes \
32 --libexecdir=/usr/lib \
33 --localstatedir=/var/lib \
34 --sharedstatedir=/var/lib \
35 $CONFIGURE_ARGS &&
36 make $MAKEFLAGS &&
37 make DESTDIR=$DESTDIR install || return 1
39 # Install specific site file
40 mkdir -p $install/usr/share/emacs/site-lisp/site-start.d
41 cp -a $stuff/default.el \
42 $stuff/site-start.el $install/usr/share/emacs/site-lisp/
43 cp -a $stuff/90-slitaz.el $install/usr/share/emacs/site-lisp/site-start.d
45 # Use default site-lisp
46 ln -s ../site-lisp $install/usr/share/emacs/$VERSION/site-lisp
48 chown -R root:root $install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules() {
53 case $PACKAGE in
54 emacs-help)
55 copy \
56 info/ \
57 tutorials/ \
58 refcards/*.pdf \
59 etc/[A-Z]* \
60 etc/*.txt
61 DEPENDS="emacs"
62 CAT="development|help files"
63 ;;
64 emacs-lisp-sources)
65 copy \
66 *.el.gz \
67 refcards/*.tex
68 DEPENDS="emacs"
69 CAT="development|Lisp source files"
70 ;;
71 emacs)
72 copy @std @dev @rm
73 strip -s $fs/usr/lib/emacs/$VERSION/i486-pc-linux-gnu/* 2>/dev/null
74 DEPENDS="atk cairo dbus expat freetype fontconfig giflib glib \
75 gnutls gtk+ jpeg libpng16 librsvg util-linux-uuid \
76 ncurses pango tiff xorg-server zlib librsvg libgsf \
77 libgnutls harfbuzz"
78 SUGGESTED="alsa-lib"
79 TAGS="text-editor"
80 ;;
81 esac
82 }
84 # linking /usr/bin/emacs to new version
85 post_install_emacs() {
86 ln -sf /usr/bin/emacs-$VERSION "$1/usr/bin/emacs"
87 }
89 post_remove_emacs() {
90 rm -rf "$1/usr/share/emacs"
91 rm -rf "$1/usr/lib/emacs"
92 rm -f "$1/usr/bin/emacs"
93 }