wok-next rev 21024

Combine elinks
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Nov 03 04:06:19 2018 +0200 (2018-11-03)
parents 2a618021f5c2
children a53441c56fc9
files elinks-small/receipt elinks/receipt
line diff
     1.1 --- a/elinks-small/receipt	Sat Nov 03 04:04:40 2018 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,39 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="elinks-small"
     1.7 -VERSION="0.12pre6"
     1.8 -CATEGORY="network"
     1.9 -SHORT_DESC="Small Elinks www text browser version (no JS SSL GPM)"
    1.10 -MAINTAINER="devel@slitaz.org"
    1.11 -LICENSE="GPL2"
    1.12 -WEB_SITE="http://elinks.or.cz/"
    1.13 -REPOLOGY="elinks"
    1.14 -
    1.15 -SOURCE="elinks"
    1.16 -TARBALL="$SOURCE-$VERSION.tar.bz2"
    1.17 -WGET_URL="$WEB_SITE/download/$TARBALL"
    1.18 -
    1.19 -BUILD_DEPENDS="bzip2-dev zlib-dev libidn-dev expat-dev"
    1.20 -
    1.21 -compile_rules() {
    1.22 -	./configure \
    1.23 -		--enable-small \
    1.24 -		--enable-fastmem \
    1.25 -		--disable-backtrace \
    1.26 -		--without-gnutls \
    1.27 -		--without-openssl \
    1.28 -		--without-spidermonkey \
    1.29 -		--without-gpm \
    1.30 -		--without-x \
    1.31 -		$CONFIGURE_ARGS &&
    1.32 -	make &&
    1.33 -	make DESTDIR=$install install
    1.34 -}
    1.35 -
    1.36 -genpkg_rules() {
    1.37 -	mkdir -p $fs/usr/bin
    1.38 -	# No conflict with full elinks
    1.39 -	cp -a $install/usr/bin/elinks $fs/usr/bin/elinks-small
    1.40 -	DEPENDS="bzip2 zlib libidn expat"
    1.41 -	TAGS="web-browser browser web"
    1.42 -}
     2.1 --- a/elinks/receipt	Sat Nov 03 04:04:40 2018 +0200
     2.2 +++ b/elinks/receipt	Sat Nov 03 04:06:19 2018 +0200
     2.3 @@ -13,27 +13,57 @@
     2.4  
     2.5  BUILD_DEPENDS="openssl10-dev bzip2-dev spidermonkey-dev zlib-dev libidn-dev \
     2.6  expat-dev gpm-dev gettext-dev"
     2.7 +SPLIT="$PACKAGE-small:small"
     2.8  
     2.9  compile_rules() {
    2.10 -	export CPPFLAGS="$CPPFLAGS -I/usr/include/openssl-1.0"
    2.11 -	export LDFLAGS="$LDFLAGS -L/usr/lib/openssl-1.0"
    2.12 +	case $SET in
    2.13 +		'')
    2.14 +			export CPPFLAGS="$CPPFLAGS -I/usr/include/openssl-1.0"
    2.15 +			export LDFLAGS="$LDFLAGS -L/usr/lib/openssl-1.0"
    2.16  
    2.17 -	# --enable-fastmem: disables internal `malloc()` debugging and 
    2.18 -	# use `alloca()` wherever possible.
    2.19 -	# --disable-backtrace disables internal backtrace code.
    2.20 +			# --enable-fastmem: disables internal `malloc()` debugging and 
    2.21 +			# use `alloca()` wherever possible.
    2.22 +			# --disable-backtrace disables internal backtrace code.
    2.23 +			SET_ARGS="\
    2.24 +				--with-openssl \
    2.25 +				--enable-88-colors"
    2.26 +				;;
    2.27 +		small)
    2.28 +			SET_ARGS="\
    2.29 +				--enable-small \
    2.30 +				--without-gnutls \
    2.31 +				--without-openssl \
    2.32 +				--without-spidermonkey \
    2.33 +				--without-gpm"
    2.34 +				;;
    2.35 +	esac
    2.36 +
    2.37  	./configure \
    2.38  		--enable-fastmem \
    2.39  		--disable-backtrace \
    2.40  		--without-x \
    2.41 -		--with-openssl \
    2.42 -		--enable-88-colors \
    2.43 +		$SET_ARGS \
    2.44  		$CONFIGURE_ARGS &&
    2.45  	make &&
    2.46 -	make DESTDIR=$install install
    2.47 +	make DESTDIR=$install install	# keep DESTDIR
    2.48 +
    2.49 +	# No conflict with full elinks
    2.50 +	case $SET in
    2.51 +		small) mv $install/usr/bin/elinks $install/usr/bin/elinks-small;;
    2.52 +	esac
    2.53  }
    2.54  
    2.55  genpkg_rules() {
    2.56 -	copy @std
    2.57 -	DEPENDS="bzlib expat libidn openssl10 spidermonkey zlib"
    2.58 -	TAGS="web-browser"
    2.59 +	case $PACKAGE in
    2.60 +		elinks)
    2.61 +			copy @std
    2.62 +			DEPENDS="bzlib expat libidn openssl10 spidermonkey zlib"
    2.63 +			;;
    2.64 +		*-small)
    2.65 +			copy @std
    2.66 +			CAT="network|without JS, SSL, GPM"
    2.67 +			DEPENDS="bzlib expat libidn zlib"
    2.68 +			;;
    2.69 +	esac
    2.70 +	TAGS="web-browser browser web"
    2.71  }