summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2018-04-15 01:05:48 +0000
committerminskim <minskim@pkgsrc.org>2018-04-15 01:05:48 +0000
commit3fa1ea58e22e9229dfeb90c5a5beb1d92b0c7144 (patch)
treec62b81d502e75fca5281631bc7c145f4fd5f4d5f /databases
parentf55b325febdd2a83930549483ddc6f7cc8ec3cb1 (diff)
downloadpkgsrc-3fa1ea58e22e9229dfeb90c5a5beb1d92b0c7144.tar.gz
databases/SQLiteCpp: Import version 2.2.0
SQLiteC++ offers an encapsulation arround the native C APIs of SQLite, with a few intuitive and well documented C++ class. It is designed using the Resource Acquisition Is Initialization (RAII) idom, and throwing exceptions in case of SQLite errors (exept in destructors, where assert() are used instead). Each SQLiteC++ object must be constructed with a valid SQLite database connection, and then is always valid until destroyed.
Diffstat (limited to 'databases')
-rw-r--r--databases/SQLiteCpp/DESCR7
-rw-r--r--databases/SQLiteCpp/Makefile24
-rw-r--r--databases/SQLiteCpp/PLIST17
-rw-r--r--databases/SQLiteCpp/buildlink3.mk15
-rw-r--r--databases/SQLiteCpp/distinfo6
5 files changed, 69 insertions, 0 deletions
diff --git a/databases/SQLiteCpp/DESCR b/databases/SQLiteCpp/DESCR
new file mode 100644
index 00000000000..4f35658a5f4
--- /dev/null
+++ b/databases/SQLiteCpp/DESCR
@@ -0,0 +1,7 @@
+SQLiteC++ offers an encapsulation arround the native C APIs of SQLite,
+with a few intuitive and well documented C++ class. It is designed
+using the Resource Acquisition Is Initialization (RAII) idom, and
+throwing exceptions in case of SQLite errors (exept in destructors,
+where assert() are used instead). Each SQLiteC++ object must be
+constructed with a valid SQLite database connection, and then is
+always valid until destroyed.
diff --git a/databases/SQLiteCpp/Makefile b/databases/SQLiteCpp/Makefile
new file mode 100644
index 00000000000..9b046edecf5
--- /dev/null
+++ b/databases/SQLiteCpp/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2018/04/15 01:05:48 minskim Exp $
+
+DISTNAME= SQLiteCpp-2.2.0
+CATEGORIES= databases
+MASTER_SITES= ${MASTER_SITE_GITHUB:=SRombauts/}
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= http://srombauts.github.io/SQLiteCpp/
+COMMENT= C++ SQLite3 wrapper
+LICENSE= mit
+
+USE_CMAKE= yes
+USE_LANGUAGES= c c++
+
+INSTALLATION_DIRS+= share/doc/${PKGBASE}
+
+.include "../../databases/sqlite3/buildlink3.mk"
+
+post-install:
+.for f in CHANGELOG.txt LICENSE.txt README.md TODO.txt
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+.endfor
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/SQLiteCpp/PLIST b/databases/SQLiteCpp/PLIST
new file mode 100644
index 00000000000..40abecf0cbe
--- /dev/null
+++ b/databases/SQLiteCpp/PLIST
@@ -0,0 +1,17 @@
+@comment $NetBSD: PLIST,v 1.1 2018/04/15 01:05:48 minskim Exp $
+include/SQLiteCpp/Assertion.h
+include/SQLiteCpp/Backup.h
+include/SQLiteCpp/Column.h
+include/SQLiteCpp/Database.h
+include/SQLiteCpp/Exception.h
+include/SQLiteCpp/SQLiteCpp.h
+include/SQLiteCpp/Statement.h
+include/SQLiteCpp/Transaction.h
+include/SQLiteCpp/VariadicBind.h
+lib/cmake/SQLiteCpp/SQLiteCppConfig-noconfig.cmake
+lib/cmake/SQLiteCpp/SQLiteCppConfig.cmake
+lib/libSQLiteCpp.a
+share/doc/SQLiteCpp/CHANGELOG.txt
+share/doc/SQLiteCpp/LICENSE.txt
+share/doc/SQLiteCpp/README.md
+share/doc/SQLiteCpp/TODO.txt
diff --git a/databases/SQLiteCpp/buildlink3.mk b/databases/SQLiteCpp/buildlink3.mk
new file mode 100644
index 00000000000..3f4efa2aae9
--- /dev/null
+++ b/databases/SQLiteCpp/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/04/15 01:05:48 minskim Exp $
+
+BUILDLINK_TREE+= SQLiteCpp
+
+.if !defined(SQLITECPP_BUILDLINK3_MK)
+SQLITECPP_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.SQLiteCpp+= SQLiteCpp>=2.2.0
+BUILDLINK_DEPMETHOD.SQLiteCpp?= build
+BUILDLINK_PKGSRCDIR.SQLiteCpp?= ../../databases/SQLiteCpp
+
+.include "../../databases/sqlite3/buildlink3.mk"
+.endif # SQLITECPP_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -SQLiteCpp
diff --git a/databases/SQLiteCpp/distinfo b/databases/SQLiteCpp/distinfo
new file mode 100644
index 00000000000..9977489e151
--- /dev/null
+++ b/databases/SQLiteCpp/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2018/04/15 01:05:48 minskim Exp $
+
+SHA1 (SQLiteCpp-2.2.0.tar.gz) = 6501619f2a6322d6a2f1948d20d5986a49b050c2
+RMD160 (SQLiteCpp-2.2.0.tar.gz) = 19f2761d842c60b9b6dd11c45ac2c0b521a5bae3
+SHA512 (SQLiteCpp-2.2.0.tar.gz) = 769857c50cc24596cbd7c6f057ca1e158a3bfecf00d7865d6ef0b90a2ff8ecb9ccb9e1d0e660bb9df8ecd50075a94a9bc9e3a71b96f2ef1c30780c6da9446cf0
+Size (SQLiteCpp-2.2.0.tar.gz) = 2141656 bytes