Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/poco/
Date: Fri, 06 May 2022 07:47:36
Message-Id: 1651823240.4e8ef05532ffb65388ab6fbdb3ec0096ea0acebf.sam@gentoo
1 commit: 4e8ef05532ffb65388ab6fbdb3ec0096ea0acebf
2 Author: David Roman <davidroman96 <AT> gmail <DOT> com>
3 AuthorDate: Tue May 3 19:51:13 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri May 6 07:47:20 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e8ef055
7
8 dev-libs/poco: verbump to 1.11.2
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: David Roman <davidroman96 <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/25307
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 dev-libs/poco/Manifest | 1 +
16 dev-libs/poco/metadata.xml | 1 +
17 dev-libs/poco/poco-1.11.2.ebuild | 136 +++++++++++++++++++++++++++++++++++++++
18 3 files changed, 138 insertions(+)
19
20 diff --git a/dev-libs/poco/Manifest b/dev-libs/poco/Manifest
21 index 67505d010258..637aaa23cbaa 100644
22 --- a/dev-libs/poco/Manifest
23 +++ b/dev-libs/poco/Manifest
24 @@ -1 +1,2 @@
25 DIST poco-1.10.1.tar.gz 10224204 BLAKE2B 644bb2134c571e10b63937ca15b3f5d7255767bcc99dd6b6107a13d64ed7ac83d499d74f04084c666bbf5ef6f033d57d2fb1de0b8b8487844e3aaf8cefe6fba8 SHA512 40aa8049c68651f461280937c1c733e13d1cedbec12bc44a7f3a6c131d31229c5445067052441427071f6102fd1965d238b2222c0689279dd156b4e261ac9e73
26 +DIST poco-1.11.2.tar.gz 10935312 BLAKE2B 66b4cdb6cb4b5dd4f5f0eee744e1d147d66e98561ec4286ed09693b638d565fbf084c3e40eff3f6a9a88cff167b1d774da08e8c8424986aefe13d029a540afe2 SHA512 3f9e46dbfb0a85f19389b269725cb6272172d993d8239f13da8110c0c6ce9ed2b6595708d5dba91a027292c74358c87da988e22587a74011e84707816a6a277c
27
28 diff --git a/dev-libs/poco/metadata.xml b/dev-libs/poco/metadata.xml
29 index e87aecd0e1e0..fca24ff1efb4 100644
30 --- a/dev-libs/poco/metadata.xml
31 +++ b/dev-libs/poco/metadata.xml
32 @@ -31,6 +31,7 @@ done quickly and working on the features that make their application unique.
33 </upstream>
34 <use>
35 <flag name="7z">Add Support for the 7z archive format</flag>
36 + <flag name="activerecord">Add ActiveRecord support</flag>
37 <flag name="cppparser">Build and install a minimal C++ parser</flag>
38 <flag name="crypto">Encryption and digital signing classes</flag>
39 <flag name="data">Database abstraction layer to easily send/retrieve data to/from various databases</flag>
40
41 diff --git a/dev-libs/poco/poco-1.11.2.ebuild b/dev-libs/poco/poco-1.11.2.ebuild
42 new file mode 100644
43 index 000000000000..90b4ba570fd3
44 --- /dev/null
45 +++ b/dev-libs/poco/poco-1.11.2.ebuild
46 @@ -0,0 +1,136 @@
47 +# Copyright 1999-2022 Gentoo Authors
48 +# Distributed under the terms of the GNU General Public License v2
49 +
50 +EAPI=8
51 +
52 +inherit cmake
53 +
54 +DESCRIPTION="C++ libraries for building network-based applications"
55 +HOMEPAGE="https://pocoproject.org/"
56 +SRC_URI="https://github.com/pocoproject/${PN}/archive/${P}-release.tar.gz -> ${P}.tar.gz"
57 +S="${WORKDIR}/${PN}-${P}-release"
58 +
59 +LICENSE="Boost-1.0"
60 +SLOT="0"
61 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
62 +IUSE="7z activerecord cppparser +crypto +data examples +file2pagecompiler iodbc +json mariadb +mongodb mysql +net odbc +pagecompiler pdf pocodoc sqlite +ssl test +util +xml +zip"
63 +RESTRICT="!test? ( test )"
64 +REQUIRED_USE="
65 + 7z? ( xml )
66 + file2pagecompiler? ( pagecompiler )
67 + iodbc? ( odbc )
68 + mongodb? ( data )
69 + mysql? ( data )
70 + odbc? ( data )
71 + pagecompiler? ( json net util xml )
72 + pocodoc? ( cppparser util xml )
73 + sqlite? ( data )
74 + ssl? ( util )
75 + test? ( data? ( sqlite ) json util xml )
76 +"
77 +
78 +BDEPEND="virtual/pkgconfig"
79 +RDEPEND="
80 + >=dev-libs/libpcre-8.42
81 + mysql? ( !mariadb? ( dev-db/mysql-connector-c:0= )
82 + mariadb? ( dev-db/mariadb-connector-c:0= ) )
83 + odbc? ( iodbc? ( dev-db/libiodbc )
84 + !iodbc? ( dev-db/unixODBC ) )
85 + sqlite? ( dev-db/sqlite:3 )
86 + ssl? (
87 + dev-libs/openssl:0=
88 + )
89 + xml? ( dev-libs/expat )
90 + zip? ( sys-libs/zlib )
91 +"
92 +DEPEND="${RDEPEND}"
93 +
94 +PATCHES=( "${FILESDIR}/${PN}-1.10.1-iodbc-incdir.patch" )
95 +
96 +src_prepare() {
97 + cmake_src_prepare
98 +
99 + if use test ; then
100 + # ignore missing tests on experimental library
101 + # and tests requiring running DB-servers, internet connections, etc.
102 + sed -i -e '/testsuite/d' \
103 + {Data/{MySQL,ODBC},MongoDB,Net,NetSSL_OpenSSL,PDF,Redis}/CMakeLists.txt || die
104 + # Poco expands ~ using passwd, which does not match $HOME in the build environment
105 + sed -i -e '/CppUnit_addTest.*testExpand/d' \
106 + Foundation/testsuite/src/PathTest.cpp || die
107 + # ignore failing Crypto test since upstream does not seem to care,
108 + # see https://github.com/pocoproject/poco/issues/1209
109 + sed -i -e '/RSATest, testRSACipherLarge/d' \
110 + Crypto/testsuite/src/RSATest.cpp || die
111 + fi
112 +
113 + if use mariadb ; then
114 + # Fix MariaDB detection
115 + sed -i -e 's~/usr/include/mysql~~' \
116 + -e 's/STATUS "Couldn/FATAL_ERROR "Couldn/' \
117 + cmake/FindMySQL.cmake || die
118 + else
119 + # Fix MySQL detection
120 + sed -i -e 's/mysqlclient_r/mysqlclient/' \
121 + -e 's/STATUS "Couldn/FATAL_ERROR "Couldn/' \
122 + cmake/FindMySQL.cmake || die
123 + fi
124 +
125 + # Add missing directory that breaks the build
126 + mkdir -p Encodings/testsuite/data || die
127 +
128 + if ! use iodbc ; then
129 + sed -i -e 's|iodbc||' cmake/FindODBC.cmake || die
130 + fi
131 +}
132 +
133 +src_configure() {
134 + # apache support is dead and buggy, https://github.com/pocoproject/poco/issues/1764
135 + local mycmakeargs=(
136 + -DPOCO_UNBUNDLED=ON
137 + -DENABLE_APACHECONNECTOR=OFF
138 + -DENABLE_ACTIVERECORD="$(usex activerecord)"
139 + -DENABLE_CPPPARSER="$(usex cppparser)"
140 + -DENABLE_CRYPTO="$(usex ssl)"
141 + -DENABLE_DATA="$(usex data)"
142 + -DENABLE_DATA_MYSQL="$(usex mysql)"
143 + -DENABLE_DATA_ODBC="$(usex odbc)"
144 + -DENABLE_DATA_SQLITE="$(usex sqlite)"
145 + -DENABLE_JSON="$(usex util)"
146 + -DENABLE_MONGODB="$(usex mongodb)"
147 + -DENABLE_NET="$(usex net)"
148 + -DENABLE_NETSSL="$(usex ssl)"
149 + -DENABLE_NETSSL_WIN=OFF
150 + -DENABLE_PAGECOMPILER="$(usex pagecompiler)"
151 + -DENABLE_PAGECOMPILER_FILE2PAGE="$(usex file2pagecompiler)"
152 + -DENABLE_PDF="$(usex pdf)"
153 + -DENABLE_POCODOC="$(usex pocodoc)"
154 + -DENABLE_SEVENZIP="$(usex 7z)"
155 + -DENABLE_TESTS="$(usex test)"
156 + -DENABLE_UTIL="$(usex util)"
157 + -DENABLE_XML="$(usex xml)"
158 + -DENABLE_ZIP="$(usex zip)"
159 + )
160 +
161 + cmake_src_configure
162 +}
163 +
164 +src_test() {
165 + POCO_BASE="${S}" cmake_src_test
166 +}
167 +
168 +src_install() {
169 + cmake_src_install
170 +
171 + if use examples ; then
172 + for sd in */samples ; do
173 + docinto examples/${sd%/samples}
174 + dodoc -r ${sd}
175 + done
176 +
177 + find "${D}/usr/share/doc/${PF}/examples" \
178 + -iname "*.sln" -or -iname "*.vcproj" -or \
179 + -iname "*.vmsbuild" -or -iname "*.properties" \
180 + | xargs rm -v || die
181 + fi
182 +}