Skip to content

Commit

Permalink
add rockspec for v1.1-0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mihacooper committed Feb 16, 2020
1 parent fd7a981 commit 8f1e4c9
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions rockspecs/effil-1.1-0.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package = "effil"
version = "1.1-0"

source = {
url = "gitrec+http://github.com/effil/effil",
tag = "v1.1-0"
}

description = {
summary = "Multithreading library for Lua.",
detailed = [[
Effil is a lua module for multithreading support. It allows to spawn native threads and provides safe data exchange.
]],
homepage = "https://github.com/effil/effil",
license = "MIT"
}

dependencies = {
"lua >= 5.1", "luarocks-fetch-gitrec"
}

local function get_unix_build()
local install_dir = "rockspeck-content"
return {
type = "cmake",
variables = {
CMAKE_BUILD_TYPE = "Release",
CMAKE_PREFIX_PATH = "$(LUA_BINDIR)/..",
CMAKE_INSTALL_PREFIX = install_dir,
CMAKE_LIBRARY_PATH = "$(LUA_LIBDIR)",
LUA_INCLUDE_DIR = "$(LUA_INCDIR)",
BUILD_ROCK = "yes"
},
install = {
lib = { install_dir .. "/effil.so" }
}
}
end

build = {
platforms = {
linux = get_unix_build(),
macosx = get_unix_build()
}
}

0 comments on commit 8f1e4c9

Please sign in to comment.