wok-next annotate qemacs/receipt @ rev 20543
xorg-xf86-video-fbturbo: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 03 11:07:12 2018 +0200 (2018-04-03) |
parents | ccb92f8ccaf6 |
children | 7506b35e1c6f |
rev | line source |
---|---|
pascal@19879 | 1 # SliTaz package receipt v2. |
pascal@13239 | 2 |
pascal@13239 | 3 PACKAGE="qemacs" |
pascal@15778 | 4 VERSION="0.3.3" |
pascal@18559 | 5 CATEGORY="editors" |
al@20207 | 6 SHORT_DESC="Light emacs clone" |
pascal@13239 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14996 | 8 LICENSE="LGPL2.1" |
pascal@13239 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@13239 | 10 WEB_SITE="http://bellard.org/$PACKAGE/" |
pascal@15281 | 11 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@15281 | 12 |
pascal@19879 | 13 BUILD_DEPENDS="xorg-libX11-dev xorg-libXext-dev xorg-libXv-dev" |
pascal@19879 | 14 SPLIT="qemacs qemacs-tiny qemacs-x11 qemacs-dev" |
pascal@13239 | 15 |
pascal@13239 | 16 # Rules to configure and make the package. |
pascal@13239 | 17 compile_rules() |
pascal@13239 | 18 { |
pascal@19879 | 19 export CFLAGS="-Wno-error=unused-but-set-variable -O2" |
pascal@19879 | 20 sed -i 's/\(define SAVED_DATA_SIZE \).*/\1 __builtin_offsetof(EditState,end_of_saved_data)/' qe.h |
pascal@19879 | 21 ./configure --prefix=/usr --enable-tiny $CONFIGURE_ARGS && |
pascal@19879 | 22 make && mv qe qe-tiny |
pascal@15281 | 23 ./configure --prefix=/usr --disable-x11 $CONFIGURE_ARGS && |
pascal@19879 | 24 make && mv qe qe-nox11 |
pascal@19879 | 25 ./configure --prefix=/usr $CONFIGURE_ARGS && |
pascal@19879 | 26 make && mv qe qe-x11 |
pascal@19879 | 27 cook_pick_docs qe-doc.html COPYING README |
pascal@19879 | 28 cook_pick_manpages *.1 |
pascal@13239 | 29 } |
pascal@13239 | 30 |
pascal@13239 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13239 | 32 genpkg_rules() |
pascal@13239 | 33 { |
pascal@19879 | 34 case $PACKAGE in |
pascal@19879 | 35 qemacs) |
pascal@19879 | 36 mkdir -p $fs/usr/bin $fs/usr/share/qe |
pascal@19879 | 37 install -m 755 $src/qe-nox11 $fs/usr/bin/qemacs |
pascal@19879 | 38 ln -s qemacs $fs/usr/bin/qe |
pascal@19879 | 39 install -m 755 -s $src/html2png $fs/usr/bin |
pascal@19879 | 40 install $src/kmaps $src/ligatures $fs/usr/share/qe |
al@20207 | 41 DEPENDS=" " |
pascal@19879 | 42 TAGS="editor" |
pascal@19879 | 43 ;; |
pascal@19879 | 44 qemacs-tiny) |
pascal@19879 | 45 mkdir -p $fs/usr/bin |
pascal@19879 | 46 install -m 755 $src/qe-tiny $fs/usr/bin/qemacs |
pascal@19879 | 47 ln -s qemacs $fs/usr/bin/qe |
al@20207 | 48 DEPENDS=" " |
pascal@19879 | 49 TAGS="editor" |
pascal@19879 | 50 ;; |
pascal@19879 | 51 qemacs-x11) |
pascal@19879 | 52 mkdir -p $fs/usr/bin $fs/usr/share/qe |
pascal@19879 | 53 install -m 755 $src/qe-x11 $fs/usr/bin/qemacs |
pascal@19879 | 54 ln -s qemacs $fs/usr/bin/qe |
pascal@19879 | 55 install -m 755 -s $src/html2png $fs/usr/bin |
pascal@19879 | 56 install $src/kmaps $src/ligatures $fs/usr/share/qe |
pascal@19879 | 57 CAT="editors|Light emacs clone with X11 support." |
al@20447 | 58 DEPENDS="xorg-libX11 xorg-libXext xorg-libXv xorg-libxcb \ |
pascal@19879 | 59 xorg-libXau xorg-libXdmcp" |
pascal@19879 | 60 PROVIDE="qemacs" |
pascal@19879 | 61 TAGS="editor" |
pascal@19879 | 62 ;; |
pascal@19879 | 63 qemacs-dev) |
pascal@19879 | 64 CAT="development|Light emacs clone developmement files." |
pascal@19879 | 65 mkdir -p $fs/usr/include/qemacs |
pascal@19879 | 66 for i in cutils.h display.h qe.h qeconfig.h qestyles.h ; do |
pascal@19879 | 67 cp $src/$i $fs/usr/include/qemacs |
pascal@19879 | 68 done |
pascal@19879 | 69 ;; |
pascal@19879 | 70 esac |
pascal@13239 | 71 } |