From 44e8ed9f1fc537bc279b51d1ebdb633c636f5bfa Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Tue, 1 Mar 2011 21:41:01 +0100 Subject: rockspecs for 2.0.11 and 2.1.0 (latest not operational yet since tag doesn't exist) --- lanes-2.0-11.rockspec | 4 +-- lanes-2.1-0.rockspec | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+), 2 deletions(-) create mode 100644 lanes-2.1-0.rockspec diff --git a/lanes-2.0-11.rockspec b/lanes-2.0-11.rockspec index 11682b6..a5e7d3a 100644 --- a/lanes-2.0-11.rockspec +++ b/lanes-2.0-11.rockspec @@ -15,8 +15,8 @@ package = "Lanes" version = "2.0-11" source= { - url= "http://github.com/downloads/LuaLanes/lanes/lanes-2.0.11.tgz", - md5= "23f8e3f88cca5fcea6c600014d806850" + url= "git://github.com/LuaLanes/lanes.git", + branch= "v2.0.11" } description = { diff --git a/lanes-2.1-0.rockspec b/lanes-2.1-0.rockspec new file mode 100644 index 0000000..a8ff1d2 --- /dev/null +++ b/lanes-2.1-0.rockspec @@ -0,0 +1,97 @@ +-- +-- Lanes rockspec +-- +-- Ref: +-- +-- +-- History: +-- BGe 1-Mar-2011: 2.1.0 +-- BGe 27-Jan-2011: 2.0.11 (see CHANGES) +-- AKa 1-Sep-2008: 2.0-2 (NOT sent to list): fixed VC++ not finding DLL issue +-- AKa 20-Aug-2008: 2.0-1 sent to luarocks-developers +-- + +package = "Lanes" + +version = "2.1-0" + +source= { + url= "git://github.com/LuaLanes/lanes.git", + branch= "v2.1.0" +} + +description = { + summary= "Multithreading support for Lua", + detailed= [[ + Lua Lanes is a portable, message passing multithreading library + providing the possibility to run multiple Lua states in parallel. + ]], + license= "MIT/X11", + homepage="http://kotisivu.dnainternet.net/askok/lanes/", + maintainer="Benoit Germain " +} + +-- Q: What is the difference of "windows" and "win32"? Seems there is none; +-- so should we list either one or both? +-- +supported_platforms= { "win32", + "macosx", + "linux", + "freebsd", -- TBD: not tested + "msys", -- TBD: not supported by LuaRocks 1.0 (or is it?) +} + +dependencies= { + "lua >= 5.1, <= 5.2", +} + +-- +-- Non-Win32: build using the Makefile +-- Win32: build using 'make-vc.cmd' and "manual" copy of products +-- +-- TBD: How is MSYS treated? We'd like (really) it to use the Makefile. +-- It should be a target like "cygwin", not defining "windows". +-- "windows" should actually guarantee Visual C++ as the compiler. +-- +-- Q: Does "win32" guarantee we have Visual C++ 2005/2008 command line tools? +-- +-- Note: Cannot use the simple "module" build type, because we need to precompile +-- 'src/keeper.lua' -> keeper.lch and bake it into lanes.c. +-- +build = { + + -- Win32 (Visual C++) uses 'make-vc.cmd' for building + -- + platforms= { + windows= { + type= "command", + build_command= "make-vc.cmd", + install= { + lua = { "src/lanes.lua" }, + lib = { "lua51-lanes.dll" } + } + } + }, + + -- Other platforms use the Makefile + -- + -- LuaRocks defines CFLAGS, LIBFLAG and LUA_INCDIR for 'make rock', + -- defines LIBDIR, LUADIR for 'make install' + -- + -- Ref: + -- + type = "make", + + build_target = "rock", + build_variables= { + CFLAGS= "$(CFLAGS) -I$(LUA_INCDIR)", + LIBFLAG= "$(LIBFLAG)", + }, + + install_target = "install", + install_variables= { + LUA_LIBDIR= "$(LIBDIR)", + LUA_SHAREDIR= "$(LUADIR)", + } +} + -- cgit v1.2.3-55-g6feb