pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Import lua52-sql-postgres-2.3.2 as wip/lua-sql-mysql.
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Fri Oct 7 17:50:31 2016 +0200
Changeset: 43ef86c75171790d08f186e7db0f3efd9b45390d
Added Files:
lua-sql-mysql/DESCR
lua-sql-mysql/MESSAGE
lua-sql-mysql/Makefile
lua-sql-mysql/PLIST
lua-sql-mysql/distinfo
Log Message:
Import lua52-sql-postgres-2.3.2 as wip/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;
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=43ef86c75171790d08f186e7db0f3efd9b45390d
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
lua-sql-mysql/DESCR | 4 ++++
lua-sql-mysql/MESSAGE | 13 +++++++++++++
lua-sql-mysql/Makefile | 27 +++++++++++++++++++++++++++
lua-sql-mysql/PLIST | 2 ++
lua-sql-mysql/distinfo | 6 ++++++
5 files changed, 52 insertions(+)
diffs:
diff --git a/lua-sql-mysql/DESCR b/lua-sql-mysql/DESCR
new file mode 100644
index 0000000..eaf3096
--- /dev/null
+++ b/lua-sql-mysql/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-mysql/MESSAGE b/lua-sql-mysql/MESSAGE
new file mode 100644
index 0000000..abb9e7b
--- /dev/null
+++ b/lua-sql-mysql/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-mysql/Makefile b/lua-sql-mysql/Makefile
new file mode 100644
index 0000000..343fa79
--- /dev/null
+++ b/lua-sql-mysql/Makefile
@@ -0,0 +1,27 @@
+# $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-postgres/}
+CATEGORIES= databases lua
+MASTER_SITES= ${MASTER_SITE_GITHUB:=keplerproject/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+#https://github.com/keplerproject/luasql/archive/v2.3.2.zip
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://www.keplerproject.org/luasql/
+COMMENT= PostgreSQL bindings for Lua
+
+USE_TOOLS= gmake
+BUILD_TARGET= postgres
+
+INSTALLATION_DIRS= lib
+MAKE_FLAGS+= DRIVER_LIBS_postgres="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.${PGSQL_TYPE}}/lib -L${BUILDLINK_PREFIX.${PGSQL_TYPE}}/lib"
+MAKE_FLAGS+= DRIVER_INCS_postgres=-I${BUILDLINK_PREFIX.${PGSQL_TYPE}}/include
+INSTALL_MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX}
+INSTALL_MAKE_FLAGS+= LUA_LIBDIR=${DESTDIR}${PREFIX}/${LUA_CDIR}
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/pgsql.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lua-sql-mysql/PLIST b/lua-sql-mysql/PLIST
new file mode 100644
index 0000000..f490954
--- /dev/null
+++ b/lua-sql-mysql/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+lib/lua/5.2/luasql/postgres.so
diff --git a/lua-sql-mysql/distinfo b/lua-sql-mysql/distinfo
new file mode 100644
index 0000000..82658fb
--- /dev/null
+++ b/lua-sql-mysql/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