wok-next rev 19879

qemacs: does not need gcc3
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 04 18:36:44 2017 +0200 (2017-10-04)
parents 435f77efe3de
children 250165915708
files qemacs-dev/receipt qemacs-tiny/receipt qemacs-x11/receipt qemacs/receipt
line diff
     1.1 --- a/qemacs-dev/receipt	Wed Oct 04 16:11:26 2017 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,21 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="qemacs-dev"
     1.7 -WANTED="qemacs-x11"
     1.8 -VERSION="0.3.3"
     1.9 -CATEGORY="development"
    1.10 -SHORT_DESC="Light emacs clone developmement files."
    1.11 -MAINTAINER="pascal.bellard@slitaz.org"
    1.12 -LICENSE="LGPL2.1"
    1.13 -WEB_SITE="http://bellard.org/qemacs/"
    1.14 -
    1.15 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.16 -genpkg_rules()
    1.17 -{
    1.18 -	mkdir -p $fs/usr/include/qemacs
    1.19 -	for i in cutils.h display.h qe.h qeconfig.h qestyles.h ; do
    1.20 -		cp -a $src/$i $fs/usr/include/qemacs
    1.21 -	done
    1.22 -	chown -R root.root $fs
    1.23 -}
    1.24 -
     2.1 --- a/qemacs-tiny/receipt	Wed Oct 04 16:11:26 2017 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,35 +0,0 @@
     2.4 -# SliTaz package receipt.
     2.5 -
     2.6 -PACKAGE="qemacs-tiny"
     2.7 -SOURCE="qemacs"
     2.8 -VERSION="0.3.3"
     2.9 -CATEGORY="editors"
    2.10 -SHORT_DESC="Tiny emacs clone."
    2.11 -MAINTAINER="pascal.bellard@slitaz.org"
    2.12 -LICENSE="LGPL2.1"
    2.13 -TARBALL="$SOURCE-$VERSION.tar.gz"
    2.14 -WEB_SITE="http://bellard.org/$SOURCE/"
    2.15 -WGET_URL="${WEB_SITE}$TARBALL"
    2.16 -TAGS="editor"
    2.17 -
    2.18 -DEPENDS=""
    2.19 -BUILD_DEPENDS=""
    2.20 -
    2.21 -# Rules to configure and make the package.
    2.22 -compile_rules()
    2.23 -{
    2.24 -	cd $src
    2.25 -	export CFLAGS="-Wno-error=unused-but-set-variable -O2"
    2.26 -	sed -i 's/\(define SAVED_DATA_SIZE \).*/\1 __builtin_offsetof(EditState,end_of_saved_data)/' qe.h
    2.27 -	./configure --prefix=/usr --enable-tiny &&
    2.28 -	make -j 1 qe
    2.29 -}
    2.30 -
    2.31 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.32 -genpkg_rules()
    2.33 -{
    2.34 -	mkdir -p $fs/usr/bin
    2.35 -	cp -a $src/qe $fs/usr/bin/qemacs
    2.36 -	ln -s qemacs $fs/usr/bin/qe
    2.37 -}
    2.38 -
     3.1 --- a/qemacs-x11/receipt	Wed Oct 04 16:11:26 2017 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,36 +0,0 @@
     3.4 -# SliTaz package receipt.
     3.5 -
     3.6 -PACKAGE="qemacs-x11"
     3.7 -SOURCE="qemacs"
     3.8 -VERSION="0.3.3"
     3.9 -CATEGORY="editors"
    3.10 -SHORT_DESC="Light emacs clone with X11 support."
    3.11 -MAINTAINER="pascal.bellard@slitaz.org"
    3.12 -LICENSE="LGPL2.1"
    3.13 -TARBALL="$SOURCE-$VERSION.tar.gz"
    3.14 -WEB_SITE="http://bellard.org/$SOURCE/"
    3.15 -WGET_URL="${WEB_SITE}$TARBALL"
    3.16 -PROVIDE="qemacs"
    3.17 -TAGS="editor"
    3.18 -
    3.19 -DEPENDS="xorg-libX11 xorg-libXext xorg-libXv libxcb xorg-libXau xorg-libXdmcp"
    3.20 -BUILD_DEPENDS="gcc3 xorg-libX11-dev xorg-libXext-dev xorg-libXv-dev"
    3.21 -
    3.22 -# Rules to configure and make the package.
    3.23 -compile_rules()
    3.24 -{
    3.25 -	cd $src
    3.26 -	./configure --prefix=/usr $CONFIGURE_ARGS &&
    3.27 -	make CC=gcc-3 -j 1
    3.28 -}
    3.29 -
    3.30 -# Rules to gen a SliTaz package suitable for Tazpkg.
    3.31 -genpkg_rules()
    3.32 -{
    3.33 -	mkdir -p $fs/usr/bin $fs/usr/share/qe
    3.34 -	install -m 755 $src/qe $fs/usr/bin/qemacs
    3.35 -	ln -s qemacs $fs/usr/bin/qe
    3.36 -	install -m 755 -s $src/html2png $fs/usr/bin
    3.37 -	install $src/kmaps $src/ligatures $fs/usr/share/qe
    3.38 -}
    3.39 -
     4.1 --- a/qemacs/receipt	Wed Oct 04 16:11:26 2017 +0200
     4.2 +++ b/qemacs/receipt	Wed Oct 04 18:36:44 2017 +0200
     4.3 @@ -1,4 +1,4 @@
     4.4 -# SliTaz package receipt.
     4.5 +# SliTaz package receipt v2.
     4.6  
     4.7  PACKAGE="qemacs"
     4.8  VERSION="0.3.3"
     4.9 @@ -9,26 +9,63 @@
    4.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    4.11  WEB_SITE="http://bellard.org/$PACKAGE/"
    4.12  WGET_URL="${WEB_SITE}$TARBALL"
    4.13 -TAGS="editor"
    4.14  
    4.15 -DEPENDS=""
    4.16 -BUILD_DEPENDS="gcc3"
    4.17 +BUILD_DEPENDS="xorg-libX11-dev xorg-libXext-dev xorg-libXv-dev"
    4.18 +SPLIT="qemacs qemacs-tiny qemacs-x11 qemacs-dev"
    4.19  
    4.20  # Rules to configure and make the package.
    4.21  compile_rules()
    4.22  {
    4.23 -	cd $src
    4.24 +	export CFLAGS="-Wno-error=unused-but-set-variable -O2"
    4.25 +	sed -i 's/\(define SAVED_DATA_SIZE \).*/\1 __builtin_offsetof(EditState,end_of_saved_data)/' qe.h
    4.26 +	./configure --prefix=/usr --enable-tiny $CONFIGURE_ARGS &&
    4.27 +	make && mv qe qe-tiny
    4.28  	./configure --prefix=/usr --disable-x11 $CONFIGURE_ARGS &&
    4.29 -	make CC=gcc-3 -j 1
    4.30 +	make && mv qe qe-nox11
    4.31 +	./configure --prefix=/usr $CONFIGURE_ARGS &&
    4.32 +	make && mv qe qe-x11
    4.33 +	cook_pick_docs qe-doc.html COPYING README
    4.34 +	cook_pick_manpages *.1
    4.35  }
    4.36  
    4.37  # Rules to gen a SliTaz package suitable for Tazpkg.
    4.38  genpkg_rules()
    4.39  {
    4.40 -	mkdir -p $fs/usr/bin $fs/usr/share/qe
    4.41 -	install -m 755 $src/qe $fs/usr/bin/qemacs
    4.42 -	ln -s qemacs $fs/usr/bin/qe
    4.43 -	install -m 755 -s $src/html2png $fs/usr/bin
    4.44 -	install $src/kmaps $src/ligatures $fs/usr/share/qe
    4.45 +	case $PACKAGE in
    4.46 +		qemacs)
    4.47 +			mkdir -p $fs/usr/bin $fs/usr/share/qe
    4.48 +			install -m 755 $src/qe-nox11 $fs/usr/bin/qemacs
    4.49 +			ln -s qemacs $fs/usr/bin/qe
    4.50 +			install -m 755 -s $src/html2png $fs/usr/bin
    4.51 +			install $src/kmaps $src/ligatures $fs/usr/share/qe
    4.52 +			DEPENDS=""
    4.53 +			TAGS="editor"
    4.54 +			;;
    4.55 +		qemacs-tiny)
    4.56 +			mkdir -p $fs/usr/bin
    4.57 +			install -m 755 $src/qe-tiny $fs/usr/bin/qemacs
    4.58 +			ln -s qemacs $fs/usr/bin/qe
    4.59 +			DEPENDS=""
    4.60 +			TAGS="editor"
    4.61 +			;;
    4.62 +		qemacs-x11)
    4.63 +			mkdir -p $fs/usr/bin $fs/usr/share/qe
    4.64 +			install -m 755 $src/qe-x11 $fs/usr/bin/qemacs
    4.65 +			ln -s qemacs $fs/usr/bin/qe
    4.66 +			install -m 755 -s $src/html2png $fs/usr/bin
    4.67 +			install $src/kmaps $src/ligatures $fs/usr/share/qe
    4.68 +			CAT="editors|Light emacs clone with X11 support."
    4.69 +			DEPENDS="xorg-libX11 xorg-libXext xorg-libXv libxcb \
    4.70 +				 xorg-libXau xorg-libXdmcp"
    4.71 +			PROVIDE="qemacs"
    4.72 +			TAGS="editor"
    4.73 +			;;
    4.74 +		qemacs-dev)
    4.75 +			CAT="development|Light emacs clone developmement files."
    4.76 +			mkdir -p $fs/usr/include/qemacs
    4.77 +			for i in cutils.h display.h qe.h qeconfig.h qestyles.h ; do
    4.78 +				cp $src/$i $fs/usr/include/qemacs
    4.79 +			done
    4.80 +			;;
    4.81 +	esac
    4.82  }
    4.83 -