summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamil <kamil@pkgsrc.org>2016-10-08 12:58:22 +0000
committerkamil <kamil@pkgsrc.org>2016-10-08 12:58:22 +0000
commite7540beffdcebfccd232dcaf8d070f69ca435435 (patch)
treedf02e5f97f80b03c20a857278810be921f62f9c5
parent18ed75e30c95b79a3f09ae1ae9857030d63e0d34 (diff)
downloadpkgsrc-e7540beffdcebfccd232dcaf8d070f69ca435435.tar.gz
Import SQLite 3.x luasql 2.3.2 as databases/lua-sql-sqlite3
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 SQLite 3.x.
-rw-r--r--databases/lua-sql-sqlite3/DESCR6
-rw-r--r--databases/lua-sql-sqlite3/Makefile16
-rw-r--r--databases/lua-sql-sqlite3/PLIST2
3 files changed, 24 insertions, 0 deletions
diff --git a/databases/lua-sql-sqlite3/DESCR b/databases/lua-sql-sqlite3/DESCR
new file mode 100644
index 00000000000..ec8c155a664
--- /dev/null
+++ b/databases/lua-sql-sqlite3/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 SQLite3.
diff --git a/databases/lua-sql-sqlite3/Makefile b/databases/lua-sql-sqlite3/Makefile
new file mode 100644
index 00000000000..b640d9a3279
--- /dev/null
+++ b/databases/lua-sql-sqlite3/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2016/10/08 12:58:22 kamil Exp $
+
+.include "../../databases/lua-sql-mysql/Makefile.common"
+
+PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/luasql/sql-sqlite3/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+COMMENT= SQLite 3.x bindings for Lua
+
+BUILD_TARGET= sqlite3
+
+MAKE_FLAGS+= DRIVER_LIBS_sqlite="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.sqlite3}/lib -L${BUILDLINK_PREFIX.sqlite3}/lib -lsqlite3"
+MAKE_FLAGS+= DRIVER_INCS_sqlite=-I${BUILDLINK_PREFIX.sqlite3}/includel
+
+.include "../../databases/sqlite/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/lua-sql-sqlite3/PLIST b/databases/lua-sql-sqlite3/PLIST
new file mode 100644
index 00000000000..8ee3281e2aa
--- /dev/null
+++ b/databases/lua-sql-sqlite3/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2016/10/08 12:58:22 kamil Exp $
+${LUA_CDIR}/luasql/sqlite3.so