git: 7d3a3b7c0bdb - main - databases/nanodbc: New port: Small C++ wrapper for the native C ODBC API

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 14 Jan 2023 01:42:24 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7d3a3b7c0bdb2173a86cace56a6ea081461db094

commit 7d3a3b7c0bdb2173a86cace56a6ea081461db094
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-01-14 01:07:09 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-01-14 01:42:19 +0000

    databases/nanodbc: New port: Small C++ wrapper for the native C ODBC API
---
 databases/Makefile          |  1 +
 databases/nanodbc/Makefile  | 24 ++++++++++++++++++++++++
 databases/nanodbc/distinfo  |  3 +++
 databases/nanodbc/pkg-descr |  1 +
 databases/nanodbc/pkg-plist |  5 +++++
 5 files changed, 34 insertions(+)

diff --git a/databases/Makefile b/databases/Makefile
index d492464e1e69..c2453616c329 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -227,6 +227,7 @@
     SUBDIR += nagios-check_postgres_replication
     SUBDIR += nagios-check_redis
     SUBDIR += namazu2
+    SUBDIR += nanodbc
     SUBDIR += neo4j
     SUBDIR += ocaml-dbm
     SUBDIR += ocaml-mysql
diff --git a/databases/nanodbc/Makefile b/databases/nanodbc/Makefile
new file mode 100644
index 000000000000..f96dd7b9c537
--- /dev/null
+++ b/databases/nanodbc/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	nanodbc
+DISTVERSIONPREFIX=	v
+DISTVERSION=	2.14.0
+CATEGORIES=	databases devel
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Small C++ wrapper for the native C ODBC API
+WWW=		https://nanodbc.github.io/nanodbc/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libodbc.so:databases/unixODBC
+
+USES=		cmake:testing compiler:c++14-lang localbase:ldflags # pkgconfig python:build
+USE_LDCONFIG=	yes
+
+USE_GITHUB=	yes
+
+CMAKE_ON=	BUILD_SHARED_LIBS \
+		NANODBC_DISABLE_TESTS NANODBC_DISABLE_EXAMPLES
+CMAKE_TESTING_ARGS=	-DNANODBC_DISABLE_TESTS=OFF # many tests fail: Data source name not found and no default
+
+.include <bsd.port.mk>
diff --git a/databases/nanodbc/distinfo b/databases/nanodbc/distinfo
new file mode 100644
index 000000000000..7ffc1a42114c
--- /dev/null
+++ b/databases/nanodbc/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1673647747
+SHA256 (nanodbc-nanodbc-v2.14.0_GH0.tar.gz) = 56228372042b689beccd96b0ac3476643ea85b3f57b3f23fb11ca4314e68b9a5
+SIZE (nanodbc-nanodbc-v2.14.0_GH0.tar.gz) = 707731
diff --git a/databases/nanodbc/pkg-descr b/databases/nanodbc/pkg-descr
new file mode 100644
index 000000000000..263198cfcd6f
--- /dev/null
+++ b/databases/nanodbc/pkg-descr
@@ -0,0 +1 @@
+nanodbc is a small library that makes ODBC API programming easy and fun again.
diff --git a/databases/nanodbc/pkg-plist b/databases/nanodbc/pkg-plist
new file mode 100644
index 000000000000..89ab018431f1
--- /dev/null
+++ b/databases/nanodbc/pkg-plist
@@ -0,0 +1,5 @@
+include/nanodbc/nanodbc.h
+lib/cmake/nanodbc/nanodbc-config-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/nanodbc/nanodbc-config.cmake
+lib/libnanodbc.so
+lib/libnanodbc.so.2.14.0