From nobody Thu Feb 02 17:18:43 2023 X-Original-To: dev-commits-ports-all@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 4P759H40Qyz3kNJT; Thu, 2 Feb 2023 17:18:43 +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 4P759H3TXJz3tkT; Thu, 2 Feb 2023 17:18:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675358323; 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=SiI6+kOvKF8iNS9Uw58kRfPYHfvM+lrM8mSXrr89mYI=; b=DrwzbXCjFsaPPJP9/ukrhGbmgT4wQRU18uEfocyNLyxPEcQOwtkYrQ/jYMwQFDka46N6H5 3cWwCnAvZpvewXOVRr0vNa+L5hX7Fm2aAWIlustKBfT8irOMoaHDNn/F0IiTxqqaGB7U4f 3vsluL/YBhpoyYF2xxLBihHZ+QNJ0SyrgxO3tDStnGhZLVeYfcBg+w0W2GQvfrmiS8U18x LipM1RmDMR3qwPeus9ZOV+tJ+djyhCCyJLm+RxkxOVu+rMKza9LMjFw5ilYerhFeZYFQxG QGWaJeIPsbmlzTbaet7ZnjxZttItKtdyiY7JTuzqw1b0NLKFgvFh+NO3ODJfTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675358323; 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=SiI6+kOvKF8iNS9Uw58kRfPYHfvM+lrM8mSXrr89mYI=; b=gb9gAeLSlWUgFDjkmTULKhT4N8ciCaVNptcUdscjrRG1i5+AP/SJqFcNkivpr10eAkOjHr 8KTgHyfn61hHEFx08jIvUS+bGHbitznUstlvw/IGekS5Cp2hNKSTplw6TfME2GPq9f9YbH EOksNG+Wop2eJzwU/Cjlw9tZh28DJA4JZTDJOE/vl4/gGuDg5igr4h+ggKJed1LCovW07y Wou8Qq236itBlmGlvw9vXfol+JOUVOuvFJBUasPBNayysNCi7V3w53ymovMTsnQbVXF9D1 zO05I45btIg+y30jryJlFfhnPBLQ5WamgrvRp8cwkMvqXJWSeeHpdpYCZhXwyg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675358323; a=rsa-sha256; cv=none; b=SP84Q3KO1Z9ZE/DYi1q8+2GQ3coHfcwStQ5q3vpfB6EDTBVeUu6aiv4LL77tUa6wsDi9k3 v0PxEnzxZ+9HOV6aiPTT0xQ0jplZasd02cksv5Gw7dZEUtu4mD5ZDPNm1jxR0m9sz68TLP WFFmnas+ZRlzX/f+xIFIWTtYBs5hLGR8vn45HkibrhTvmwEG0gB4Pj+Ib655Su82Xe34a4 GFxq9K0MdNOnYQLmx+8wM7Ku7UG9AapByy7GC4AEso28YYl/cNQzJs1D+SYILs0yi74jJ1 e8Y3cceTVKWWe0ooDsemhsefotDBu4BoT5kWMu/UF4X0QFA49nWmZ+juhIyBmg== 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 4P759H2QTlz12rp; Thu, 2 Feb 2023 17:18:43 +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 312HIh2c092897; Thu, 2 Feb 2023 17:18:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 312HIhqx092896; Thu, 2 Feb 2023 17:18:43 GMT (envelope-from git) Date: Thu, 2 Feb 2023 17:18:43 GMT Message-Id: <202302021718.312HIhqx092896@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: 9f69094b522c - main - databases/mysql-connector-c++: Update version 1.1.13=>8.0.32 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9f69094b522c8ce32863eaf52a827e4dceeb9fee Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=9f69094b522c8ce32863eaf52a827e4dceeb9fee commit 9f69094b522c8ce32863eaf52a827e4dceeb9fee Author: Muhammad Moinur Rahman AuthorDate: 2023-02-02 17:10:20 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-02-02 17:18:32 +0000 databases/mysql-connector-c++: Update version 1.1.13=>8.0.32 - Update LICENSE_FILE - Unbreak for mysql 8.0 - OPTIONIZE DOCS - Remove tests as those are no longer provided in distfile Changes: https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-32.html --- databases/mysql-connector-c++/Makefile | 72 +++++++++------------- databases/mysql-connector-c++/distinfo | 6 +- .../mysql-connector-c++/files/patch-CMakeLists.txt | 10 --- databases/mysql-connector-c++/pkg-plist | 56 ++++++++++------- 4 files changed, 66 insertions(+), 78 deletions(-) diff --git a/databases/mysql-connector-c++/Makefile b/databases/mysql-connector-c++/Makefile index 370203ad1bb1..acc0ce1d0bae 100644 --- a/databases/mysql-connector-c++/Makefile +++ b/databases/mysql-connector-c++/Makefile @@ -1,64 +1,52 @@ PORTNAME= mysql-connector-c++ -PORTVERSION= 1.1.13 -PORTREVISION= 3 +PORTVERSION= 8.0.32 CATEGORIES= databases MASTER_SITES= MYSQL/Connector-C++ +DISTNAME= ${PORTNAME}-${PORTVERSION}-src MAINTAINER= bofh@FreeBSD.org COMMENT= MySQL database connector for C++ WWW= https://dev.mysql.com/doc/relnotes/connector-cpp/en/index.html LICENSE= GPLv2 # only -LICENSE_FILE= ${WRKSRC}/LICENSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt -LIB_DEPENDS= libboost_regex.so:devel/boost-libs +LIB_DEPENDS= libboost_regex.so:devel/boost-libs \ + liblz4.so:archivers/liblz4 \ + libprotobuf.so:devel/protobuf \ + libzstd.so:archivers/zstd -USES= cmake compiler:c++11-lang mysql ssl -IGNORE_WITH_MYSQL= 80 +USES= cmake:noninja compiler:c++17-lang cpe gmake mysql ssl +CPE_VENDOR= oracle +USE_CXXSTD= c++17 USE_LDCONFIG= yes -CMAKE_ARGS= -DDOC_DESTINATION="${DOCSDIR}" -DCMAKE_ENABLE_C++11=ON +CMAKE_ARGS= -DCMAKE_ENABLE_C++17=ON \ + -DWITH_LZ4=system \ + -DWITH_PROTOBUF=system \ + -DWITH_SYSTEM_LIBS=1 \ + -DWITH_ZLIB=system \ + -DWITH_ZSTD=system PLIST_SUB= PORTVERSION=${PORTVERSION} - PORTDOCS= * + OPTIONS_DEFINE= DOCS +OPTIONS_SUB= yes -post-install: - @${RM} ${STAGEDIR}${DOCSDIR}/INSTALL \ - ${STAGEDIR}${DOCSDIR}/COPYING +DOCS_BUILD_DEPENDS= doxygen:devel/doxygen +DOCS_CMAKE_ON= -DDOC_DESTINATION="${DOCSDIR}" \ + -DWITH_DOC=ON -.if defined(MAINTAINER_MODE) -CMAKE_ARGS+= -DMYSQLCPPCONN_TEST_NOT_IMPLEMENTED:BOOL=1 \ - -DMYSQLCPPCONN_BUILD_EXAMPLES:BOOL=1 +post-install: + @${RM} ${STAGEDIR}${PREFIX}/INFO_BIN + @${RM} ${STAGEDIR}${PREFIX}/INFO_SRC -do-test: -# These tests assume that a database is running on localhost, -# with user:root and pass:root - (cd ${WRKDIR}/.build ; \ - test/CJUnitTestsPort/CJUnitTestsPort --verbose ; \ - test/driver_test --verbose ; \ - test/static_test --verbose ; \ - examples/connect --verbose ; \ - examples/connection_meta_schemaobj --verbose ; \ - examples/debug --verbose ; \ - examples/dynamic_load --verbose ; \ - examples/exceptions --verbose ; \ - examples/prepared_statement --verbose ; \ - examples/resultset --verbose ; \ - examples/resultset_binary --verbose ; \ - examples/resultset_meta --verbose ; \ - examples/resultset_types --verbose ; \ - examples/statement --verbose ; \ - test/unit/classes/art_resultset --verbose ; \ - test/unit/classes/connection --verbose ; \ - test/unit/classes/databasemetadata --verbose ; \ - test/unit/classes/parametermetadata --verbose ; \ - test/unit/classes/preparedstatement --verbose ; \ - test/unit/classes/resultset --verbose ; \ - test/unit/classes/resultsetmetadata --verbose ; \ - test/unit/classes/savepoint --verbose ; \ - test/unit/classes/statement ) -.endif +post-install-DOCS-on: + @${RM} ${STAGEDIR}${DOCSDIR}/INSTALL \ + ${STAGEDIR}${DOCSDIR}/LICENSE.txt + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${BUILD_WRKSRC}/doc && \ + ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR} .include diff --git a/databases/mysql-connector-c++/distinfo b/databases/mysql-connector-c++/distinfo index cdb132d4f773..26518fa364e5 100644 --- a/databases/mysql-connector-c++/distinfo +++ b/databases/mysql-connector-c++/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1572299977 -SHA256 (mysql-connector-c++-1.1.13.tar.gz) = 332c87330ab167c17606b95d27af110c3f8f228658e8ba0d1f6e5f0a0acf3b41 -SIZE (mysql-connector-c++-1.1.13.tar.gz) = 519743 +TIMESTAMP = 1675349313 +SHA256 (mysql-connector-c++-8.0.32-src.tar.gz) = fbdb7f214427632f423e84ba7594be1f9205eac8128c6b1857203b2f5455cef3 +SIZE (mysql-connector-c++-8.0.32-src.tar.gz) = 4202413 diff --git a/databases/mysql-connector-c++/files/patch-CMakeLists.txt b/databases/mysql-connector-c++/files/patch-CMakeLists.txt deleted file mode 100644 index 5dfa0b0b7bcd..000000000000 --- a/databases/mysql-connector-c++/files/patch-CMakeLists.txt +++ /dev/null @@ -1,10 +0,0 @@ ---- CMakeLists.txt.orig 2016-01-12 18:42:38 UTC -+++ CMakeLists.txt -@@ -316,7 +316,6 @@ ELSE(WIN32) - SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY}") - ENDIF(WIN32) - --SET(DOC_DESTINATION ".") - IF(RPM_LAYOUT) - SET(DOC_DESTINATION "share/doc/${CPACK_PACKAGE_NAME}-${MYSQLCPPCONN_VERSION}") - ENDIF() diff --git a/databases/mysql-connector-c++/pkg-plist b/databases/mysql-connector-c++/pkg-plist index a730f110cff2..cbef9cbe77ca 100644 --- a/databases/mysql-connector-c++/pkg-plist +++ b/databases/mysql-connector-c++/pkg-plist @@ -1,23 +1,33 @@ -include/cppconn/build_config.h -include/cppconn/config.h -include/cppconn/connection.h -include/cppconn/datatype.h -include/cppconn/driver.h -include/cppconn/exception.h -include/cppconn/metadata.h -include/cppconn/parameter_metadata.h -include/cppconn/prepared_statement.h -include/cppconn/resultset.h -include/cppconn/resultset_metadata.h -include/cppconn/statement.h -include/cppconn/sqlstring.h -include/cppconn/variant.h -include/cppconn/version_info.h -include/cppconn/warning.h -include/mysql_connection.h -include/mysql_driver.h -include/mysql_error.h -lib/libmysqlcppconn-static.a -lib/libmysqlcppconn.so -lib/libmysqlcppconn.so.7 -lib/libmysqlcppconn.so.7.%%PORTVERSION%% +include/mysqlx/common.h +include/mysqlx/common/api.h +include/mysqlx/common/error.h +include/mysqlx/common/op_if.h +include/mysqlx/common/settings.h +include/mysqlx/common/util.h +include/mysqlx/common/value.h +include/mysqlx/common_constants.h +include/mysqlx/devapi/collations.h +include/mysqlx/devapi/collection_crud.h +include/mysqlx/devapi/common.h +include/mysqlx/devapi/crud.h +include/mysqlx/devapi/detail/crud.h +include/mysqlx/devapi/detail/error.h +include/mysqlx/devapi/detail/result.h +include/mysqlx/devapi/detail/row.h +include/mysqlx/devapi/detail/session.h +include/mysqlx/devapi/detail/settings.h +include/mysqlx/devapi/document.h +include/mysqlx/devapi/error.h +include/mysqlx/devapi/executable.h +include/mysqlx/devapi/mysql_charsets.h +include/mysqlx/devapi/mysql_collations.h +include/mysqlx/devapi/result.h +include/mysqlx/devapi/row.h +include/mysqlx/devapi/settings.h +include/mysqlx/devapi/table_crud.h +include/mysqlx/version_info.h +include/mysqlx/xapi.h +include/mysqlx/xdevapi.h +lib/libmysqlcppconn8.so +lib/libmysqlcppconn8.so.2 +lib/libmysqlcppconn8.so.2.%%PORTVERSION%%