summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-03-30 13:19:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-03-30 13:19:40 +0000
commit8764f0dad8482831bbcbf3b033468e31701591a1 (patch)
tree5c1a2428699e041eaea915e7c48d92f5d64f284a /main
parent8b2e1324f5d74bbd603f250ec6df45058dd96ba5 (diff)
downloadaports-8764f0dad8482831bbcbf3b033468e31701591a1.tar.bz2
aports-8764f0dad8482831bbcbf3b033468e31701591a1.tar.xz
main/lua: disable readline
Diffstat (limited to 'main')
-rw-r--r--main/lua/APKBUILD9
-rw-r--r--main/lua/lua-5.1-readline.patch10
2 files changed, 15 insertions, 4 deletions
diff --git a/main/lua/APKBUILD b/main/lua/APKBUILD
index f6377dabc..cd6030d7f 100644
--- a/main/lua/APKBUILD
+++ b/main/lua/APKBUILD
@@ -2,18 +2,19 @@
pkgname=lua
pkgver=5.1.4_p3
_ver=${pkgver%_p*}
-pkgrel=0
+pkgrel=1
pkgdesc="A powerful light-weight programming language designed for extending applications."
url="http://www.lua.org/"
arch="all"
license="MIT"
depends=
-makedepends="readline-dev libtool"
+makedepends="libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.$pkgname.org/ftp/$pkgname-$_ver.tar.gz
http://www.lua.org/ftp/patch-lua-5.1.4-${pkgver#*_p}
lua-5.1-make.patch
lua-5.1-module_paths.patch
+ lua-5.1-readline.patch
"
_builddir="$srcdir"/lua-$_ver
@@ -38,7 +39,6 @@ build ()
cd src
make CFLAGS=" -DLUA_USE_LINUX $CFLAGS" \
RPATH="/usr/lib" \
- LUA_LIBS="-lreadline" \
LIB_LIBS="-lpthread -lm -ldl" \
V=$pkgver \
gentoo_all || return 1
@@ -56,4 +56,5 @@ package() {
md5sums="d0870f2de55d59c1c8419f36e8fac150 lua-5.1.4.tar.gz
998ef7886183f61d3a5ca891a9ce6a79 patch-lua-5.1.4-3
0145ff6036eb6bfdab427dc8f0c3f3c0 lua-5.1-make.patch
-e60ef15deefb72a5930c498f1184aced lua-5.1-module_paths.patch"
+e60ef15deefb72a5930c498f1184aced lua-5.1-module_paths.patch
+f2205b897edb31292a1f597a7fd638cb lua-5.1-readline.patch"
diff --git a/main/lua/lua-5.1-readline.patch b/main/lua/lua-5.1-readline.patch
new file mode 100644
index 000000000..f144861ef
--- /dev/null
+++ b/main/lua/lua-5.1-readline.patch
@@ -0,0 +1,10 @@
+--- lua-5.1.1.orig/src/luaconf.h 2006-04-10 20:27:23.000000000 +0200
++++ lua-5.1.1/src/luaconf.h 2006-11-15 14:53:07.000000000 +0100
+@@ -36,7 +36,6 @@
+ #if defined(LUA_USE_LINUX)
+ #define LUA_USE_POSIX
+ #define LUA_USE_DLOPEN /* needs an extra library: -ldl */
+-#define LUA_USE_READLINE /* needs some extra libraries */
+ #endif
+
+ #if defined(LUA_USE_MACOSX)