File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ package = " mtstates"
2+ version = " 0.3.1-1"
3+ local versionNumber = version :gsub (" ^(.*)-.-$" , " %1" )
4+ source = {
5+ url = " https://github.com/osch/lua-mtstates/archive/v" .. versionNumber .. " .zip" ,
6+ dir = " lua-mtstates-" .. versionNumber ,
7+ }
8+ description = {
9+ summary = " Multi-threading Lua states" ,
10+ homepage = " https://github.com/osch/lua-mtstates" ,
11+ license = " MIT/X11" ,
12+ detailed = [[
13+ This package provides a way to create new Lua states from within Lua for using
14+ them in arbitrary threads. The implementation is independent from the
15+ underlying threading library (e.g. Lanes or lua-llthreads2).
16+ ]] ,
17+ }
18+ dependencies = {
19+ " lua >= 5.1, < 5.4" ,
20+ }
21+ build = {
22+ type = " builtin" ,
23+ platforms = {
24+ unix = {
25+ modules = {
26+ mtstates = {
27+ libraries = {" pthread" },
28+ }
29+ }
30+ },
31+ windows = {
32+ modules = {
33+ mtstates = {
34+ libraries = {" kernel32" },
35+ }
36+ }
37+ }
38+ },
39+ modules = {
40+ mtstates = {
41+ sources = {
42+ " src/main.c" ,
43+ " src/state.c" ,
44+ " src/error.c" ,
45+ " src/util.c" ,
46+ " src/async_util.c" ,
47+ " src/mtstates_compat.c" ,
48+ },
49+ defines = { " MTSTATES_VERSION=" .. versionNumber },
50+ },
51+ }
52+ }
You can’t perform that action at this time.
0 commit comments