commit 3e26b8d3286ab29c35e4c866cce215f003983946
parent fd2e9f075025be4b72f38ccfca95259990043fba
Author: Steven Barth <steven@midlink.org>
Date: Tue, 3 Feb 2015 10:30:56 +0100
Merge pull request #850 from mstorchak/luaposix
luaposix: remove deprecated/compatibility modules, remove dependency on luabitop
Diffstat:
2 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/lang/luaposix/Makefile b/lang/luaposix/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luaposix
PKG_VERSION:=v33.2.1
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_SOURCE:=release-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/luaposix/luaposix/archive/
@@ -29,7 +29,7 @@ define Package/luaposix
CATEGORY:=Languages
TITLE:=luaposix
URL:=http://luaforge.net/projects/luaposix/
- DEPENDS:=+lua +librt +luabitop
+ DEPENDS:=+lua +librt
PKG_BUILD_DEPENDS:=+lua/host
endef
@@ -53,7 +53,6 @@ define Package/luaposix/install
$(INSTALL_DIR) $(1)/usr/lib/lua/posix
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ext/posix/.libs/posix.so $(1)/usr/lib/lua
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/posix.lua $(1)/usr/lib/lua
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/posix/*.lua $(1)/usr/lib/lua/posix
endef
$(eval $(call BuildPackage,luaposix))
diff --git a/lang/luaposix/patches/102-disable-compat-deprecated.diff b/lang/luaposix/patches/102-disable-compat-deprecated.diff
@@ -0,0 +1,20 @@
+diff --git a/lib/posix.lua.in b/lib/posix.lua.in
+index 17ef39a..a248d9b 100644
+--- a/lib/posix.lua.in
++++ b/lib/posix.lua.in
+@@ -35,15 +35,6 @@ for _, sub in ipairs {
+ end
+ end
+
+-
+--- Inject deprecated APIs (overwriting submodules) for backwards compatibility.
+-for k, v in pairs (require "posix.deprecated") do
+- M[k] = v
+-end
+-for k, v in pairs (require "posix.compat") do
+- M[k] = v
+-end
+-
+ M.version = "posix for " .. _VERSION .. " / @PACKAGE_STRING@"
+
+