summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamil <kamil>2016-10-08 12:53:54 +0000
committerkamil <kamil>2016-10-08 12:53:54 +0000
commite23cc32392c87c045087ddee39491d0cfedf7907 (patch)
treed93c91f74a7cb9b31957e55710397553c9c86c40
parent881a9ef68e6cdae1b6abea13301471adc8bc9396 (diff)
downloadpkgsrc-e23cc32392c87c045087ddee39491d0cfedf7907.tar.gz
Import MySQL luasql 2.3.2 as databases/lua-sql-mysql
LuaSQL is a simple interface from Lua to a DBMS. It enables a Lua program to: * Connect to ODBC, Oracle, MySQL and PostgreSQL databases; * Execute arbitrary SQL statements; * Retrieve results in a row-by-row cursor fashion; This package provides access to MySQL.
-rw-r--r--databases/lua-sql-mysql/DESCR6
-rw-r--r--databases/lua-sql-mysql/Makefile16
-rw-r--r--databases/lua-sql-mysql/Makefile.common28
-rw-r--r--databases/lua-sql-mysql/PLIST2
-rw-r--r--databases/lua-sql-mysql/distinfo6
5 files changed, 58 insertions, 0 deletions
diff --git a/databases/lua-sql-mysql/DESCR b/databases/lua-sql-mysql/DESCR
new file mode 100644
index 00000000000..127afdddce8
--- /dev/null
+++ b/databases/lua-sql-mysql/DESCR
@@ -0,0 +1,6 @@
+LuaSQL is a simple interface from Lua to a DBMS. It enables a Lua program to:
+ * Connect to ODBC, Oracle, MySQL and PostgreSQL databases;
+ * Execute arbitrary SQL statements;
+ * Retrieve results in a row-by-row cursor fashion;
+
+This package provides access to MySQL.
diff --git a/databases/lua-sql-mysql/Makefile b/databases/lua-sql-mysql/Makefile
new file mode 100644
index 00000000000..c21806815e8
--- /dev/null
+++ b/databases/lua-sql-mysql/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2016/10/08 12:53:54 kamil Exp $
+
+.include "Makefile.common"
+
+PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/luasql/sql-mysql/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+COMMENT= MySQL bindings for Lua
+
+BUILD_TARGET= mysql
+
+MAKE_FLAGS+= DRIVER_LIBS_mysql="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.mysql-client}/lib -L${BUILDLINK_PREFIX.mysql-client}/lib -lmysqlclient"
+MAKE_FLAGS+= DRIVER_INCS_mysql=-I${BUILDLINK_PREFIX.mysql-client}/include/mysql
+
+.include "../../mk/mysql.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/lua-sql-mysql/Makefile.common b/databases/lua-sql-mysql/Makefile.common
new file mode 100644
index 00000000000..1700c01a658
--- /dev/null
+++ b/databases/lua-sql-mysql/Makefile.common
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile.common,v 1.1 2016/10/08 12:53:54 kamil Exp $
+#
+# used by databases/lua-sql-postgres/Makefile
+# used by databases/lua-sql-sqlite/Makefile
+# used by databases/lua-sql-sqlite3/Makefile
+
+# TODO: firebird, oci8, odbc
+
+GITHUB_PROJECT= luasql
+DISTNAME= luasql-2.3.2
+CATEGORIES= databases
+MASTER_SITES= ${MASTER_SITE_GITHUB:=keplerproject/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+LICENSE= mit
+HOMEPAGE= http://www.keplerproject.org/luasql/
+
+USE_TOOLS+= gmake
+
+MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX}
+MAKE_FLAGS+= LUA_LIBDIR=${DESTDIR}${PREFIX}/${LUA_CDIR}
+MAKE_FLAGS+= LUA_DIR=${DESTDIR}${PREFIX}/${LUA_LDIR}
+MAKE_FLAGS+= LUA_INC=${DESTDIR}${PREFIX}/${LUA_INCDIR}
+
+DISTINFO_FILE= ${.CURDIR}/../../databases/lua-sql-mysql/distinfo
+PATCHDIR= ${.CURDIR}/../../databases/lua-sql-mysql/patches
+
+.include "../../lang/lua/module.mk"
diff --git a/databases/lua-sql-mysql/PLIST b/databases/lua-sql-mysql/PLIST
new file mode 100644
index 00000000000..aa342659584
--- /dev/null
+++ b/databases/lua-sql-mysql/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2016/10/08 12:53:54 kamil Exp $
+${LUA_CDIR}/luasql/mysql.so
diff --git a/databases/lua-sql-mysql/distinfo b/databases/lua-sql-mysql/distinfo
new file mode 100644
index 00000000000..f1c760b1507
--- /dev/null
+++ b/databases/lua-sql-mysql/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/10/08 12:53:54 kamil Exp $
+
+SHA1 (luasql-2.3.2.tar.gz) = 089b797d22589277b9b2f926f4da008fe7026ccb
+RMD160 (luasql-2.3.2.tar.gz) = 478d699360fa9d0605a1801962b0bade6a8e6098
+SHA512 (luasql-2.3.2.tar.gz) = 6bfd25c494fa214c2f449d95448966b4872fa46a8df87969a9bd654c4f8c341f2a3a56b2bd6ca6cf09971caf5ab05a0c912fffe97dc782921572039308f7f8fa
+Size (luasql-2.3.2.tar.gz) = 100985 bytes