commit:     e4b675fadfe524e53e2446cbfad77e25b31f3b22
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Wed Apr 17 18:20:22 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri May 10 06:20:02 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4b675fa

dev-libs/poco: add 1.13.3

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/36294
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-libs/poco/Manifest           |   1 +
 dev-libs/poco/metadata.xml       |   2 +-
 dev-libs/poco/poco-1.13.3.ebuild | 142 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 144 insertions(+), 1 deletion(-)

diff --git a/dev-libs/poco/Manifest b/dev-libs/poco/Manifest
index b81b94f9f4bd..dded174642a2 100644
--- a/dev-libs/poco/Manifest
+++ b/dev-libs/poco/Manifest
@@ -1 +1,2 @@
 DIST poco-1.12.4.tar.gz 11296139 BLAKE2B 
45e1214616e78041d5ca512cee46621c006fe21f51231f3261dc40ca4941eb3cd4e52db493aa826779784f9d3f35cfd08e3e9d08fb35ebec2d610fb6528c635a
 SHA512 
730700a24b5a00d44aa85914e7d3c9eff76969a123a67315ba5e9b2d18c0ace70d2664d8a611496851f497aa4985d36685a67813a95e814461ae0fffdb460d91
+DIST poco-1.13.3.tar.gz 11332562 BLAKE2B 
04380cae92bbd2427873f0ea1a3fcade244ee5168390e26081983ded9faaf22e456bdd4ae87f9c77bafc92155f860ea9f56678ec2204bcd7c51a871e7f00d759
 SHA512 
084064fb462c9e7993d069ebdf395802af900ed92c5b294465a2c246162bb86caa3505985de329e8110d3e9fb3bc39ae9536d523843729d4ed5ce00c35289d92

diff --git a/dev-libs/poco/metadata.xml b/dev-libs/poco/metadata.xml
index 47052fc34e8a..f73e85906ed1 100644
--- a/dev-libs/poco/metadata.xml
+++ b/dev-libs/poco/metadata.xml
@@ -33,7 +33,6 @@ done quickly and working on the features that make their 
application unique.
                <flag name="7z">Add Support for the 7z archive format</flag>
                <flag name="activerecord">Add ActiveRecord support</flag>
                <flag name="cppparser">Build and install a minimal C++ 
parser</flag>
-               <flag name="crypto" 
restrict="&lt;=dev-libs/poco-1.12.2-r1">Encryption and digital signing 
classes</flag>
                <flag name="data">Database abstraction layer to easily 
send/retrieve data to/from various databases</flag>
                <flag name="file2pagecompiler">Utility to convert ordinary 
files to Page Compiler source files</flag>
                <flag name="json">Add JSON support</flag>
@@ -44,6 +43,7 @@ done quickly and working on the features that make their 
application unique.
                <flag name="pagecompiler">Simple compiler translating HTML 
pages containing embedded C++ code into HTTPRequestHandler classes</flag>
                <flag name="pocodoc">POCO documentation generator</flag>
                <flag name="prometheus">Add prometheus monitoring system 
support</flag>
+               <flag name="ssl">Encryption and digital signing classes</flag>
                <flag name="util">Several utility classes (like logger, timer, 
config file parser)</flag>
                <flag name="zip">Add support for the zip &amp; gz archive 
formats</flag>
        </use>

diff --git a/dev-libs/poco/poco-1.13.3.ebuild b/dev-libs/poco/poco-1.13.3.ebuild
new file mode 100644
index 000000000000..1ab18c28679e
--- /dev/null
+++ b/dev-libs/poco/poco-1.13.3.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2024 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/103"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+IUSE="7z activerecord cppparser +data examples +file2pagecompiler iodbc +json 
jwt mariadb +mongodb mysql +net odbc +pagecompiler pdf pocodoc postgres 
prometheus sqlite +ssl test +util +xml +zip"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="
+       activerecord? ( util xml )
+       7z? ( xml )
+       file2pagecompiler? ( pagecompiler )
+       iodbc? ( odbc )
+       jwt? ( json ssl )
+       mongodb? ( data )
+       mysql? ( data )
+       odbc? ( data )
+       postgres? ( data )
+       pagecompiler? ( json net util xml )
+       pocodoc? ( cppparser util xml )
+       sqlite? ( data )
+       ssl? ( util )
+       test? ( data? ( sqlite ) activerecord json jwt pdf util xml )
+"
+
+BDEPEND="
+       test? ( dev-util/cppunit )
+       virtual/pkgconfig
+"
+
+RDEPEND="
+       >=dev-libs/libpcre2-10.40
+       activerecord? ( !app-arch/arc )
+       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 )
+       )
+       sqlite? ( dev-db/sqlite:3 )
+       ssl? (
+               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
+
+       # 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
+
+       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_JWT="$(usex jwt)"
+               -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
+}

Reply via email to