wok-next annotate qemacs/receipt @ rev 21457
updated sshfs-fuse (3.3.1 -> 3.7.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu May 07 14:36:33 2020 +0100 (2020-05-07) |
parents | d5aab818505e |
children |
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" |
al@21020 | 9 WEB_SITE="https://bellard.org/qemacs/" |
al@21020 | 10 |
pascal@13239 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@15281 | 12 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@15281 | 13 |
al@21078 | 14 BUILD_DEPENDS="libx11-dev libxext-dev libxv-dev" |
al@21020 | 15 SPLIT="$PACKAGE-tiny $PACKAGE-x11 $PACKAGE-dev" |
pascal@13239 | 16 |
al@21020 | 17 compile_rules() { |
pascal@19879 | 18 export CFLAGS="-Wno-error=unused-but-set-variable -O2" |
pascal@19879 | 19 sed -i 's/\(define SAVED_DATA_SIZE \).*/\1 __builtin_offsetof(EditState,end_of_saved_data)/' qe.h |
al@21020 | 20 |
al@21020 | 21 ./configure \ |
al@21020 | 22 --prefix=/usr \ |
al@21020 | 23 --enable-tiny \ |
al@21020 | 24 $CONFIGURE_ARGS && |
al@21020 | 25 make && |
al@21020 | 26 mv qe qe-tiny |
al@21020 | 27 |
al@21020 | 28 ./configure \ |
al@21020 | 29 --prefix=/usr \ |
al@21020 | 30 --disable-x11 \ |
al@21020 | 31 $CONFIGURE_ARGS && |
al@21020 | 32 make && |
al@21020 | 33 mv qe qe-nox11 |
al@21020 | 34 |
al@21020 | 35 ./configure \ |
al@21020 | 36 --prefix=/usr \ |
al@21020 | 37 $CONFIGURE_ARGS && |
al@21020 | 38 make && |
al@21020 | 39 mv qe qe-x11 |
al@21020 | 40 |
pascal@19879 | 41 cook_pick_docs qe-doc.html COPYING README |
pascal@19879 | 42 cook_pick_manpages *.1 |
pascal@13239 | 43 } |
pascal@13239 | 44 |
al@21020 | 45 genpkg_rules() { |
pascal@19879 | 46 case $PACKAGE in |
pascal@19879 | 47 qemacs) |
pascal@19879 | 48 mkdir -p $fs/usr/bin $fs/usr/share/qe |
pascal@19879 | 49 install -m 755 $src/qe-nox11 $fs/usr/bin/qemacs |
pascal@19879 | 50 ln -s qemacs $fs/usr/bin/qe |
pascal@19879 | 51 install -m 755 -s $src/html2png $fs/usr/bin |
pascal@19879 | 52 install $src/kmaps $src/ligatures $fs/usr/share/qe |
al@20207 | 53 DEPENDS=" " |
pascal@19879 | 54 TAGS="editor" |
pascal@19879 | 55 ;; |
pascal@19879 | 56 qemacs-tiny) |
pascal@19879 | 57 mkdir -p $fs/usr/bin |
pascal@19879 | 58 install -m 755 $src/qe-tiny $fs/usr/bin/qemacs |
pascal@19879 | 59 ln -s qemacs $fs/usr/bin/qe |
al@20207 | 60 DEPENDS=" " |
pascal@19879 | 61 TAGS="editor" |
pascal@19879 | 62 ;; |
pascal@19879 | 63 qemacs-x11) |
pascal@19879 | 64 mkdir -p $fs/usr/bin $fs/usr/share/qe |
pascal@19879 | 65 install -m 755 $src/qe-x11 $fs/usr/bin/qemacs |
pascal@19879 | 66 ln -s qemacs $fs/usr/bin/qe |
pascal@19879 | 67 install -m 755 -s $src/html2png $fs/usr/bin |
pascal@19879 | 68 install $src/kmaps $src/ligatures $fs/usr/share/qe |
pascal@19879 | 69 CAT="editors|Light emacs clone with X11 support." |
al@21078 | 70 DEPENDS="libx11 libxext libxv libxcb \ |
al@21078 | 71 libxau libxdmcp" |
pascal@19879 | 72 PROVIDE="qemacs" |
pascal@19879 | 73 TAGS="editor" |
pascal@19879 | 74 ;; |
pascal@19879 | 75 qemacs-dev) |
pascal@19879 | 76 mkdir -p $fs/usr/include/qemacs |
al@21020 | 77 for i in cutils.h display.h qe.h qeconfig.h qestyles.h; do |
pascal@19879 | 78 cp $src/$i $fs/usr/include/qemacs |
pascal@19879 | 79 done |
pascal@19879 | 80 ;; |
pascal@19879 | 81 esac |
pascal@13239 | 82 } |