diff options
| author | Benoit Germain <bnt.germain@gmail.com> | 2012-01-09 20:13:30 +0100 |
|---|---|---|
| committer | Benoit Germain <bnt.germain@gmail.com> | 2012-01-09 20:13:30 +0100 |
| commit | 3b252b7089906d1deebd9d5229217a52c2e2653f (patch) | |
| tree | e1c82f5a4c37f69c10cee0557defd515689b289e | |
| parent | 87431bcc0ece1eaf9305593223bb0c5145004044 (diff) | |
| download | lanes-3b252b7089906d1deebd9d5229217a52c2e2653f.tar.gz lanes-3b252b7089906d1deebd9d5229217a52c2e2653f.tar.bz2 lanes-3b252b7089906d1deebd9d5229217a52c2e2653f.zip | |
rockspec for version 3.0.0
| -rw-r--r-- | lanes-3.0.0-1.rockspec | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/lanes-3.0.0-1.rockspec b/lanes-3.0.0-1.rockspec new file mode 100644 index 0000000..1e090d5 --- /dev/null +++ b/lanes-3.0.0-1.rockspec | |||
| @@ -0,0 +1,97 @@ | |||
| 1 | -- | ||
| 2 | -- Lanes rockspec | ||
| 3 | -- | ||
| 4 | -- Ref: | ||
| 5 | -- <http://luarocks.org/en/Rockspec_format> | ||
| 6 | -- | ||
| 7 | -- History: | ||
| 8 | -- BGe 1-Mar-2011: 2.1.0 | ||
| 9 | -- BGe 27-Jan-2011: 2.0.11 (see CHANGES) | ||
| 10 | -- AKa 1-Sep-2008: 2.0-2 (NOT sent to list): fixed VC++ not finding DLL issue | ||
| 11 | -- AKa 20-Aug-2008: 2.0-1 sent to luarocks-developers | ||
| 12 | -- | ||
| 13 | |||
| 14 | package = "Lanes" | ||
| 15 | |||
| 16 | version = "3.0.0-1" | ||
| 17 | |||
| 18 | source= { | ||
| 19 | url= "git://github.com/LuaLanes/lanes.git", | ||
| 20 | branch= "v3.0.0" | ||
| 21 | } | ||
| 22 | |||
| 23 | description = { | ||
| 24 | summary= "Multithreading support for Lua", | ||
| 25 | detailed= [[ | ||
| 26 | Lua Lanes is a portable, message passing multithreading library | ||
| 27 | providing the possibility to run multiple Lua states in parallel. | ||
| 28 | ]], | ||
| 29 | license= "MIT/X11", | ||
| 30 | homepage="http://kotisivu.dnainternet.net/askok/lanes/", | ||
| 31 | maintainer="Benoit Germain <bnt.germain@gmail.com>" | ||
| 32 | } | ||
| 33 | |||
| 34 | -- Q: What is the difference of "windows" and "win32"? Seems there is none; | ||
| 35 | -- so should we list either one or both? | ||
| 36 | -- | ||
| 37 | supported_platforms= { "win32", | ||
| 38 | "macosx", | ||
| 39 | "linux", | ||
| 40 | "freebsd", -- TBD: not tested | ||
| 41 | "msys", -- TBD: not supported by LuaRocks 1.0 (or is it?) | ||
| 42 | } | ||
| 43 | |||
| 44 | dependencies= { | ||
| 45 | "lua >= 5.1, <= 5.2", | ||
| 46 | } | ||
| 47 | |||
| 48 | -- | ||
| 49 | -- Non-Win32: build using the Makefile | ||
| 50 | -- Win32: build using 'make-vc.cmd' and "manual" copy of products | ||
| 51 | -- | ||
| 52 | -- TBD: How is MSYS treated? We'd like (really) it to use the Makefile. | ||
| 53 | -- It should be a target like "cygwin", not defining "windows". | ||
| 54 | -- "windows" should actually guarantee Visual C++ as the compiler. | ||
| 55 | -- | ||
| 56 | -- Q: Does "win32" guarantee we have Visual C++ 2005/2008 command line tools? | ||
| 57 | -- | ||
| 58 | -- Note: Cannot use the simple "module" build type, because we need to precompile | ||
| 59 | -- 'src/keeper.lua' -> keeper.lch and bake it into lanes.c. | ||
| 60 | -- | ||
| 61 | build = { | ||
| 62 | |||
| 63 | -- Win32 (Visual C++) uses 'make-vc.cmd' for building | ||
| 64 | -- | ||
| 65 | platforms= { | ||
| 66 | windows= { | ||
| 67 | type= "command", | ||
| 68 | build_command= "make-vc.cmd", | ||
| 69 | install= { | ||
| 70 | lua = { "src/lanes.lua" }, | ||
| 71 | lib = { "lua51-lanes.dll" } | ||
| 72 | } | ||
| 73 | } | ||
| 74 | }, | ||
| 75 | |||
| 76 | -- Other platforms use the Makefile | ||
| 77 | -- | ||
| 78 | -- LuaRocks defines CFLAGS, LIBFLAG and LUA_INCDIR for 'make rock', | ||
| 79 | -- defines LIBDIR, LUADIR for 'make install' | ||
| 80 | -- | ||
| 81 | -- Ref: <http://www.luarocks.org/en/Paths_and_external_dependencies> | ||
| 82 | -- | ||
| 83 | type = "make", | ||
| 84 | |||
| 85 | build_target = "rock", | ||
| 86 | build_variables= { | ||
| 87 | CFLAGS= "$(CFLAGS) -I$(LUA_INCDIR)", | ||
| 88 | LIBFLAG= "$(LIBFLAG)", | ||
| 89 | }, | ||
| 90 | |||
| 91 | install_target = "install", | ||
| 92 | install_variables= { | ||
| 93 | LUA_LIBDIR= "$(LIBDIR)", | ||
| 94 | LUA_SHAREDIR= "$(LUADIR)", | ||
| 95 | } | ||
| 96 | } | ||
| 97 | |||
