wok-next view emacs/receipt @ rev 20180
opencc: fix wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 02 12:28:56 2017 +0100 (2017-11-02) |
parents | c4eee79d0693 |
children | dd145c435e4b |
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 pkg-config 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
73 remove_already_packed
74 strip -s $fs/usr/lib/emacs/$VERSION/i486-pc-linux-gnu/* 2>/dev/null
75 DEPENDS="atk cairo dbus expat freetype fontconfig giflib glib \
76 gnutls gtk+ jpeg libpng librsvg util-linux-uuid \
77 ncurses pango tiff xorg-server zlib librsvg libgsf \
78 libgnutls harfbuzz"
79 SUGGESTED="alsa-lib"
80 TAGS="text-editor"
81 ;;
82 esac
83 }
85 # linking /usr/bin/emacs to new version
86 post_install_emacs() {
87 ln -sf /usr/bin/emacs-$VERSION "$1/usr/bin/emacs"
88 }
90 post_remove_emacs() {
91 rm -rf "$1/usr/share/emacs"
92 rm -rf "$1/usr/lib/emacs"
93 rm -f "$1/usr/bin/emacs"
94 }