wok-next diff qemacs/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 7506b35e1c6f
children 5669e8b3be70
line diff
     1.1 --- a/qemacs/receipt	Mon Aug 13 00:47:17 2018 +0300
     1.2 +++ b/qemacs/receipt	Fri Nov 02 14:15:08 2018 +0200
     1.3 @@ -6,31 +6,43 @@
     1.4  SHORT_DESC="Light emacs clone"
     1.5  MAINTAINER="pascal.bellard@slitaz.org"
     1.6  LICENSE="LGPL2.1"
     1.7 +WEB_SITE="https://bellard.org/qemacs/"
     1.8 +
     1.9  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.10 -WEB_SITE="https://bellard.org/$PACKAGE/"
    1.11  WGET_URL="${WEB_SITE}$TARBALL"
    1.12  
    1.13  BUILD_DEPENDS="xorg-libX11-dev xorg-libXext-dev xorg-libXv-dev"
    1.14 -SPLIT="qemacs qemacs-tiny qemacs-x11 qemacs-dev"
    1.15 +SPLIT="$PACKAGE-tiny $PACKAGE-x11 $PACKAGE-dev"
    1.16  
    1.17 -# Rules to configure and make the package.
    1.18 -compile_rules()
    1.19 -{
    1.20 +compile_rules() {
    1.21  	export CFLAGS="-Wno-error=unused-but-set-variable -O2"
    1.22  	sed -i 's/\(define SAVED_DATA_SIZE \).*/\1 __builtin_offsetof(EditState,end_of_saved_data)/' qe.h
    1.23 -	./configure --prefix=/usr --enable-tiny $CONFIGURE_ARGS &&
    1.24 -	make && mv qe qe-tiny
    1.25 -	./configure --prefix=/usr --disable-x11 $CONFIGURE_ARGS &&
    1.26 -	make && mv qe qe-nox11
    1.27 -	./configure --prefix=/usr $CONFIGURE_ARGS &&
    1.28 -	make && mv qe qe-x11
    1.29 +
    1.30 +	./configure \
    1.31 +		--prefix=/usr \
    1.32 +		--enable-tiny \
    1.33 +		$CONFIGURE_ARGS &&
    1.34 +	make &&
    1.35 +	mv qe qe-tiny
    1.36 +
    1.37 +	./configure \
    1.38 +		--prefix=/usr \
    1.39 +		--disable-x11 \
    1.40 +		$CONFIGURE_ARGS &&
    1.41 +	make &&
    1.42 +	mv qe qe-nox11
    1.43 +
    1.44 +	./configure \
    1.45 +		--prefix=/usr \
    1.46 +		$CONFIGURE_ARGS &&
    1.47 +	make &&
    1.48 +	mv qe qe-x11
    1.49 +
    1.50  	cook_pick_docs qe-doc.html COPYING README
    1.51  	cook_pick_manpages *.1
    1.52  }
    1.53  
    1.54 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.55 -genpkg_rules()
    1.56 -{
    1.57 +genpkg_rules() {
    1.58  	case $PACKAGE in
    1.59  		qemacs)
    1.60  			mkdir -p $fs/usr/bin $fs/usr/share/qe
    1.61 @@ -56,14 +68,13 @@
    1.62  			install $src/kmaps $src/ligatures $fs/usr/share/qe
    1.63  			CAT="editors|Light emacs clone with X11 support."
    1.64  			DEPENDS="xorg-libX11 xorg-libXext xorg-libXv xorg-libxcb \
    1.65 -				 xorg-libXau xorg-libXdmcp"
    1.66 +			xorg-libXau xorg-libXdmcp"
    1.67  			PROVIDE="qemacs"
    1.68  			TAGS="editor"
    1.69  			;;
    1.70  		qemacs-dev)
    1.71 -			CAT="development|Light emacs clone developmement files."
    1.72  			mkdir -p $fs/usr/include/qemacs
    1.73 -			for i in cutils.h display.h qe.h qeconfig.h qestyles.h ; do
    1.74 +			for i in cutils.h display.h qe.h qeconfig.h qestyles.h; do
    1.75  				cp $src/$i $fs/usr/include/qemacs
    1.76  			done
    1.77  			;;