# HG changeset patch # User Christophe Lincoln # Date 1353008052 -3600 # Node ID 736c634c3e0cb934aa0092daaf11023f13288389 # Parent b0f28f14f48e11f0d6c824c9d421c54d6e3d187e Add lua5.1 (needed to build edje and update e17 - All files are separate in a 5.1 subdir diff -r b0f28f14f48e -r 736c634c3e0c lua5.1-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lua5.1-dev/receipt Thu Nov 15 20:34:12 2012 +0100 @@ -0,0 +1,18 @@ +# SliTaz package receipt. + +PACKAGE="lua5.1-dev" +VERSION="5.1.4" +CATEGORY="development" +SHORT_DESC="Lua devel files." +WANTED="lua5.1" +MAINTAINER="pankso@slitaz.org" +WEB_SITE="http://www.lua.org/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib/pkgconfig $fs/usr/lib/lua/5.1 + cp -a $install/usr/include $fs/usr + cp -a $install/usr/lib/lua/5.1/liblua.a $fs/usr/lib/lua/5.1 + cp -a $src/etc/lua.pc $fs/usr/lib/pkgconfig/lua5.1.pc +} diff -r b0f28f14f48e -r 736c634c3e0c lua5.1/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lua5.1/receipt Thu Nov 15 20:34:12 2012 +0100 @@ -0,0 +1,38 @@ +# SliTaz package receipt. + +PACKAGE="lua5.1" +VERSION="5.1.4" +SOURCE="lua" +CATEGORY="development" +SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language." +DEPENDS="readline ncurses" +BUILD_DEPENDS="readline-dev" +MAINTAINER="pankso@slitaz.org" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://www.lua.org/" +WGET_URL="http://www.lua.org/ftp/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + patch -p0 < $stuff/lua5.1-paths.patch || exit 1 + sed -i "s#prefix= /usr/local#prefix= /usr#" etc/lua.pc + sed -i "s#${prefix}/lib#${prefix}/lib/lua/5.1#" etc/lua.pc + sed -i "s#/include#/include/lua/5.1#g" etc/lua.pc + sed -i "s#/usr/local/#/usr/#" src/luaconf.h + sed -i "s#share/lua/5.1/#lib/lua/5.1/#" src/luaconf.h + sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile + make linux && + make install \ + INSTALL_TOP=$DESTDIR/usr \ + INSTALL_MAN=$DESTDIR/usr/share/man/man1 +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin $fs/usr/lib/lua/5.1 + cp -a $install/usr/bin/lua $fs/usr/bin/lua5.1 + cp -a $install/usr/bin/luac $fs/usr/bin/luac5.1 +} diff -r b0f28f14f48e -r 736c634c3e0c lua5.1/stuff/lua5.1-paths.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lua5.1/stuff/lua5.1-paths.patch Thu Nov 15 20:34:12 2012 +0100 @@ -0,0 +1,22 @@ +--- Makefile ++++ stuff/Makefile +@@ -9,15 +9,15 @@ + + # Where to install. The installation starts in the src and doc directories, + # so take care if INSTALL_TOP is not an absolute path. +-INSTALL_TOP= /usr/local ++INSTALL_TOP= /usr + INSTALL_BIN= $(INSTALL_TOP)/bin +-INSTALL_INC= $(INSTALL_TOP)/include +-INSTALL_LIB= $(INSTALL_TOP)/lib ++INSTALL_INC= $(INSTALL_TOP)/include/lua/$V ++INSTALL_LIB= $(INSTALL_TOP)/lib/lua/$V + INSTALL_MAN= $(INSTALL_TOP)/man/man1 + # + # You probably want to make INSTALL_LMOD and INSTALL_CMOD consistent with + # LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h (and also with etc/lua.pc). +-INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V ++INSTALL_LMOD= $(INSTALL_TOP)/lib/lua/$V + INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V + + # How to install. If your install program does not support "-p", then you diff -r b0f28f14f48e -r 736c634c3e0c lua5.1/stuff/lua5.1.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lua5.1/stuff/lua5.1.desktop Thu Nov 15 20:34:12 2012 +0100 @@ -0,0 +1,8 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Lua5.1 interpreter +Terminal=false +Exec=xterm -e lua5.1 +Icon=lua5.1 +Type=Application +Categories=Development; diff -r b0f28f14f48e -r 736c634c3e0c lua5.1/stuff/lua5.1.png Binary file lua5.1/stuff/lua5.1.png has changed