From 59253728845663a6e741192944ebb2d4a9b9acfd Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 20 Nov 2018 14:35:35 -0800 Subject: [PATCH] luasql: Update to 2.4.0 Switch to codeload + other adjustments. Removed nico as he seems to no longer be active. Signed-off-by: Rosen Penev --- lang/luasql/Makefile | 23 ++++++++------------- lang/luasql/patches/01-mariadb-compat.patch | 20 ------------------ 2 files changed, 9 insertions(+), 34 deletions(-) delete mode 100644 lang/luasql/patches/01-mariadb-compat.patch diff --git a/lang/luasql/Makefile b/lang/luasql/Makefile index 1a43fdbcbe..3ca72b08bb 100644 --- a/lang/luasql/Makefile +++ b/lang/luasql/Makefile @@ -8,21 +8,17 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luasql -PKG_VERSION:=2.3.0 -PKG_RELEASE:=2 +PKG_VERSION:=2.4.0 +PKG_RELEASE:=1 -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz -PKG_MIRROR_HASH:=b6251065656bf3e066d90d492dd06eec2c2cc76ab4b94187ce3ed9620d41f741 -PKG_SOURCE_PROTO:=git -PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -PKG_SOURCE_URL:=https://github.com/keplerproject/luasql.git -PKG_SOURCE_VERSION:=v$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://codeload.github.com/keplerproject/luasql/tar.gz/v$(PKG_VERSION)? +PKG_HASH:=db2458a8c8c5f3bc717e4030fe2878f1ad8d71e437ec6149c381eebad5d525c5 +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) +PKG_MAINTAINER:= PKG_LICENSE:=MIT PKG_LICENSE_FILES:=docs/us/license.html -PKG_MAINTAINER:=Nicolas Thill - -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) include $(INCLUDE_DIR)/package.mk @@ -31,7 +27,7 @@ define Package/luasql/Default SECTION:=lang CATEGORY:=Languages TITLE:=Lua SQL binding - URL:=http://keplerproject.github.io/luasql/ + URL:=https://keplerproject.github.io/luasql/ DEPENDS:= +lua endef @@ -99,11 +95,10 @@ ifeq ($(BUILD_VARIANT),sqlite3) endif MAKE_FLAGS += \ - T="$(BUILD_VARIANT)" \ DRIVER_INCS="$(TARGET_CPPFLAGS)" \ DRIVER_LIBS="$(TARGET_LDFLAGS)" \ CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ - lib + $(BUILD_VARIANT) define Package/Install/Default $(INSTALL_DIR) $(1)/usr/lib/lua/luasql diff --git a/lang/luasql/patches/01-mariadb-compat.patch b/lang/luasql/patches/01-mariadb-compat.patch deleted file mode 100644 index ceab7286de..0000000000 --- a/lang/luasql/patches/01-mariadb-compat.patch +++ /dev/null @@ -1,20 +0,0 @@ -commit 6df3f672313f8dbca219199c8ec8d20c0247347f -Author: Tomás Guisasola -Date: Mon Jul 31 09:41:49 2017 -0300 - - Add support for building with MariaDB (thanks to Florian Weimer). - ---- a/src/ls_mysql.c -+++ b/src/ls_mysql.c -@@ -602,7 +602,11 @@ LUASQL_API int luaopen_luasql_mysql (lua - luaL_setfuncs(L, driver, 0); - luasql_set_info (L); - lua_pushliteral (L, "_MYSQLVERSION"); -+#ifdef MARIADB_CLIENT_VERSION_STR -+ lua_pushliteral (L, MARIADB_CLIENT_VERSION_STR); -+#else - lua_pushliteral (L, MYSQL_SERVER_VERSION); -+#endif - lua_settable (L, -3); - return 1; - } -- 2.30.2