From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (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) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DE6E215812D for ; Fri, 03 Jan 2025 16:41:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C1D3FE081A; Fri, 03 Jan 2025 16:41:19 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A9C59E081A for ; Fri, 03 Jan 2025 16:41:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CFFE6335DCC for ; Fri, 03 Jan 2025 16:41:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 39C0511B5 for ; Fri, 03 Jan 2025 16:41:17 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1735921569.96d3238f330bb3491fbfbad4984aa6969d1c4c04.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/poco/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/poco/Manifest dev-libs/poco/metadata.xml dev-libs/poco/poco-1.14.0.ebuild X-VCS-Directories: dev-libs/poco/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 96d3238f330bb3491fbfbad4984aa6969d1c4c04 X-VCS-Branch: master Date: Fri, 03 Jan 2025 16:41:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5e7d60b6-198e-4252-853e-0e7ecd875a1e X-Archives-Hash: 7cbaf06bef7f42de0cffa61f01d9833e commit: 96d3238f330bb3491fbfbad4984aa6969d1c4c04 Author: David Roman ifae es> AuthorDate: Mon Dec 2 16:09:12 2024 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Fri Jan 3 16:26:09 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96d3238f dev-libs/poco: add 1.14.0 Added avahi support USE changes: "ssl" has been renamed to "crypt" while "jwt" has been dropped. Previously "ssl" enabled POCO_SSL and POCO_CRYPTO modules. Now "crypt" enables both of them plus POCO_JWT module. Closes: https://bugs.gentoo.org/939410 Closes: https://bugs.gentoo.org/940705 Signed-off-by: David Roman ifae.es> Closes: https://github.com/gentoo/gentoo/pull/39567 Signed-off-by: Joonas Niilola gentoo.org> dev-libs/poco/Manifest | 1 + dev-libs/poco/metadata.xml | 6 +- dev-libs/poco/poco-1.14.0.ebuild | 138 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 143 insertions(+), 2 deletions(-) diff --git a/dev-libs/poco/Manifest b/dev-libs/poco/Manifest index dded174642a2..2350488f1bdf 100644 --- a/dev-libs/poco/Manifest +++ b/dev-libs/poco/Manifest @@ -1,2 +1,3 @@ DIST poco-1.12.4.tar.gz 11296139 BLAKE2B 45e1214616e78041d5ca512cee46621c006fe21f51231f3261dc40ca4941eb3cd4e52db493aa826779784f9d3f35cfd08e3e9d08fb35ebec2d610fb6528c635a SHA512 730700a24b5a00d44aa85914e7d3c9eff76969a123a67315ba5e9b2d18c0ace70d2664d8a611496851f497aa4985d36685a67813a95e814461ae0fffdb460d91 DIST poco-1.13.3.tar.gz 11332562 BLAKE2B 04380cae92bbd2427873f0ea1a3fcade244ee5168390e26081983ded9faaf22e456bdd4ae87f9c77bafc92155f860ea9f56678ec2204bcd7c51a871e7f00d759 SHA512 084064fb462c9e7993d069ebdf395802af900ed92c5b294465a2c246162bb86caa3505985de329e8110d3e9fb3bc39ae9536d523843729d4ed5ce00c35289d92 +DIST poco-1.14.0.tar.gz 12158142 BLAKE2B 3ae9a520941634ac9aa72d323541d6433ac2e73d4d19e0654f932ea031d17870ca4ad764a8e3c5e68d69c5dc9750d779102d80d6d810598db275f269928ae8ea SHA512 4475a0ede5d06e4ce9537295fec92fa39b8fd5635d1cfb38498be4f707bc62b4a8b57672d2a15b557114e4115cc45480d27d0c856b7bd982eeec7adad9ff2582 diff --git a/dev-libs/poco/metadata.xml b/dev-libs/poco/metadata.xml index f73e85906ed1..b46a644c0216 100644 --- a/dev-libs/poco/metadata.xml +++ b/dev-libs/poco/metadata.xml @@ -31,12 +31,14 @@ done quickly and working on the features that make their application unique. Add Support for the 7z archive format + Add Support for avahi DNS-SD (zeroconf) Add ActiveRecord support Build and install a minimal C++ parser + Encryption and digital signing classes (including SSL and JWT). Database abstraction layer to easily send/retrieve data to/from various databases Utility to convert ordinary files to Page Compiler source files Add JSON support - Add JSON Web Token support + Add JSON Web Token support Prefer dev-db/mariadb-connector-c over dev-db/mysql-connector-c Add dev-db/mongodb support Classes to write network clients & servers @@ -44,7 +46,7 @@ done quickly and working on the features that make their application unique. POCO documentation generator Add prometheus monitoring system support Encryption and digital signing classes - Several utility classes (like logger, timer, config file parser) + Several utility classes (like logger, timer, config file parser). Also enables JSON Add support for the zip & gz archive formats diff --git a/dev-libs/poco/poco-1.14.0.ebuild b/dev-libs/poco/poco-1.14.0.ebuild new file mode 100644 index 000000000000..45f56a16572c --- /dev/null +++ b/dev-libs/poco/poco-1.14.0.ebuild @@ -0,0 +1,138 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="C++ libraries for building network-based applications" +HOMEPAGE="https://pocoproject.org/" +SRC_URI="https://github.com/pocoproject/${PN}/archive/${P}-release.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${P}-release" + +LICENSE="Boost-1.0" +# SHARED_LIBRARY_VERSION -> "${S}"/libversion +SLOT="0/110" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +IUSE="7z activerecord avahi cppparser +crypt +data examples +file2pagecompiler iodbc mariadb +mongodb mysql +net odbc +pagecompiler pdf pocodoc postgres prometheus sqlite test +util +xml +zip" +RESTRICT="!test? ( test )" +REQUIRED_USE=" + activerecord? ( util xml ) + 7z? ( xml ) + file2pagecompiler? ( pagecompiler ) + iodbc? ( odbc ) + mongodb? ( data ) + mysql? ( data ) + odbc? ( data ) + postgres? ( data ) + pagecompiler? ( net util xml ) + pocodoc? ( cppparser util xml ) + sqlite? ( data ) + crypt? ( util ) + test? ( data? ( sqlite ) activerecord cppparser crypt pdf prometheus xml ) +" + +BDEPEND=" + virtual/pkgconfig +" + +RDEPEND=" + >=dev-libs/libpcre2-10.40 + dev-libs/libutf8proc:= + + activerecord? ( !app-arch/arc ) + avahi? ( net-dns/avahi:= ) + mysql? ( dev-db/mysql-connector-c:= ) + mariadb? ( dev-db/mariadb-connector-c:= ) + postgres? ( dev-db/postgresql:= ) + odbc? ( + iodbc? ( dev-db/libiodbc ) + !iodbc? ( dev-db/unixODBC ) + ) + pdf? ( media-libs/libpng:= ) + sqlite? ( dev-db/sqlite:3 ) + crypt? ( + dev-libs/openssl:= + ) + xml? ( dev-libs/expat ) + zip? ( sys-libs/zlib:= ) +" +DEPEND="${RDEPEND}" + +src_prepare() { + cmake_src_prepare + + if [[ ${SLOT} != 0/$(< "${S}"/libversion) ]] ; then + die "Please update subslot in ebuild to the version in ${S}/libversion!" + fi + + if use test ; then + # ignore missing tests on experimental library + # and tests requiring running DB-servers, internet connections, etc. + sed -i -e '/testsuite/d' \ + {Data/{,MySQL,ODBC},MongoDB,Net,NetSSL_OpenSSL,Redis}/CMakeLists.txt || die + + # Poco expands ~ using passwd, which does not match $HOME in the build environment + sed -i -e '/CppUnit_addTest.*testExpand/d' \ + Foundation/testsuite/src/PathTest.cpp || die + fi + + sed -i 's/ENABLE_DNSSD_AVHAI/ENABLE_DNSSD_AVAHI/' DNSSD/CMakeLists.txt || die +} + +src_configure() { + # apache support is dead and buggy, https://github.com/pocoproject/poco/issues/1764 + local mycmakeargs=( + -DPOCO_UNBUNDLED=ON + -DENABLE_APACHECONNECTOR=OFF + -DENABLE_ACTIVERECORD="$(usex activerecord)" + -DENABLE_ACTIVERECORD_COMPILER="$(usex activerecord)" + -DENABLE_CPPPARSER="$(usex cppparser)" + -DENABLE_CRYPTO="$(usex crypt)" + -DENABLE_DATA="$(usex data)" + -DENABLE_DATA_MYSQL="$(usex mysql)" + -DENABLE_DATA_ODBC="$(usex odbc)" + -DENABLE_DATA_POSTGRESQL="$(usex postgres)" + -DENABLE_DATA_SQLITE="$(usex sqlite)" + -DENABLE_DNSSD="$(usex avahi)" + -DENABLE_DNSSD_AVAHI="$(usex avahi)" + -DENABLE_JSON="$(usex util)" + -DENABLE_JWT="$(usex crypt)" + -DENABLE_MONGODB="$(usex mongodb)" + -DENABLE_NET="$(usex net)" + -DENABLE_NETSSL="$(usex crypt)" + -DENABLE_NETSSL_WIN=OFF + -DENABLE_PAGECOMPILER="$(usex pagecompiler)" + -DENABLE_PAGECOMPILER_FILE2PAGE="$(usex file2pagecompiler)" + -DENABLE_PDF="$(usex pdf)" + -DENABLE_POCODOC="$(usex pocodoc)" + -DENABLE_PROMETHEUS="$(usex prometheus)" + -DENABLE_SEVENZIP="$(usex 7z)" + -DENABLE_TESTS="$(usex test)" + -DENABLE_UTIL="$(usex util)" + -DENABLE_XML="$(usex xml)" + -DENABLE_ZIP="$(usex zip)" + ) + + cmake_src_configure +} + +src_test() { + POCO_BASE="${S}" cmake_src_test -E DataPostgreSQL +} + +src_install() { + cmake_src_install + + if use examples ; then + for sd in */samples ; do + docinto examples/${sd%/samples} + dodoc -r ${sd} + done + + find "${D}/usr/share/doc/${PF}/examples" \ + -iname "*.sln" -or -iname "*.vcproj" -or \ + -iname "*.vmsbuild" -or -iname "*.properties" \ + | xargs rm -v || die + fi +}