Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases databases: Add lua-dbi



details:   https://anonhg.NetBSD.org/pkgsrc/rev/76517d3c7758
branches:  trunk
changeset: 435580:76517d3c7758
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Jul 09 16:12:57 2020 +0000

description:
databases: Add lua-dbi

LuaDBI is a database interface library for Lua. It is designed to provide
a RDBMS agnostic API for handling database operations. LuaDBI also provides
support for prepared statement handles, placeholders and bind parameters
for all database operations.

Currently LuaDBI supports DB2, Oracle, MySQL, PostgreSQL and SQLite databases
with native database drivers.

diffstat:

 databases/Makefile                       |   6 +++++-
 databases/lua-dbi-mysql/DESCR            |   7 +++++++
 databases/lua-dbi-mysql/Makefile         |  21 +++++++++++++++++++++
 databases/lua-dbi-mysql/PLIST            |   2 ++
 databases/lua-dbi-postgresql/DESCR       |   7 +++++++
 databases/lua-dbi-postgresql/Makefile    |  21 +++++++++++++++++++++
 databases/lua-dbi-postgresql/PLIST       |   2 ++
 databases/lua-dbi-sqlite3/DESCR          |   7 +++++++
 databases/lua-dbi-sqlite3/Makefile       |  21 +++++++++++++++++++++
 databases/lua-dbi-sqlite3/PLIST          |   2 ++
 databases/lua-dbi/DESCR                  |   7 +++++++
 databases/lua-dbi/Makefile               |  18 ++++++++++++++++++
 databases/lua-dbi/Makefile.common        |  21 +++++++++++++++++++++
 databases/lua-dbi/PLIST                  |   2 ++
 databases/lua-dbi/distinfo               |   7 +++++++
 databases/lua-dbi/patches/patch-Makefile |  25 +++++++++++++++++++++++++
 16 files changed, 175 insertions(+), 1 deletions(-)

diffs (250 lines):

diff -r 0589817faabf -r 76517d3c7758 databases/Makefile
--- a/databases/Makefile        Thu Jul 09 15:28:17 2020 +0000
+++ b/databases/Makefile        Thu Jul 09 16:12:57 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.609 2020/07/09 15:27:56 nia Exp $
+# $NetBSD: Makefile,v 1.610 2020/07/09 16:12:57 nia Exp $
 
 COMMENT=       Databases
 
@@ -87,6 +87,10 @@
 SUBDIR+=       libzdb
 SUBDIR+=       liquibase
 SUBDIR+=       lmdb
+SUBDIR+=       lua-dbi
+SUBDIR+=       lua-dbi-mysql
+SUBDIR+=       lua-dbi-postgresql
+SUBDIR+=       lua-dbi-sqlite3
 SUBDIR+=       lua-lsqlite3
 SUBDIR+=       lua-sql-mysql
 SUBDIR+=       lua-sql-postgres
diff -r 0589817faabf -r 76517d3c7758 databases/lua-dbi-mysql/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-dbi-mysql/DESCR     Thu Jul 09 16:12:57 2020 +0000
@@ -0,0 +1,7 @@
+LuaDBI is a database interface library for Lua. It is designed to provide
+a RDBMS agnostic API for handling database operations. LuaDBI also provides
+support for prepared statement handles, placeholders and bind parameters
+for all database operations.
+
+Currently LuaDBI supports DB2, Oracle, MySQL, PostgreSQL and SQLite databases
+with native database drivers.
diff -r 0589817faabf -r 76517d3c7758 databases/lua-dbi-mysql/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-dbi-mysql/Makefile  Thu Jul 09 16:12:57 2020 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2020/07/09 16:12:57 nia Exp $
+
+.include "../../databases/lua-dbi/Makefile.common"
+
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/^lua//1:S/dbi/dbi-postgresql/1}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Multi-backend SQL database library for Lua (mysql backend)
+
+DEPENDS+=      ${LUA_PKGPREFIX}-dbi-[0-9]*:../../databases/lua-dbi
+
+BUILD_TARGET=  mysql
+
+INSTALLATION_DIRS+=    ${LUA_CDIR}/dbd
+
+do-install:
+       ${INSTALL_LIB} ${WRKSRC}/dbd/mysql.so \
+               ${DESTDIR}${PREFIX}/${LUA_CDIR}/dbd
+
+.include "../../mk/mysql.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 0589817faabf -r 76517d3c7758 databases/lua-dbi-mysql/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-dbi-mysql/PLIST     Thu Jul 09 16:12:57 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/09 16:12:57 nia Exp $
+${LUA_CDIR}/dbd/mysql.so
diff -r 0589817faabf -r 76517d3c7758 databases/lua-dbi-postgresql/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-dbi-postgresql/DESCR        Thu Jul 09 16:12:57 2020 +0000
@@ -0,0 +1,7 @@
+LuaDBI is a database interface library for Lua. It is designed to provide
+a RDBMS agnostic API for handling database operations. LuaDBI also provides
+support for prepared statement handles, placeholders and bind parameters
+for all database operations.
+
+Currently LuaDBI supports DB2, Oracle, MySQL, PostgreSQL and SQLite databases
+with native database drivers.
diff -r 0589817faabf -r 76517d3c7758 databases/lua-dbi-postgresql/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-dbi-postgresql/Makefile     Thu Jul 09 16:12:57 2020 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2020/07/09 16:12:57 nia Exp $
+
+.include "../../databases/lua-dbi/Makefile.common"
+
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/^lua//1:S/dbi/dbi-postgresql/1}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Multi-backend SQL database library for Lua (postgresql backend)
+
+DEPENDS+=      ${LUA_PKGPREFIX}-dbi-[0-9]*:../../databases/lua-dbi
+
+BUILD_TARGET=  psql
+
+INSTALLATION_DIRS+=    ${LUA_CDIR}/dbd
+
+do-install:
+       ${INSTALL_LIB} ${WRKSRC}/dbd/postgresql.so \
+               ${DESTDIR}${PREFIX}/${LUA_CDIR}/dbd
+
+.include "../../mk/pgsql.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 0589817faabf -r 76517d3c7758 databases/lua-dbi-postgresql/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-dbi-postgresql/PLIST        Thu Jul 09 16:12:57 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/09 16:12:57 nia Exp $
+${LUA_CDIR}/dbd/postgresql.so
diff -r 0589817faabf -r 76517d3c7758 databases/lua-dbi-sqlite3/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-dbi-sqlite3/DESCR   Thu Jul 09 16:12:57 2020 +0000
@@ -0,0 +1,7 @@
+LuaDBI is a database interface library for Lua. It is designed to provide
+a RDBMS agnostic API for handling database operations. LuaDBI also provides
+support for prepared statement handles, placeholders and bind parameters
+for all database operations.
+
+Currently LuaDBI supports DB2, Oracle, MySQL, PostgreSQL and SQLite databases
+with native database drivers.
diff -r 0589817faabf -r 76517d3c7758 databases/lua-dbi-sqlite3/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-dbi-sqlite3/Makefile        Thu Jul 09 16:12:57 2020 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2020/07/09 16:12:57 nia Exp $
+
+.include "../../databases/lua-dbi/Makefile.common"
+
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/^lua//1:S/dbi/dbi-sqlite3/1}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Multi-backend SQL database library for Lua (sqlite3 backend)
+
+DEPENDS+=      ${LUA_PKGPREFIX}-dbi-[0-9]*:../../databases/lua-dbi
+
+BUILD_TARGET=  sqlite3
+
+INSTALLATION_DIRS+=    ${LUA_CDIR}/dbd
+
+do-install:
+       ${INSTALL_LIB} ${WRKSRC}/dbd/sqlite3.so \
+               ${DESTDIR}${PREFIX}/${LUA_CDIR}/dbd
+
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 0589817faabf -r 76517d3c7758 databases/lua-dbi-sqlite3/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-dbi-sqlite3/PLIST   Thu Jul 09 16:12:57 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/09 16:12:57 nia Exp $
+${LUA_CDIR}/dbd/sqlite3.so
diff -r 0589817faabf -r 76517d3c7758 databases/lua-dbi/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-dbi/DESCR   Thu Jul 09 16:12:57 2020 +0000
@@ -0,0 +1,7 @@
+LuaDBI is a database interface library for Lua. It is designed to provide
+a RDBMS agnostic API for handling database operations. LuaDBI also provides
+support for prepared statement handles, placeholders and bind parameters
+for all database operations.
+
+Currently LuaDBI supports DB2, Oracle, MySQL, PostgreSQL and SQLite databases
+with native database drivers.
diff -r 0589817faabf -r 76517d3c7758 databases/lua-dbi/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-dbi/Makefile        Thu Jul 09 16:12:57 2020 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2020/07/09 16:12:57 nia Exp $
+
+.include "Makefile.common"
+
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/^lua//1}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Multi-backend SQL database library for Lua
+
+NO_BUILD=      yes
+USE_LANGUAGES= # none
+
+INSTALLATION_DIRS+=    ${LUA_LDIR}
+
+do-install:
+       ${INSTALL_DATA} ${WRKSRC}/DBI.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}/DBI.lua
+
+.include "../../mk/bsd.pkg.mk"
diff -r 0589817faabf -r 76517d3c7758 databases/lua-dbi/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-dbi/Makefile.common Thu Jul 09 16:12:57 2020 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile.common,v 1.1 2020/07/09 16:12:57 nia Exp $
+# used by databases/lua-dbi/Makefile
+# used by databases/lua-dbi-mysql/Makefile
+# used by databases/lua-dbi-postgresql/Makefile
+# used by databases/lua-dbi-sqlite3/Makefile
+
+DISTNAME=      luadbi-0.7.2
+CATEGORIES=    databases lua
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=mwild1/}
+GITHUB_PROJECT=        luadbi
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+HOMEPAGE=      https://zadzmo.org/code/luadbi/
+LICENSE=       mit
+
+USE_TOOLS+=    gmake
+
+DISTINFO_FILE= ${.CURDIR}/../../databases/lua-dbi/distinfo
+PATCHDIR=      ${.CURDIR}/../../databases/lua-dbi/patches
+
+.include "../../lang/lua/module.mk"
diff -r 0589817faabf -r 76517d3c7758 databases/lua-dbi/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-dbi/PLIST   Thu Jul 09 16:12:57 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/09 16:12:57 nia Exp $
+${LUA_LDIR}/DBI.lua
diff -r 0589817faabf -r 76517d3c7758 databases/lua-dbi/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-dbi/distinfo        Thu Jul 09 16:12:57 2020 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/07/09 16:12:57 nia Exp $
+
+SHA1 (luadbi-0.7.2.tar.gz) = da56d2bcfdaed0fd3f309799dcfde74b77008476
+RMD160 (luadbi-0.7.2.tar.gz) = 310c6415c81608f6e81187f61d04ef94546833b5
+SHA512 (luadbi-0.7.2.tar.gz) = 891f99cbc8f1b5327ef820641a1608abf41410f2f28584b975cc3cf65154b9bebf6f1b9ca7d1818b9c965738ad700dd17ae042dfd2a7146cf755871ebae535b9
+Size (luadbi-0.7.2.tar.gz) = 36462 bytes
+SHA1 (patch-Makefile) = 013db4eb44d27c161ff37956fca39386f9fcb2cb
diff -r 0589817faabf -r 76517d3c7758 databases/lua-dbi/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/lua-dbi/patches/patch-Makefile  Thu Jul 09 16:12:57 2020 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-Makefile,v 1.1 2020/07/09 16:12:57 nia Exp $
+
+- Don't peek into /usr.
+- Don't pass -g/-O2 unconditionally
+
+--- Makefile.orig      2019-01-14 09:39:17.000000000 +0000
++++ Makefile
+@@ -6,15 +6,8 @@ MKDIR         ?= mkdir -p
+ INSTALL               ?= install
+ INSTALL_PROGRAM       ?= $(INSTALL)
+ INSTALL_DATA  ?= $(INSTALL) -m 644
+-LUA_V         ?= 5.1
+-LUA_LDIR      ?= /usr/share/lua/$(LUA_V)
+-LUA_CDIR      ?= /usr/lib/lua/$(LUA_V)
+-
+-COMMON_CFLAGS  ?= -g -pedantic -Wall -O2 -shared -fPIC -DPIC -std=c99
+-LUA_INC               ?= -I/usr/include/lua$(LUA_V)
+-MYSQL_INC     ?= -I/usr/include/mysql
+-PSQL_INC      ?= -I/usr/include/postgresql
+-SQLITE3_INC   ?= -I/usr/include
++
++COMMON_CFLAGS  ?= -pedantic -Wall -shared -fPIC -DPIC -std=c99
+ DB2_INC               ?= -I/opt/ibm/db2exc/V9.5/include
+ ORACLE_INC    ?= -I/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public
+ CF             = $(LUA_INC) $(COMMON_CFLAGS) $(CFLAGS) -I.



Home | Main Index | Thread Index | Old Index