From 4f9115eae7c6a96a60f8913da56b5d6310c17ef6 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Thu, 31 May 2012 14:50:55 +0100 Subject: lua: define morphology The build system for lua is too odd to be morphless. The maintainer of this repository has converted it to CMake, but we don't support CMake yet and he moved luaconf.h, so it can't use the default configuration without effort. PLAT=linux is required because lua can build on many different systems, but won't deduce which one it is built on. Unfortunately, it assumes that if it is built on linux, then it has libreadline, and I would prefer if it didn't depend on it. So an ugly sed command is used to stop it. --- lua.morph | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lua.morph diff --git a/lua.morph b/lua.morph new file mode 100644 index 0000000..06ba749 --- /dev/null +++ b/lua.morph @@ -0,0 +1,13 @@ +{ + "name": "lua", + "kind": "chunk", + "configure-commands": [ + "sed -e 's/defined(LUA_USE_READLINE)/0/g' src/luaconf.h.orig >src/luaconf.h" + ], + "build-commands": [ + "make PLAT=linux INSTALL_TOP=\"$PREFIX\"" + ], + "install-commands": [ + "make INSTALL_TOP=\"$DESTDIR/$PREFIX\" install" + ] +} -- cgit v1.2.1