pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/databases
Module Name: pkgsrc
Committed By: nia
Date: Thu Jul 9 15:27:56 UTC 2020
Modified Files:
pkgsrc/databases: Makefile
Added Files:
pkgsrc/databases/lua-lsqlite3: DESCR Makefile PLIST distinfo
pkgsrc/databases/lua-lsqlite3/files: Makefile
Log Message:
databases: Add lua-lsqlite3
lsqlite3 is a thin wrapper around the public domain SQLite3 database engine.
The lsqlite3 module supports the creation and manipulation of SQLite3
databases.
After a require('lsqlite3') the exported functions are called with prefix
sqlite3. However, most sqlite3 functions are called via an object-oriented
interface to either database or SQL statement objects.
To generate a diff of this commit:
cvs rdiff -u -r1.608 -r1.609 pkgsrc/databases/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/databases/lua-lsqlite3/DESCR \
pkgsrc/databases/lua-lsqlite3/Makefile \
pkgsrc/databases/lua-lsqlite3/PLIST \
pkgsrc/databases/lua-lsqlite3/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/databases/lua-lsqlite3/files/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/databases/Makefile
diff -u pkgsrc/databases/Makefile:1.608 pkgsrc/databases/Makefile:1.609
--- pkgsrc/databases/Makefile:1.608 Wed Jul 1 11:26:42 2020
+++ pkgsrc/databases/Makefile Thu Jul 9 15:27:56 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.608 2020/07/01 11:26:42 nia Exp $
+# $NetBSD: Makefile,v 1.609 2020/07/09 15:27:56 nia Exp $
COMMENT= Databases
@@ -87,6 +87,7 @@ SUBDIR+= libtcd
SUBDIR+= libzdb
SUBDIR+= liquibase
SUBDIR+= lmdb
+SUBDIR+= lua-lsqlite3
SUBDIR+= lua-sql-mysql
SUBDIR+= lua-sql-postgres
SUBDIR+= lua-sql-sqlite3
Added files:
Index: pkgsrc/databases/lua-lsqlite3/DESCR
diff -u /dev/null pkgsrc/databases/lua-lsqlite3/DESCR:1.1
--- /dev/null Thu Jul 9 15:27:56 2020
+++ pkgsrc/databases/lua-lsqlite3/DESCR Thu Jul 9 15:27:56 2020
@@ -0,0 +1,8 @@
+lsqlite3 is a thin wrapper around the public domain SQLite3 database engine.
+
+The lsqlite3 module supports the creation and manipulation of SQLite3
+databases.
+
+After a require('lsqlite3') the exported functions are called with prefix
+sqlite3. However, most sqlite3 functions are called via an object-oriented
+interface to either database or SQL statement objects.
Index: pkgsrc/databases/lua-lsqlite3/Makefile
diff -u /dev/null pkgsrc/databases/lua-lsqlite3/Makefile:1.1
--- /dev/null Thu Jul 9 15:27:56 2020
+++ pkgsrc/databases/lua-lsqlite3/Makefile Thu Jul 9 15:27:56 2020
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1 2020/07/09 15:27:56 nia Exp $
+
+DISTNAME= lsqlite3_fsl09y
+PKGNAME= ${LUA_PKGPREFIX}-lsqlite3-0.9.5
+CATEGORIES= databases lua
+MASTER_SITES= http://lua.sqlite.org/index.cgi/zip/
+EXTRACT_SUFX= .zip
+
+MAINTAINER= nia%NetBSD.org@localhost
+HOMEPAGE= http://lua.sqlite.org/index.cgi/index
+COMMENT= Binding for Lua to the SQLite3 database library
+LICENSE= mit
+
+INSTALLATION_DIRS+= ${LUA_CDIR} ${LUA_LDIR}
+INSTALLATION_DIRS+= ${LUA_DOCDIR}/examples
+
+pre-build:
+ # Don't use the internal copy of sqlite3
+ ${RM} -f ${WRKSRC}/sqlite3.h
+ # Copy our makefile into place.
+ ${CP} -f ${FILESDIR}/Makefile ${WRKSRC}/Makefile
+
+pre-install:
+ # For compatibility with the statically linked variant.
+ ${PRINTF} '%s\n' 'return require("lsqlite3")' > ${WRKSRC}/lsqlite3complete.lua
+
+do-install:
+ ${INSTALL_LIB} ${WRKSRC}/lsqlite3.so \
+ ${DESTDIR}${PREFIX}/${LUA_CDIR}/lsqlite3.so
+ ${INSTALL_LIB} ${WRKSRC}/lsqlite3complete.lua \
+ ${DESTDIR}${PREFIX}/${LUA_LDIR}/lsqlite3complete.lua
+ ${INSTALL_DATA} ${WRKSRC}/examples/*.lua \
+ ${DESTDIR}${PREFIX}/${LUA_DOCDIR}/examples
+
+do-test:
+ cd ${WRKSRC}/test && LUA_CPATH=${WRKSRC}/?.so ${LUA_INTERPRETER} test.lua
+
+.include "../../lang/lua/module.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/databases/lua-lsqlite3/PLIST
diff -u /dev/null pkgsrc/databases/lua-lsqlite3/PLIST:1.1
--- /dev/null Thu Jul 9 15:27:56 2020
+++ pkgsrc/databases/lua-lsqlite3/PLIST Thu Jul 9 15:27:56 2020
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/09 15:27:56 nia Exp $
+${LUA_CDIR}/lsqlite3.so
+${LUA_DOCDIR}/examples/aggregate.lua
+${LUA_DOCDIR}/examples/function.lua
+${LUA_DOCDIR}/examples/hooks_advanced.lua
+${LUA_DOCDIR}/examples/order.lua
+${LUA_DOCDIR}/examples/simple.lua
+${LUA_DOCDIR}/examples/smart.lua
+${LUA_DOCDIR}/examples/statement.lua
+${LUA_DOCDIR}/examples/tracing.lua
+${LUA_DOCDIR}/examples/update_hook.lua
+${LUA_LDIR}/lsqlite3complete.lua
Index: pkgsrc/databases/lua-lsqlite3/distinfo
diff -u /dev/null pkgsrc/databases/lua-lsqlite3/distinfo:1.1
--- /dev/null Thu Jul 9 15:27:56 2020
+++ pkgsrc/databases/lua-lsqlite3/distinfo Thu Jul 9 15:27:56 2020
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/07/09 15:27:56 nia Exp $
+
+SHA1 (lsqlite3_fsl09y.zip) = a87a288417b5ef9d7a951d9552b6685319c7f57f
+RMD160 (lsqlite3_fsl09y.zip) = 25ef4c8d249ce0d416e0e5ca123dae6f18f0052c
+SHA512 (lsqlite3_fsl09y.zip) = c978e31d3062c4f99662b6971156c61e9a08a9ab3e18122cf94d2beb63f2ab1921e936ad81f5d33aabbc25b589318656cb4903841b69752e54275254c408de88
+Size (lsqlite3_fsl09y.zip) = 2123295 bytes
Index: pkgsrc/databases/lua-lsqlite3/files/Makefile
diff -u /dev/null pkgsrc/databases/lua-lsqlite3/files/Makefile:1.1
--- /dev/null Thu Jul 9 15:27:56 2020
+++ pkgsrc/databases/lua-lsqlite3/files/Makefile Thu Jul 9 15:27:56 2020
@@ -0,0 +1,12 @@
+# $NetBSD: Makefile,v 1.1 2020/07/09 15:27:56 nia Exp $
+
+CFLAGS+= -fPIC -Wall
+LDFLAGS+= -shared
+
+all: lsqlite3.so
+
+.c.o:
+ $(CC) $(CFLAGS) -c $<
+
+lsqlite3.so: lsqlite3.o
+ $(CC) $(LDFLAGS) -lsqlite3 -o $@ lsqlite3.o
Home |
Main Index |
Thread Index |
Old Index