pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/lua-sql-mysql Import MySQL luasql 2.3.2 as d...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/71c78d66efdb
branches:  trunk
changeset: 353509:71c78d66efdb
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Sat Oct 08 12:53:54 2016 +0000

description:
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.

diffstat:

 databases/lua-sql-mysql/DESCR           |   6 ++++++
 databases/lua-sql-mysql/Makefile        |  16 ++++++++++++++++
 databases/lua-sql-mysql/Makefile.common |  28 ++++++++++++++++++++++++++++
 databases/lua-sql-mysql/PLIST           |   2 ++
 databases/lua-sql-mysql/distinfo        |   6 ++++++
 5 files changed, 58 insertions(+), 0 deletions(-)

diffs (78 lines):

diff -r e7af1d14ac89 -r 71c78d66efdb databases/lua-sql-mysql/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-sql-mysql/DESCR     Sat Oct 08 12:53:54 2016 +0000
@@ -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 -r e7af1d14ac89 -r 71c78d66efdb databases/lua-sql-mysql/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-sql-mysql/Makefile  Sat Oct 08 12:53:54 2016 +0000
@@ -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@localhost
+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 -r e7af1d14ac89 -r 71c78d66efdb databases/lua-sql-mysql/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-sql-mysql/Makefile.common   Sat Oct 08 12:53:54 2016 +0000
@@ -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 -r e7af1d14ac89 -r 71c78d66efdb databases/lua-sql-mysql/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-sql-mysql/PLIST     Sat Oct 08 12:53:54 2016 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2016/10/08 12:53:54 kamil Exp $
+${LUA_CDIR}/luasql/mysql.so
diff -r e7af1d14ac89 -r 71c78d66efdb databases/lua-sql-mysql/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-sql-mysql/distinfo  Sat Oct 08 12:53:54 2016 +0000
@@ -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



Home | Main Index | Thread Index | Old Index