Skip to content

Commit

Permalink
Merge pull request #24 from terminar/moai_luamongo_rockspec
Browse files Browse the repository at this point in the history
added luarocks rockspec file and information to readme
  • Loading branch information
pakozm committed May 6, 2014
2 parents cd40440 + 7d12445 commit e506238
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ luamongo is a Lua library that wraps the <a href="https://github.com/mongodb/mon

The current implementation does not give you raw access to the BSON objects. BSON objects are passed to the API using a Lua table or a JSON string representation. Every returned BSON document is fully marshalled to a Lua table.

## Installing

luarocks can be used to install luamongo.

luarocks install "https://github.com/moai/raw/master/rockspec/luamongo-scm-0.rockspec"

## History

This project was forked from the <a href="http://code.google.com/p/luamongo/">luamongo project</a> on googlecode.
Expand Down
37 changes: 37 additions & 0 deletions luamongo-scm-0.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package = "luamongo"
version = "scm-0"

source = {
url = "git://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.1"
}

external_dependencies = {
LIBMONGOCLIENT = {
header = "mongo/client/dbclient.h",
library = "mongoclient",
}
}

build = {
type = "make",
build_variables = {
CC="g++",
CFLAGS="-g -O2 -shared -fPIC -I/usr/include/mongo -I/usr/include/lua",
},
copy_directories = {},
install_pass = false,
install = { lib = { "mongo.so" } }
}

0 comments on commit e506238

Please sign in to comment.