Skip to content

Commit

Permalink
add rockspec
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Jul 2, 2013
1 parent 5b7997a commit 4e33db6
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 2 deletions.
48 changes: 48 additions & 0 deletions hive-0.1-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package = "hive"
version = "0.1-1"
source = {
url = "http://..." -- We don't have one yet
}
description = {
summary = "Parallel multiple lua states.",
detailed = [[
Hive is a small library to provide parallel
multiple lua states . It works like an erlang
system . You can use actor model in lua.
]],
homepage = "https://github.com/cloudwu/hive",
license = "MIT/X11",
maintainer = "云风 <cloudwu@gmail.com>"
}

supported_platforms = {
"unix",
"windows",
"macosx",
}

dependencies = {
"lua >= 5.2, < 5.3"
}

build = {
type = "builtin",
modules = {
hive = "hive.lua",
["hive.system"] = "hive/system.lua",
["hive.socket"] = "hive/socket.lua",
["hive.core"] = {
sources = {
"src/hive.c",
"src/hive_cell.c" ,
"src/hive_seri.c" ,
"src/hive_scheduler.c" ,
"src/hive_env.c" ,
"src/hive_cell_lib.c" ,
"src/hive_system_lib.c" ,
"src/hive_socket_lib.c",
},
libraries = { "pthread" },
}
},
}
2 changes: 1 addition & 1 deletion hive.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local c = require "hive.c"
local c = require "hive.core"

local system_cell = assert(package.searchpath("hive.system", package.path),"system cell was not found")

Expand Down
2 changes: 1 addition & 1 deletion src/hive.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "hive_scheduler.h"

int
luaopen_hive_c(lua_State *L) {
luaopen_hive_core(lua_State *L) {
luaL_Reg l[] = {
{ "start", scheduler_start },
{ NULL, NULL },
Expand Down

0 comments on commit 4e33db6

Please sign in to comment.