mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-10 06:57:08 -08:00
dev-libs/poco: drop 1.12.4
Signed-off-by: David Roman <droman@ifae.es> Closes: https://github.com/gentoo/gentoo/pull/40556 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,4 +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
|
||||
DIST poco-1.14.1.tar.gz 12160003 BLAKE2B 8fe985b8b3c4ab93df57fc63dbea97612c7f748ca0319b5ffea931bdd438f0d563d17e47da259cc9de30311ec5c9622c9420c64058d4c6075bff1a70a819dca9 SHA512 e192818a5f731ec6f6bddf062573d7bedfd15754157f145882c2c9d9bce497b92cf23f639f989d9e5605cb83029c4f303752cab655b525b5a5b5e5b704714725
|
||||
|
||||
@@ -1,146 +0,0 @@
|
||||
# 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/94"
|
||||
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 ) json util xml )
|
||||
"
|
||||
|
||||
BDEPEND="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}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-1.10.1-iodbc-incdir.patch" )
|
||||
|
||||
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,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_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
|
||||
}
|
||||
Reference in New Issue
Block a user