From 8c73ca05a8a6583844f7da90f3d8d1b2663a86a5 Mon Sep 17 00:00:00 2001
From: Benoit Germain <bnt.germain@gmail.com>
Date: Wed, 21 Nov 2012 21:04:48 +0100
Subject: rockspec for version 2.4.0

---
 lanes-3.2.0-1.rockspec | 54 -----------------------------------------
 lanes-3.3.0-1.rockspec | 54 -----------------------------------------
 lanes-3.4.0-1.rockspec | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 66 insertions(+), 108 deletions(-)
 delete mode 100644 lanes-3.2.0-1.rockspec
 delete mode 100644 lanes-3.3.0-1.rockspec
 create mode 100644 lanes-3.4.0-1.rockspec

diff --git a/lanes-3.2.0-1.rockspec b/lanes-3.2.0-1.rockspec
deleted file mode 100644
index 2b59e34..0000000
--- a/lanes-3.2.0-1.rockspec
+++ /dev/null
@@ -1,54 +0,0 @@
---
--- Lanes rockspec
---
--- Ref:
---      <http://luarocks.org/en/Rockspec_format>
---
-
-package = "Lanes"
-
-version = "3.2.0-1"
-
-source= {
-	url= "git://github.com/LuaLanes/lanes.git",
-	branch= "v3.2.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="https://github.com/LuaLanes/lanes",
-	maintainer="Benoit Germain <bnt.germain@gmail.com>"
-}
-
--- 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", -- builds with either 5.1 and 5.2
-}
-
-build = {
-	type = "builtin",
-	modules = 
-	{
-		["lanes.core"] =
-		{
-			sources = { "src/lanes.c", "src/keeper.c", "src/tools.c", "src/threading.c"},
-			incdirs = { "src"},
-		},
-		lanes = "src/lanes.lua"
-	}
-}
-
diff --git a/lanes-3.3.0-1.rockspec b/lanes-3.3.0-1.rockspec
deleted file mode 100644
index deab417..0000000
--- a/lanes-3.3.0-1.rockspec
+++ /dev/null
@@ -1,54 +0,0 @@
---
--- Lanes rockspec
---
--- Ref:
---      <http://luarocks.org/en/Rockspec_format>
---
-
-package = "Lanes"
-
-version = "3.3.0-1"
-
-source= {
-	url= "git://github.com/LuaLanes/lanes.git",
-	branch= "v3.3.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="https://github.com/LuaLanes/lanes",
-	maintainer="Benoit Germain <bnt.germain@gmail.com>"
-}
-
--- 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", -- builds with either 5.1 and 5.2
-}
-
-build = {
-	type = "builtin",
-	modules =
-	{
-		["lanes.core"] =
-		{
-			sources = { "src/lanes.c", "src/keeper.c", "src/tools.c", "src/threading.c"},
-			incdirs = { "src"},
-		},
-		lanes = "src/lanes.lua"
-	}
-}
-
diff --git a/lanes-3.4.0-1.rockspec b/lanes-3.4.0-1.rockspec
new file mode 100644
index 0000000..3d294e3
--- /dev/null
+++ b/lanes-3.4.0-1.rockspec
@@ -0,0 +1,66 @@
+--
+-- Lanes rockspec
+--
+-- Ref:
+--      <http://luarocks.org/en/Rockspec_format>
+--
+
+package = "Lanes"
+
+version = "3.4.0-1"
+
+source= {
+	url= "git://github.com/LuaLanes/lanes.git",
+	branch= "v3.4.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="https://github.com/LuaLanes/lanes",
+	maintainer="Benoit Germain <bnt.germain@gmail.com>"
+}
+
+-- 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", -- builds with either 5.1 and 5.2
+}
+
+build = {
+	type = "builtin",
+	platforms =
+	{
+		linux =
+		{
+			modules =
+			{
+				["lanes.core"] =
+				{
+					libraries = "pthread"
+				},
+			}
+		}
+	},
+	modules =
+	{
+		["lanes.core"] =
+		{
+			sources = { "src/lanes.c", "src/keeper.c", "src/tools.c", "src/threading.c"},
+			incdirs = { "src"},
+		},
+		lanes = "src/lanes.lua"
+	}
+}
-- 
cgit v1.2.3-55-g6feb