From c4ef8d6bfb72c3ca91ff3d25088ad121aebcc041 Mon Sep 17 00:00:00 2001 From: Paco Zamora Martinez Date: Fri, 23 May 2014 11:42:39 +0200 Subject: [PATCH] Updated rockspecs --- README.md | 27 +++++++++++++++++ rockspec/luamongo-scm-0.rockspec | 43 +++++++++++++++++++++++++++ rockspec/luamongo-unstable-0.rockspec | 33 -------------------- rockspec/luamongo-v0.4-0.rockspec | 34 --------------------- rockspec/luamongo-v0.4.1.rockspec | 39 ++++++++++++++---------- 5 files changed, 94 insertions(+), 82 deletions(-) create mode 100644 rockspec/luamongo-scm-0.rockspec delete mode 100644 rockspec/luamongo-unstable-0.rockspec delete mode 100644 rockspec/luamongo-v0.4-0.rockspec diff --git a/README.md b/README.md index 9087df3..1140a94 100644 --- a/README.md +++ b/README.md @@ -73,3 +73,30 @@ luarocks can be used to install luamongo last unstable version: luarocks install "https://raw.githubusercontent.com/moai/luamongo/master/rockspec/luamongo-unstable-0.rockspec" or install any other of the versions available at `rockspec` directory. + +For modern Linux systems, you will need to update your luarocks configuration +file, usually located at `/usr/local/etc/luarocks/config.lua`, adding the +following Lua table: + +```Lua +external_deps_dirs = { + { + prefix='/usr/', + include='include', + lib='lib', + }, + { + prefix='/usr/', + include='include', + lib='lib/i386-linux-gnu', + }, + { + prefix='/usr/', + include='include', + lib='lib/x86_64-linux-gnu', + }, + { + prefix='/usr/local', + }, +} +``` diff --git a/rockspec/luamongo-scm-0.rockspec b/rockspec/luamongo-scm-0.rockspec new file mode 100644 index 0000000..6406f1d --- /dev/null +++ b/rockspec/luamongo-scm-0.rockspec @@ -0,0 +1,43 @@ +package = "luamongo" +version = "scm-0" + +source = { + url = "https://github.com/moai/luamongo/archive/master.zip", + dir = "luamongo-master", +} + +description = { + summary = "Lua client library for mongodb", + detailed = [[ + luamongo: Lua mongo client library + ]], + homepage = "https://github.com/moai/luamongo", + license = "MIT/X11", +} + +dependencies = { + "lua >= 5.2", +} + +external_dependencies = { + LIBMONGOCLIENT = { + header = "mongo/client/dbclient.h", + library = "mongoclient", + }, + LIBSSL = { + library = "ssl", + }, + LIBBOOST_THREAD = { + library = "boost_thread", + }, + LIBBOOST_FILESYSTEM = { + library = "boost_filesystem", + }, +} + +build = { + type = "make", + copy_directories = {}, + install_pass = false, + install = { lib = { "mongo.so" } }, +} diff --git a/rockspec/luamongo-unstable-0.rockspec b/rockspec/luamongo-unstable-0.rockspec deleted file mode 100644 index 1890682..0000000 --- a/rockspec/luamongo-unstable-0.rockspec +++ /dev/null @@ -1,33 +0,0 @@ -package = "luamongo" -version = "unstable-0" - -source = { - url = "https://github.com/moai/luamongo.git", -} - -description = { - summary = "Lua client library for mongodb", - detailed = [[ - luamongo: Lua mongo client library - ]], - homepage = "https://github.com/moai/luamongo", - license = "MIT/X11" -} - -dependencies = { - "lua >= 5.2" -} - -external_dependencies = { - LIBMONGOCLIENT = { - header = "mongo/client/dbclient.h", - library = "mongoclient", - } -} - -build = { - type = "make", - copy_directories = {}, - install_pass = false, - install = { lib = { "mongo.so" } } -} diff --git a/rockspec/luamongo-v0.4-0.rockspec b/rockspec/luamongo-v0.4-0.rockspec deleted file mode 100644 index 67327a0..0000000 --- a/rockspec/luamongo-v0.4-0.rockspec +++ /dev/null @@ -1,34 +0,0 @@ -package = "luamongo" -version = "v0.4-0" - -source = { - url = "https://github.com/moai/luamongo.git", - tag = "v0.4-0" -} - -description = { - summary = "Lua client library for mongodb", - detailed = [[ - luamongo: Lua mongo client library - ]], - homepage = "https://github.com/moai/luamongo", - license = "MIT/X11" -} - -dependencies = { - "lua >= 5.2" -} - -external_dependencies = { - LIBMONGOCLIENT = { - header = "mongo/client/dbclient.h", - library = "mongoclient", - } -} - -build = { - type = "make", - copy_directories = {}, - install_pass = false, - install = { lib = { "mongo.so" } } -} diff --git a/rockspec/luamongo-v0.4.1.rockspec b/rockspec/luamongo-v0.4.1.rockspec index 7fe6123..721f871 100644 --- a/rockspec/luamongo-v0.4.1.rockspec +++ b/rockspec/luamongo-v0.4.1.rockspec @@ -2,33 +2,42 @@ package = "luamongo" version = "v0.4.1" source = { - url = "https://github.com/moai/luamongo.git", - tag = "v0.4.1" + url = "https://github.com/moai/luamongo/archive/v0.4.1.zip", + dir = "luamongo-0.4.1", } description = { - summary = "Lua client library for mongodb", - detailed = [[ + summary = "Lua client library for mongodb", + detailed = [[ luamongo: Lua mongo client library ]], - homepage = "https://github.com/moai/luamongo", - license = "MIT/X11" + homepage = "https://github.com/moai/luamongo", + license = "MIT/X11" } dependencies = { - "lua >= 5.2" + "lua >= 5.2" } external_dependencies = { - LIBMONGOCLIENT = { - header = "mongo/client/dbclient.h", - library = "mongoclient", - } + LIBMONGOCLIENT = { + header = "mongo/client/dbclient.h", + library = "mongoclient", + }, + LIBSSL = { + library = "ssl", + }, + LIBBOOST_THREAD = { + library = "boost_thread", + }, + LIBBOOST_FILESYSTEM = { + library = "boost_filesystem", + }, } build = { - type = "make", - copy_directories = {}, - install_pass = false, - install = { lib = { "mongo.so" } } + type = "make", + copy_directories = {}, + install_pass = false, + install = { lib = { "mongo.so" } } }