luaposix: remove deprecated/compatibility modules, remove dependency on luabitop
authorMaxim Storchak <[email protected]>
Mon, 2 Feb 2015 23:44:50 +0000 (01:44 +0200)
committerMaxim Storchak <[email protected]>
Mon, 2 Feb 2015 23:46:25 +0000 (01:46 +0200)
Signed-off-by: Maxim Storchak <[email protected]>
lang/luaposix/Makefile
lang/luaposix/patches/102-disable-compat-deprecated.diff [new file with mode: 0644]

index 4a0d734fd3c439b29a47925996a7751b91fd4d4b..dd4a056716d722e7e612dcc5dfbb69002e78f194 100644 (file)
@@ -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
new file mode 100644 (file)
index 0000000..7c58be4
--- /dev/null
@@ -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@"