summaryrefslogtreecommitdiffstats
path: root/plugins/luarocks/luv-1-fixes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/luarocks/luv-1-fixes.patch')
-rw-r--r--plugins/luarocks/luv-1-fixes.patch69
1 files changed, 69 insertions, 0 deletions
diff --git a/plugins/luarocks/luv-1-fixes.patch b/plugins/luarocks/luv-1-fixes.patch
new file mode 100644
index 0000000..bce9e26
--- /dev/null
+++ b/plugins/luarocks/luv-1-fixes.patch
@@ -0,0 +1,69 @@
+This file is part of MXE.
+See index.html for further information.
+
+Contains ad hoc patches for cross building.
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Boris Nagaev <bnagaev@gmail.com>
+Date: Mon, 25 Apr 2016 02:31:37 +0200
+Subject: [PATCH] add rockspec from upstream
+
+
+diff --git a/luv-1.9.0-1.rockspec b/luv-1.9.0-1.rockspec
+new file mode 100644
+index 1111111..2222222
+--- /dev/null
++++ b/luv-1.9.0-1.rockspec
+@@ -0,0 +1,34 @@
++package = "luv"
++version = "1.9.0-1"
++source = {
++ url = 'https://github.com/luvit/luv/releases/download/'..version..'/luv-'..version..'.tar.gz'
++}
++
++description = {
++ summary = "Bare libuv bindings for lua",
++ detailed = [[
++libuv bindings for luajit and lua 5.1/5.2/5.3.
++
++This library makes libuv available to lua scripts. It was made for the luvit
++project but should usable from nearly any lua project.
++ ]],
++ homepage = "https://github.com/luvit/luv",
++ license = "Apache 2.0"
++}
++
++dependencies = {
++ "lua >= 5.1"
++}
++
++build = {
++ type = 'cmake',
++ variables = {
++ CMAKE_C_FLAGS="$(CFLAGS)",
++ CMAKE_MODULE_LINKER_FLAGS="$(LIBFLAG)",
++ LUA_LIBDIR="$(LUA_LIBDIR)",
++ LUA_INCDIR="$(LUA_INCDIR)",
++ LUA="$(LUA)",
++ LIBDIR="$(LIBDIR)",
++ LUADIR="$(LUADIR)",
++ },
++}
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Boris Nagaev <bnagaev@gmail.com>
+Date: Mon, 25 Apr 2016 02:25:47 +0200
+Subject: [PATCH] use external libuv
+
+
+diff --git a/luv-1.9.0-1.rockspec b/luv-1.9.0-1.rockspec
+index 1111111..2222222 100644
+--- a/luv-1.9.0-1.rockspec
++++ b/luv-1.9.0-1.rockspec
+@@ -30,5 +30,6 @@ build = {
+ LUA="$(LUA)",
+ LIBDIR="$(LIBDIR)",
+ LUADIR="$(LUADIR)",
++ WITH_SHARED_LIBUV="ON",
+ },
+ }