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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 80439158094 for ; Mon, 10 Oct 2022 13:18:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BBD3FE086E; Mon, 10 Oct 2022 13:18:27 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A4B85E086E for ; Mon, 10 Oct 2022 13:18:27 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E919434101A for ; Mon, 10 Oct 2022 13:18:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 170F2617 for ; Mon, 10 Oct 2022 13:18:24 +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: <1665407885.7a19d1927cd5b073b2e2f7abf1c5c927665707e9.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.12.2.ebuild X-VCS-Directories: dev-libs/poco/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 7a19d1927cd5b073b2e2f7abf1c5c927665707e9 X-VCS-Branch: master Date: Mon, 10 Oct 2022 13:18:24 +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: 096a82ac-f8d9-4b0d-a825-5719a95acfa2 X-Archives-Hash: 71c992a65ca70da5f720bc39f234a6ef commit: 7a19d1927cd5b073b2e2f7abf1c5c927665707e9 Author: David Roman gmail com> AuthorDate: Tue Sep 6 21:52:28 2022 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Mon Oct 10 13:18:05 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a19d192 dev-libs/poco: add 1.12.2 Signed-off-by: David Roman gmail.com> Closes: https://github.com/gentoo/gentoo/pull/27171 Signed-off-by: Joonas Niilola gentoo.org> dev-libs/poco/Manifest | 1 + dev-libs/poco/metadata.xml | 1 + dev-libs/poco/poco-1.12.2.ebuild | 138 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 140 insertions(+) diff --git a/dev-libs/poco/Manifest b/dev-libs/poco/Manifest index 637aaa23cbaa..8767155dec9b 100644 --- a/dev-libs/poco/Manifest +++ b/dev-libs/poco/Manifest @@ -1,2 +1,3 @@ DIST poco-1.10.1.tar.gz 10224204 BLAKE2B 644bb2134c571e10b63937ca15b3f5d7255767bcc99dd6b6107a13d64ed7ac83d499d74f04084c666bbf5ef6f033d57d2fb1de0b8b8487844e3aaf8cefe6fba8 SHA512 40aa8049c68651f461280937c1c733e13d1cedbec12bc44a7f3a6c131d31229c5445067052441427071f6102fd1965d238b2222c0689279dd156b4e261ac9e73 DIST poco-1.11.2.tar.gz 10935312 BLAKE2B 66b4cdb6cb4b5dd4f5f0eee744e1d147d66e98561ec4286ed09693b638d565fbf084c3e40eff3f6a9a88cff167b1d774da08e8c8424986aefe13d029a540afe2 SHA512 3f9e46dbfb0a85f19389b269725cb6272172d993d8239f13da8110c0c6ce9ed2b6595708d5dba91a027292c74358c87da988e22587a74011e84707816a6a277c +DIST poco-1.12.2.tar.gz 11268579 BLAKE2B fe23216884d1effb7e93072c5e90d5eabf813c6cf0326af5c4b6d3646d54e5411966485e97d50960df97cd545b3a265eb4b43c1cb041ff97b4457f53f6bd06bc SHA512 86b6b106e9a677397c73139e949a65925e78611cad478fc4206a6a7365613307fc1549b1160faf6ca8f02fb7f7ae58858c3913cb701111b7cbb5ffcbe5363bb3 diff --git a/dev-libs/poco/metadata.xml b/dev-libs/poco/metadata.xml index fca24ff1efb4..5f1faf2571bf 100644 --- a/dev-libs/poco/metadata.xml +++ b/dev-libs/poco/metadata.xml @@ -42,6 +42,7 @@ done quickly and working on the features that make their application unique. Classes to write network clients & servers Simple compiler translating HTML pages containing embedded C++ code into HTTPRequestHandler classes POCO documentation generator + Add prometheus monitoring system support Several utility classes (like logger, timer, config file parser) Add support for the zip & gz archive formats diff --git a/dev-libs/poco/poco-1.12.2.ebuild b/dev-libs/poco/poco-1.12.2.ebuild new file mode 100644 index 000000000000..33b7323596c5 --- /dev/null +++ b/dev-libs/poco/poco-1.12.2.ebuild @@ -0,0 +1,138 @@ +# Copyright 1999-2022 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" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +IUSE="7z activerecord cppparser +crypto +data examples +file2pagecompiler iodbc +json mariadb +mongodb mysql +net odbc +pagecompiler pdf pocodoc postgres prometheus sqlite +ssl test +util +xml +zip" +RESTRICT="!test? ( test )" +REQUIRED_USE=" + 7z? ( xml ) + file2pagecompiler? ( pagecompiler ) + iodbc? ( odbc ) + mongodb? ( data ) + mysql? ( data ) + odbc? ( data ) + postgres? ( data ) + pagecompiler? ( json net util xml ) + pocodoc? ( cppparser util xml ) + sqlite? ( data ) + ssl? ( util ) + test? ( data? ( sqlite ) json util xml ) +" + +BDEPEND="virtual/pkgconfig" +RDEPEND=" + >=dev-libs/libpcre-8.42 + activerecord? ( !app-arch/arc ) + mysql? ( dev-db/mysql-connector-c:0= ) + mariadb? ( dev-db/mariadb-connector-c:0= ) + postgres? ( dev-db/postgresql:= ) + odbc? ( + iodbc? ( dev-db/libiodbc ) + !iodbc? ( dev-db/unixODBC ) + ) + sqlite? ( dev-db/sqlite:3 ) + ssl? ( + dev-libs/openssl:0= + ) + xml? ( dev-libs/expat ) + zip? ( sys-libs/zlib ) +" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}/${PN}-1.10.1-iodbc-incdir.patch" ) + +src_prepare() { + cmake_src_prepare + + 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,PDF,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 + # ignore failing Crypto test since upstream does not seem to care, + # see https://github.com/pocoproject/poco/issues/1209 + sed -i -e '/RSATest, testRSACipherLarge/d' \ + Crypto/testsuite/src/RSATest.cpp || die + fi + + # Fix MariaDB and MySQL detection + sed -i -e 's~/usr/include/mysql~~' \ + -e 's/mysqlclient_r/mysqlclient/' \ + -e 's/STATUS "Couldn/FATAL_ERROR "Couldn/' \ + cmake/FindMySQL.cmake || die + + # Add missing directory that breaks the build + mkdir -p Encodings/testsuite/data || die + + if ! use iodbc ; then + sed -i -e 's|iodbc||' cmake/FindODBC.cmake || die + fi +} + +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 ssl)" + -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_JSON="$(usex util)" + -DENABLE_MONGODB="$(usex mongodb)" + -DENABLE_NET="$(usex net)" + -DENABLE_NETSSL="$(usex ssl)" + -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 +}