From nobody Mon Oct 03 02:24:22 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mgl5f6x8bz4f91c; Mon, 3 Oct 2022 02:24:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mgl5f6N7fz44Rh; Mon, 3 Oct 2022 02:24:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664763862; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sQoWmFDud001amBC9+kQCvizk8m5cvhv0eXbmoMdAb4=; b=tjYqh6e4cM6X0YpHqyNgs2QW2xXPbsKxfIv8fNqU66dx4IFt7jd686hO0NrVdX+OHMi+i7 22kElcN2mMhr3G+WmSsHijIGF0skk7H+lGq8l+48jnaoMlDXY7gBcMPpzmy4auizFwOkQA Hxrx1jSSy3D6PfXf+ho1g4/NJvqoAxl7cf9mkFkExoWmRfwrFsmzTTXXRrYIxboB6/5zMz eKYKWKIFoTzluO8+kA7c5+3UGBaVSHPybskOxLnE01bFJTHySuP1aAuIjDWJiDiXjYYt9s UPo41uxqdzl3Ow6HFhS1s5c+J9Y+7GysuvIb2JBPPhcG4cLuc9uuB6hYxlET/w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Mgl5f5Q24z13dj; Mon, 3 Oct 2022 02:24:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2932OM1c096526; Mon, 3 Oct 2022 02:24:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2932OMhs096525; Mon, 3 Oct 2022 02:24:22 GMT (envelope-from git) Date: Mon, 3 Oct 2022 02:24:22 GMT Message-Id: <202210030224.2932OMhs096525@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: b64244312f5d - main - databases/odbc-cpp-wrapper: Add odbc-cpp-wrapper 1.1 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b64244312f5d906f3a32dab2b1c2917feccbf280 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664763862; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sQoWmFDud001amBC9+kQCvizk8m5cvhv0eXbmoMdAb4=; b=k1NGrMbVNocclVVXsu2nxO0FrCra5g/+KN7s4ZqQVP+bR2Lms8cc6Inj5BKAF+nC2l5mDZ LVQe7ySYhGrZIkugSRLMGfG5zj+40HliI5g1ypHdVXjZBvo3joGxEIN4GCNkHW1qMaCJXp rxOjH+Nbvb9BDsRuPHa8cuzkyMyBmWPM0WNgCxgWv0kPRVnEobvQINV1R3pomZuZafQaG6 D2sysKE9IO2hdDQLbxOHCvlKmExjuXRCQbU9c/IfI+6euvDvpqT65nHzv2TYdQfO2eL84m OX5i7HvYPRNCuuQaWBcdBsNBp6dHbzuHVXD3x1JDbL0UavB8W3Pl6TwXFZp3dA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664763862; a=rsa-sha256; cv=none; b=RJ6bxvOdcTSuE79iZm01ATy2u22pgvsEg7+SyKcB13E7yV+2PoCmpz62BitRiduMM2gVO+ 750f3hHemaUaPBL11ZAXNX3oFj7OsytnSh/d3NmoO4Mb9T3tmFt8krdm3xDQmxKoQh5Dwm nwmWdN+Ktd0LVvKj+uJhuQu/RmtT2igPHpwC3qyWvOivOqfT3d8B2Qn9PmD0TQBaGjvZq7 fH16aZl8rP3l7ZBKv9/SFauccX6VB6BNxlDIPyOtT24Mr2xKXOuLtIUkxphHP1mz6eqc7l D32nMaeqcZ2rD6UgbO0sc14ZwDdeW5jjz6tOxGbNgyquNcV7mkAuZc0+gQkkYg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=b64244312f5d906f3a32dab2b1c2917feccbf280 commit b64244312f5d906f3a32dab2b1c2917feccbf280 Author: Po-Chuan Hsieh AuthorDate: 2022-10-03 02:10:12 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-10-03 02:10:12 +0000 databases/odbc-cpp-wrapper: Add odbc-cpp-wrapper 1.1 odbc-cpp-wrapper is an object-oriented C++-wrapper of the ODBC API. It takes care of - managing the lifetime of ODBC resources, - allocating and managing resources needed for ODBC operations and - converting ODBC errors to exceptions and throwing them. The odbc-cpp-wrapper API attempts to make usage of ODBC as simple as possible. The API was designed to make wrong usage almost impossible and to ensure proper object lifetime management. odbc-cpp-wrapper was originally developed for exchanging spatial data with databases. It focuses on batch operations of variable-sized data, which is not very well supported by other ODBC wrappers. --- databases/Makefile | 1 + databases/odbc-cpp-wrapper/Makefile | 20 ++++++++++++++++++++ databases/odbc-cpp-wrapper/distinfo | 3 +++ .../odbc-cpp-wrapper/files/patch-CMakeLists.txt | 20 ++++++++++++++++++++ .../files/patch-src-odbc-CMakeLists.txt | 10 ++++++++++ databases/odbc-cpp-wrapper/pkg-descr | 13 +++++++++++++ databases/odbc-cpp-wrapper/pkg-plist | 22 ++++++++++++++++++++++ 7 files changed, 89 insertions(+) diff --git a/databases/Makefile b/databases/Makefile index 57c8e618cd87..1d1a0f4ef5d9 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -228,6 +228,7 @@ SUBDIR += ocaml-dbm SUBDIR += ocaml-mysql SUBDIR += ocaml-sqlite3 + SUBDIR += odbc-cpp-wrapper SUBDIR += ods2sql SUBDIR += opendbviewer SUBDIR += opendbx diff --git a/databases/odbc-cpp-wrapper/Makefile b/databases/odbc-cpp-wrapper/Makefile new file mode 100644 index 000000000000..93dfca02f7b8 --- /dev/null +++ b/databases/odbc-cpp-wrapper/Makefile @@ -0,0 +1,20 @@ +PORTNAME= odbc-cpp-wrapper +PORTVERSION= 1.1 +DISTVERSIONPREFIX= v +CATEGORIES= databases + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Object-oriented C++-wrapper of the ODBC API +WWW= https://github.com/SAP/odbc-cpp-wrapper + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libodbc.so:databases/unixODBC + +USES= cmake compiler:c++11-lang localbase + +USE_GITHUB= yes +GH_ACCOUNT= SAP + +.include diff --git a/databases/odbc-cpp-wrapper/distinfo b/databases/odbc-cpp-wrapper/distinfo new file mode 100644 index 000000000000..35781d125c79 --- /dev/null +++ b/databases/odbc-cpp-wrapper/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1663672720 +SHA256 (SAP-odbc-cpp-wrapper-v1.1_GH0.tar.gz) = 27b45ff65e2f2963bb642c91864892570a6a3867932a53db3b59d4179a650904 +SIZE (SAP-odbc-cpp-wrapper-v1.1_GH0.tar.gz) = 60600 diff --git a/databases/odbc-cpp-wrapper/files/patch-CMakeLists.txt b/databases/odbc-cpp-wrapper/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..699579b03eb3 --- /dev/null +++ b/databases/odbc-cpp-wrapper/files/patch-CMakeLists.txt @@ -0,0 +1,20 @@ +--- CMakeLists.txt.orig 2022-09-13 10:33:43 UTC ++++ CMakeLists.txt +@@ -5,17 +5,9 @@ SET(CMAKE_CXX_STANDARD 11) + PROJECT(odbccpp) + + FIND_PACKAGE(ODBC REQUIRED) +-FIND_PACKAGE(Doxygen) +-FIND_PACKAGE(GTest) + + FILE(STRINGS cfg/VERSION version) + + ENABLE_TESTING() + + ADD_SUBDIRECTORY(src) +-IF (GTEST_FOUND) +- ADD_SUBDIRECTORY(test) +-ENDIF() +-IF (DOXYGEN_FOUND) +- ADD_SUBDIRECTORY(doc) +-ENDIF() diff --git a/databases/odbc-cpp-wrapper/files/patch-src-odbc-CMakeLists.txt b/databases/odbc-cpp-wrapper/files/patch-src-odbc-CMakeLists.txt new file mode 100644 index 000000000000..a9fa081c1b2d --- /dev/null +++ b/databases/odbc-cpp-wrapper/files/patch-src-odbc-CMakeLists.txt @@ -0,0 +1,10 @@ +--- src/odbc/CMakeLists.txt.orig 2022-08-05 08:39:29 UTC ++++ src/odbc/CMakeLists.txt +@@ -57,6 +57,7 @@ TARGET_COMPILE_DEFINITIONS(odbccpp_static + ODBC_STATIC + ) + SET_PROPERTY(TARGET odbccpp_static PROPERTY POSITION_INDEPENDENT_CODE ON) ++SET_TARGET_PROPERTIES(odbccpp_static PROPERTIES OUTPUT_NAME "odbccpp") + + # Shared library + ADD_LIBRARY(odbccpp diff --git a/databases/odbc-cpp-wrapper/pkg-descr b/databases/odbc-cpp-wrapper/pkg-descr new file mode 100644 index 000000000000..2b09872d7025 --- /dev/null +++ b/databases/odbc-cpp-wrapper/pkg-descr @@ -0,0 +1,13 @@ +odbc-cpp-wrapper is an object-oriented C++-wrapper of the ODBC API. It takes +care of +- managing the lifetime of ODBC resources, +- allocating and managing resources needed for ODBC operations and +- converting ODBC errors to exceptions and throwing them. + +The odbc-cpp-wrapper API attempts to make usage of ODBC as simple as possible. +The API was designed to make wrong usage almost impossible and to ensure proper +object lifetime management. + +odbc-cpp-wrapper was originally developed for exchanging spatial data with +databases. It focuses on batch operations of variable-sized data, which is not +very well supported by other ODBC wrappers. diff --git a/databases/odbc-cpp-wrapper/pkg-plist b/databases/odbc-cpp-wrapper/pkg-plist new file mode 100644 index 000000000000..188f59f948f9 --- /dev/null +++ b/databases/odbc-cpp-wrapper/pkg-plist @@ -0,0 +1,22 @@ +include/odbc/Config.h +include/odbc/Connection.h +include/odbc/DatabaseMetaData.h +include/odbc/DatabaseMetaDataBase.h +include/odbc/DatabaseMetaDataUnicode.h +include/odbc/Environment.h +include/odbc/Exception.h +include/odbc/Forwards.h +include/odbc/ParameterMetaData.h +include/odbc/PreparedStatement.h +include/odbc/RefCounted.h +include/odbc/ResultSet.h +include/odbc/ResultSetMetaData.h +include/odbc/ResultSetMetaDataBase.h +include/odbc/ResultSetMetaDataUnicode.h +include/odbc/Statement.h +include/odbc/StatementBase.h +include/odbc/StringConverter.h +include/odbc/Types.h +include/odbc/Util.h +lib/libodbccpp.a +lib/libodbccpp.so