Import PostgreSQL luasql 2.3.2 as databases/lua-sql-postgres

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 PostgreSQL.
This commit is contained in:
kamil 2016-10-08 12:55:54 +00:00
parent 117e0d6759
commit 5c9a4c53d9
3 changed files with 24 additions and 0 deletions

View file

@ -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 PostgreSQL.

View file

@ -0,0 +1,16 @@
# $NetBSD: Makefile,v 1.1 2016/10/08 12:55:54 kamil Exp $
.include "../../databases/lua-sql-mysql/Makefile.common"
PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/luasql/sql-postgres/}
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= PostgreSQL bindings for Lua
BUILD_TARGET= postgres
MAKE_FLAGS+= DRIVER_LIBS_postgres="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.${PGSQL_TYPE}}/lib -L${BUILDLINK_PREFIX.${PGSQL_TYPE}}/lib -lpq"
MAKE_FLAGS+= DRIVER_INCS_postgres=-I${BUILDLINK_PREFIX.${PGSQL_TYPE}}/include
.include "../../mk/pgsql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.1 2016/10/08 12:55:54 kamil Exp $
${LUA_CDIR}/luasql/postgres.so