Skip to content

Commit

Permalink
Updated rockspecs
Browse files Browse the repository at this point in the history
  • Loading branch information
pakozm committed May 23, 2014
1 parent bc27177 commit c4ef8d6
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 82 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
}
```
43 changes: 43 additions & 0 deletions rockspec/luamongo-scm-0.rockspec
Original file line number Diff line number Diff line change
@@ -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" } },
}
33 changes: 0 additions & 33 deletions rockspec/luamongo-unstable-0.rockspec

This file was deleted.

34 changes: 0 additions & 34 deletions rockspec/luamongo-v0.4-0.rockspec

This file was deleted.

39 changes: 24 additions & 15 deletions rockspec/luamongo-v0.4.1.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -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" } }
}

0 comments on commit c4ef8d6

Please sign in to comment.