Browse Source

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 <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 6 years ago
parent
commit
5925372884
2 changed files with 9 additions and 34 deletions
  1. +9
    -14
      lang/luasql/Makefile
  2. +0
    -20
      lang/luasql/patches/01-mariadb-compat.patch

+ 9
- 14
lang/luasql/Makefile View File

@ -8,21 +8,17 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=luasql 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:=MIT
PKG_LICENSE_FILES:=docs/us/license.html PKG_LICENSE_FILES:=docs/us/license.html
PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
@ -31,7 +27,7 @@ define Package/luasql/Default
SECTION:=lang SECTION:=lang
CATEGORY:=Languages CATEGORY:=Languages
TITLE:=Lua SQL binding TITLE:=Lua SQL binding
URL:=http://keplerproject.github.io/luasql/
URL:=https://keplerproject.github.io/luasql/
DEPENDS:= +lua DEPENDS:= +lua
endef endef
@ -99,11 +95,10 @@ ifeq ($(BUILD_VARIANT),sqlite3)
endif endif
MAKE_FLAGS += \ MAKE_FLAGS += \
T="$(BUILD_VARIANT)" \
DRIVER_INCS="$(TARGET_CPPFLAGS)" \ DRIVER_INCS="$(TARGET_CPPFLAGS)" \
DRIVER_LIBS="$(TARGET_LDFLAGS)" \ DRIVER_LIBS="$(TARGET_LDFLAGS)" \
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
lib
$(BUILD_VARIANT)
define Package/Install/Default define Package/Install/Default
$(INSTALL_DIR) $(1)/usr/lib/lua/luasql $(INSTALL_DIR) $(1)/usr/lib/lua/luasql


+ 0
- 20
lang/luasql/patches/01-mariadb-compat.patch View File

@ -1,20 +0,0 @@
commit 6df3f672313f8dbca219199c8ec8d20c0247347f
Author: Tomás Guisasola <tomasguisasola@gmail.com>
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;
}

Loading…
Cancel
Save