wok-6.x rev 17669

vkeybd: update TCL_VERSION
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 16 23:47:24 2015 +0100 (2015-02-16)
parents 6ce464a0de4b
children 17e313b5b9c1
files tcl/receipt vkeybd/receipt
line diff
     1.1 --- a/tcl/receipt	Mon Feb 16 12:43:40 2015 +0100
     1.2 +++ b/tcl/receipt	Mon Feb 16 23:47:24 2015 +0100
     1.3 @@ -35,8 +35,8 @@
     1.4  genpkg_rules()
     1.5  {
     1.6  	mkdir -p $fs/usr/lib
     1.7 -	cp -a $install/usr/lib/tcl8* $fs/usr/lib
     1.8 +	cp -a $install/usr/lib/tcl${VERSION:0:1}* $fs/usr/lib
     1.9  	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.10  	cp -a $install/usr/bin $fs/usr
    1.11 -	ln -sf tclsh8.6 $fs/usr/bin/tclsh
    1.12 +	ln -sf tclsh${VERSION:0:3} $fs/usr/bin/tclsh
    1.13  }
     2.1 --- a/vkeybd/receipt	Mon Feb 16 12:43:40 2015 +0100
     2.2 +++ b/vkeybd/receipt	Mon Feb 16 23:47:24 2015 +0100
     2.3 @@ -18,8 +18,9 @@
     2.4  {
     2.5  	cd $src
     2.6  	# Hack makefile
     2.7 -	sed -i 's|PREFIX = /usr/local|PREFIX = /usr|; \
     2.8 -	s|TCL_VERSION = 8.4|TCL_VERSION = 8.5|' Makefile
     2.9 +	TCL_VERSION=$(sed '/TCL_VERSION/!d;s/.*"\(.*\)"/\1/' /usr/include/tcl.h)
    2.10 +	sed -i "s|PREFIX = /usr/local|PREFIX = /usr|; \
    2.11 +	s|TCL_VERSION = 8.4|TCL_VERSION = $TCL_VERSION|" Makefile
    2.12  	make &&
    2.13  	make DESTDIR=$DESTDIR install
    2.14  }