pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Import lua52-sql-mysql-2.3.2 as wip/lua-sql-sqlite.
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Sat Oct 8 13:51:43 2016 +0200
Changeset: 7d6537daf432de2c0a1324319f0b10ef3081b713
Added Files:
lua-sql-sqlite/DESCR
lua-sql-sqlite/MESSAGE
lua-sql-sqlite/Makefile
lua-sql-sqlite/PLIST
lua-sql-sqlite/distinfo
Log Message:
Import lua52-sql-mysql-2.3.2 as wip/lua-sql-sqlite.
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;
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7d6537daf432de2c0a1324319f0b10ef3081b713
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
lua-sql-sqlite/DESCR | 4 ++++
lua-sql-sqlite/MESSAGE | 13 +++++++++++++
lua-sql-sqlite/Makefile | 25 +++++++++++++++++++++++++
lua-sql-sqlite/PLIST | 2 ++
lua-sql-sqlite/distinfo | 6 ++++++
5 files changed, 50 insertions(+)
diffs:
diff --git a/lua-sql-sqlite/DESCR b/lua-sql-sqlite/DESCR
new file mode 100644
index 0000000..eaf3096
--- /dev/null
+++ b/lua-sql-sqlite/DESCR
@@ -0,0 +1,4 @@
+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;
diff --git a/lua-sql-sqlite/MESSAGE b/lua-sql-sqlite/MESSAGE
new file mode 100644
index 0000000..abb9e7b
--- /dev/null
+++ b/lua-sql-sqlite/MESSAGE
@@ -0,0 +1,13 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2004/02/26 15:03:07 poppnk Exp $
+
+To use lua-pgsql in your lua programs you must set this environ variable:
+
+ LUA_INIT = "loadlib('/usr/pkg/lib/libluasqlpostgres.so',
+ 'luasql_libopen_postgres')();"
+
+ You will probably will problems loading the library, then environ that:
+
+ LD_LIBRARY_PATH=${PREFIX}/lib
+
+===========================================================================
diff --git a/lua-sql-sqlite/Makefile b/lua-sql-sqlite/Makefile
new file mode 100644
index 0000000..8eab486
--- /dev/null
+++ b/lua-sql-sqlite/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.9 2012/11/25 23:32:27 othyro Exp $
+
+GITHUB_PROJECT= luasql
+DISTNAME= luasql-2.3.2
+PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/luasql/sql-mysql/}
+CATEGORIES= databases lua
+MASTER_SITES= ${MASTER_SITE_GITHUB:=keplerproject/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://www.keplerproject.org/luasql/
+COMMENT= MySQL bindings for Lua
+
+USE_TOOLS= gmake
+BUILD_TARGET= mysql
+
+INSTALLATION_DIRS= lib
+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
+INSTALL_MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX}
+INSTALL_MAKE_FLAGS+= LUA_LIBDIR=${DESTDIR}${PREFIX}/${LUA_CDIR}
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/mysql.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lua-sql-sqlite/PLIST b/lua-sql-sqlite/PLIST
new file mode 100644
index 0000000..f20b12c
--- /dev/null
+++ b/lua-sql-sqlite/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+${LUA_CDIR}/luasql/mysql.so
diff --git a/lua-sql-sqlite/distinfo b/lua-sql-sqlite/distinfo
new file mode 100644
index 0000000..82658fb
--- /dev/null
+++ b/lua-sql-sqlite/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/02/26 15:03:07 poppnk 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