wok-next view qemacs/receipt @ rev 20939

Fix brisk-menu, mate-backgrounds, mate-user-guide
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Aug 26 09:13:55 2018 +0300 (2018-08-26)
parents 7639f09792cf
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="qemacs"
4 VERSION="0.3.3"
5 CATEGORY="editors"
6 SHORT_DESC="Light emacs clone"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://bellard.org/$PACKAGE/"
11 WGET_URL="${WEB_SITE}$TARBALL"
13 BUILD_DEPENDS="xorg-libX11-dev xorg-libXext-dev xorg-libXv-dev"
14 SPLIT="qemacs qemacs-tiny qemacs-x11 qemacs-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 export CFLAGS="-Wno-error=unused-but-set-variable -O2"
20 sed -i 's/\(define SAVED_DATA_SIZE \).*/\1 __builtin_offsetof(EditState,end_of_saved_data)/' qe.h
21 ./configure --prefix=/usr --enable-tiny $CONFIGURE_ARGS &&
22 make && mv qe qe-tiny
23 ./configure --prefix=/usr --disable-x11 $CONFIGURE_ARGS &&
24 make && mv qe qe-nox11
25 ./configure --prefix=/usr $CONFIGURE_ARGS &&
26 make && mv qe qe-x11
27 cook_pick_docs qe-doc.html COPYING README
28 cook_pick_manpages *.1
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 case $PACKAGE in
35 qemacs)
36 mkdir -p $fs/usr/bin $fs/usr/share/qe
37 install -m 755 $src/qe-nox11 $fs/usr/bin/qemacs
38 ln -s qemacs $fs/usr/bin/qe
39 install -m 755 -s $src/html2png $fs/usr/bin
40 install $src/kmaps $src/ligatures $fs/usr/share/qe
41 DEPENDS=" "
42 TAGS="editor"
43 ;;
44 qemacs-tiny)
45 mkdir -p $fs/usr/bin
46 install -m 755 $src/qe-tiny $fs/usr/bin/qemacs
47 ln -s qemacs $fs/usr/bin/qe
48 DEPENDS=" "
49 TAGS="editor"
50 ;;
51 qemacs-x11)
52 mkdir -p $fs/usr/bin $fs/usr/share/qe
53 install -m 755 $src/qe-x11 $fs/usr/bin/qemacs
54 ln -s qemacs $fs/usr/bin/qe
55 install -m 755 -s $src/html2png $fs/usr/bin
56 install $src/kmaps $src/ligatures $fs/usr/share/qe
57 CAT="editors|Light emacs clone with X11 support."
58 DEPENDS="xorg-libX11 xorg-libXext xorg-libXv xorg-libxcb \
59 xorg-libXau xorg-libXdmcp"
60 PROVIDE="qemacs"
61 TAGS="editor"
62 ;;
63 qemacs-dev)
64 CAT="development|Light emacs clone developmement files."
65 mkdir -p $fs/usr/include/qemacs
66 for i in cutils.h display.h qe.h qeconfig.h qestyles.h ; do
67 cp $src/$i $fs/usr/include/qemacs
68 done
69 ;;
70 esac
71 }