diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2016-01-11 23:47:11 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2016-01-13 20:27:07 (GMT) |
commit | 4f2f9bf8064a0ad8733a2297d5a0cbcad7f35d3f (patch) | |
tree | e31aa66a38d61ad3dda930d14a5549deeb37c782 /plugins/luarocks | |
parent | cd9e79dc6269a7aa7c6c1d652f5d4101b890f8b0 (diff) | |
download | mxe-4f2f9bf8064a0ad8733a2297d5a0cbcad7f35d3f.zip mxe-4f2f9bf8064a0ad8733a2297d5a0cbcad7f35d3f.tar.gz mxe-4f2f9bf8064a0ad8733a2297d5a0cbcad7f35d3f.tar.bz2 |
update luarocks from 2.2.2 to 2.3.0
Diffstat (limited to 'plugins/luarocks')
-rw-r--r-- | plugins/luarocks/luarocks-1-fixes.patch | 30 | ||||
-rw-r--r-- | plugins/luarocks/luarocks.mk | 4 |
2 files changed, 21 insertions, 13 deletions
diff --git a/plugins/luarocks/luarocks-1-fixes.patch b/plugins/luarocks/luarocks-1-fixes.patch index 8940e8e..33e9fb8 100644 --- a/plugins/luarocks/luarocks-1-fixes.patch +++ b/plugins/luarocks/luarocks-1-fixes.patch @@ -26,21 +26,29 @@ diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index 1111111..2222222 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua -@@ -118,6 +118,9 @@ elseif system and system:match("^Windows") then - elseif system and system:match("^MINGW") then - detected.windows = true - detected.mingw32 = true +@@ -120,6 +120,9 @@ elseif system and system:match("^MINGW") then + cfg.platforms.windows = true + cfg.platforms.mingw32 = true + cfg.platforms.win32 = true +elseif system and system:match("^MXE") then -+ detected.unix = true -+ detected.mxe = true ++ cfg.platforms.unix = true ++ cfg.platforms.mxe = true else - detected.unix = true + cfg.platforms.unix = true -- Fall back to Unix in unknown systems. -@@ -430,6 +433,44 @@ if detected.unix then +@@ -137,6 +140,7 @@ local platform_order = { + linux = 7, + macosx = 8, + cygwin = 9, ++ mxe = 13, + -- Windows + win32 = 10, + mingw32 = 11, +@@ -509,6 +513,44 @@ if cfg.platforms.unix then defaults.web_browser = "xdg-open" end -+if detected.mxe then ++if cfg.platforms.mxe then + local MXE_ROOT, MXE_TARGET = + assert(site_config.LUAROCKS_PREFIX:match('^(.*)/usr/([^/]+)$')) + defaults.lib_extension = "dll" @@ -78,6 +86,6 @@ index 1111111..2222222 100644 + } +end + - if detected.cygwin then + if cfg.platforms.cygwin then defaults.lib_extension = "so" -- can be overridden in the config file for mingw builds - defaults.arch = "cygwin-"..proc + defaults.arch = "cygwin-"..cfg.target_cpu diff --git a/plugins/luarocks/luarocks.mk b/plugins/luarocks/luarocks.mk index 9b942a6..ef4a5ac 100644 --- a/plugins/luarocks/luarocks.mk +++ b/plugins/luarocks/luarocks.mk @@ -5,8 +5,8 @@ PKG := luarocks $(PKG)_WEBSITE := https://luarocks.org/ $(PKG)_OWNER := https://github.com/starius $(PKG)_IGNORE := -$(PKG)_VERSION := 2.2.2 -$(PKG)_CHECKSUM := 4f0427706873f30d898aeb1dfb6001b8a3478e46a5249d015c061fe675a1f022 +$(PKG)_VERSION := 2.3.0 +$(PKG)_CHECKSUM := 68e38feeb66052e29ad1935a71b875194ed8b9c67c2223af5f4d4e3e2464ed97 $(PKG)_SUBDIR := luarocks-$($(PKG)_VERSION) $(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz $(PKG)_URL := https://keplerproject.github.io/luarocks/releases/$($(PKG)_FILE) |