wok-next rev 13861

rrdtool: use lua5.1
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 11 19:14:13 2013 +0100 (2013-01-11)
parents 3e08564d73ba
children 8a4276ec96fe
files rrdtool-lua/receipt rrdtool/receipt
line diff
     1.1 --- a/rrdtool-lua/receipt	Fri Jan 11 18:38:42 2013 +0100
     1.2 +++ b/rrdtool-lua/receipt	Fri Jan 11 19:14:13 2013 +0100
     1.3 @@ -6,13 +6,13 @@
     1.4  SHORT_DESC="LUA bindings for rrdtool."
     1.5  MAINTAINER="pascal.bellard@slitaz.org"
     1.6  WEB_SITE="http://oss.oetiker.ch/rrdtool"
     1.7 -DEPENDS="lua rrdtool"
     1.8 +DEPENDS="lua5.1 rrdtool"
     1.9  WANTED="rrdtool"
    1.10  
    1.11  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.12  genpkg_rules()
    1.13  {
    1.14  	mkdir -p $fs/usr/lib
    1.15 -	cp -a $_pkg/usr/lib/lua $fs/usr/lib/
    1.16 +	cp -a $install/usr/lib/lua $fs/usr/lib/
    1.17  }
    1.18  
     2.1 --- a/rrdtool/receipt	Fri Jan 11 18:38:42 2013 +0100
     2.2 +++ b/rrdtool/receipt	Fri Jan 11 19:14:13 2013 +0100
     2.3 @@ -13,7 +13,7 @@
     2.4  xcb-util xorg-base-fonts libwrap"
     2.5  BUILD_DEPENDS="perl pkg-config zlib-dev freetype-dev libpng-dev libxml2-dev \
     2.6  fontconfig-dev pixman-dev cairo-dev glib-dev pango-dev python-dev perl groff \
     2.7 -libwrap-dev tcl-dev lua-dev ruby"
     2.8 +libwrap-dev tcl-dev lua5.1-dev ruby"
     2.9  TAGS="logs"
    2.10  
    2.11  # Rules to configure and make the package.
    2.12 @@ -21,18 +21,29 @@
    2.13  {
    2.14  	cd $src
    2.15  	sed -i 's/PL_sv_undef sv_undef/PL_sv_undef PL_sv_undef/' bindings/perl-shared/RRDs.xs
    2.16 +	export LDFLAGS="-L/usr/lib/lua/5.1"
    2.17 +	TOREMOVE="/usr/include/lua5.1"
    2.18 +	ln -s lua/5.1 /usr/include/lua5.1
    2.19 +	for i in /usr/bin/lua /usr/bin/luac ; do
    2.20 +		[ -e $i ] && continue
    2.21 +		ln -s $(basename $i)5.1 $i
    2.22 +		TOREMOVE="$TOREMOVE $i"
    2.23 +	done
    2.24  	./configure --prefix=/usr --infodir=/usr/share/info \
    2.25  	--enable-perl-site-install \
    2.26  	--mandir=/usr/share/man $CONFIGURE_ARGS &&
    2.27  	make &&
    2.28 -	make DESTDIR=$PWD/_pkg install
    2.29 +	make DESTDIR=$DESTDIR install
    2.30 +	for i in $TOREMOVE ; do
    2.31 +		rm -f $i
    2.32 +	done
    2.33  }
    2.34  
    2.35  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.36  genpkg_rules()
    2.37  {
    2.38  	mkdir -p $fs/usr/lib
    2.39 -	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    2.40 -	cp -a $_pkg/usr/bin $fs/usr
    2.41 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.42 +	cp -a $install/usr/bin $fs/usr
    2.43  }
    2.44