From c75fb751e4fd18ca8d87b0198e91a1976ffb2f2d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 5 Feb 2023 03:15:29 +0000 Subject: gentoo auto-resync : 05:02:2023 - 03:15:29 --- dev-libs/Manifest.gz | Bin 95903 -> 95901 bytes dev-libs/log4cxx/Manifest | 4 ++- dev-libs/log4cxx/log4cxx-1.0.0.ebuild | 55 ++++++++++++++++++++++++++++++++++ dev-libs/log4cxx/metadata.xml | 11 ++++--- 4 files changed, 65 insertions(+), 5 deletions(-) create mode 100644 dev-libs/log4cxx/log4cxx-1.0.0.ebuild (limited to 'dev-libs') diff --git a/dev-libs/Manifest.gz b/dev-libs/Manifest.gz index 72ee2d11308c..7c1266c06a49 100644 Binary files a/dev-libs/Manifest.gz and b/dev-libs/Manifest.gz differ diff --git a/dev-libs/log4cxx/Manifest b/dev-libs/log4cxx/Manifest index d55a19e05e4e..b6ba60bc0e8b 100644 --- a/dev-libs/log4cxx/Manifest +++ b/dev-libs/log4cxx/Manifest @@ -1,3 +1,5 @@ DIST apache-log4cxx-0.11.0.tar.gz 1145075 BLAKE2B 786f3374923a5d47172bdaba7edb1725bedc766cb310b7b1237cfcc2fdd84cf2e390b47d55284ad0ce65631798e545523723090f4c0f7ab262f6cbe41a03e327 SHA512 f8aa37c9c094e7a4d6ca92dff13c032f69f1e078c51ea55e284fcb931c13256b08950af3ea6eaf7a12282240f6073e9acab19bfe217f88dbd62a5d2360f3fbdd +DIST apache-log4cxx-1.0.0.tar.gz 554344 BLAKE2B 2664cdcb84c298cd9be49e98ee767f16665614435ad44e79fa4d10219f42373ba8bb3f6cfe698bd65c0565ba120b6f6e1ab7a8de8ce9a1f43e977dde80596c3a SHA512 a6b928d7b5b4fb60a67504be082f436a6d1a750b752a89df51d0660670b6c008e7376cf56c1749fd5fc17777ae8a2d957f72879c9a89487ecb0f179999dc1283 EBUILD log4cxx-0.11.0.ebuild 1266 BLAKE2B fe4becd93c715d6b2c43ce49402e1b1b72d81e0768beb0b868a86dfef8b619ff499c5faeeee683d4c61eef293808064f199321333fa7ad67cb356f1a0d7b2634 SHA512 8ccff6eaa7058b7127a1f75b9e6d20b2f3853fc53cba4a482d2dfd57b21663d05b515ff7014de42f37f58efd6213eb42ff858b00b7437e9b24c11c008fa30321 -MISC metadata.xml 259 BLAKE2B 8685aafb5cc8ab49eebf0952b91bfaac9a2b39f9d70632a97006a6ae9c9d90e9e5b1c1ef189e2047006ec8faba526ec8924d0302733978e24359e19970dd7366 SHA512 c3dfc9f8bbee2ce40b44e963c25036117f61ce6ed42b917dc716c91a0561678d1b24d3537cefbfdf5e7a5b9fcb34ea2f459264f5348a41a16488431da22b624b +EBUILD log4cxx-1.0.0.ebuild 1279 BLAKE2B b343a09721c29d5afb4ca71e673ec1b91b68c58e3a50cf5ef3a42df0a2b76b5f613ebeb56393e6eafd96a7ee65944e21cf4023855766e3f44d57d954d541095e SHA512 2b97df12380f30cb7cb290033652f254baa4065b4b0b3be17b5e9a9b1ae7fa0ce812a284c4b64fd61f48527b7e02595df37931a3fab7d1b79dc44b0a22f68570 +MISC metadata.xml 349 BLAKE2B 16623880a591924cd9c0fb6371a9d99fe9b3e520e84e84517f1588d74dcc4e2e0d2d4d296c585a381e3000d991e790d2005d62cb262276a0a6175f216fe97552 SHA512 08113b1261b2a74088e8d1dcf2351707adab4b30868b57bf9c478e7f26a1015196191fcb9d938ca446a7f63e6fd79771a4a88706a7fceeac9c2dfc4f56099b50 diff --git a/dev-libs/log4cxx/log4cxx-1.0.0.ebuild b/dev-libs/log4cxx/log4cxx-1.0.0.ebuild new file mode 100644 index 000000000000..f706d1664e4b --- /dev/null +++ b/dev-libs/log4cxx/log4cxx-1.0.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +MY_P=apache-${P} +DESCRIPTION="Library of C++ classes for logging to files, syslog and other destinations" +HOMEPAGE="https://logging.apache.org/log4cxx/" +SRC_URI="mirror://apache/logging/${PN}/${PV}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="Apache-2.0" +SLOT="0/15" +KEYWORDS="~amd64" +IUSE="odbc smtp test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/apr:1= + dev-libs/apr-util:1= + dev-libs/libfmt:= + odbc? ( dev-db/unixODBC ) + smtp? ( net-libs/libesmtp ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + test? ( + app-alternatives/gzip + app-arch/zip + ) +" + +src_prepare() { + # https://github.com/apache/logging-log4cxx/issues/189 + if ! use odbc ; then + sed -i -e 's:pkg_check_modules( odbc QUIET odbc ):pkg_check_modules( odbc QUIET odbcDoNotFindMe ):' src/main/include/CMakeLists.txt || die + fi + + if ! use smtp ; then + sed -i -e 's:CHECK_LIBRARY_EXISTS(esmtp smtp_create_session "" HAS_LIBESMTP):CHECK_LIBRARY_EXISTS(esmtpDoNotFindMe smtp_create_session "" HAS_LIBESMTP):' src/main/include/CMakeLists.txt || die + fi + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DENABLE_FMT_LAYOUT=ON + -DLOG4CXX_QT_SUPPORT=OFF + ) + + cmake_src_configure +} diff --git a/dev-libs/log4cxx/metadata.xml b/dev-libs/log4cxx/metadata.xml index bfff4138d143..3d3ee44f441d 100644 --- a/dev-libs/log4cxx/metadata.xml +++ b/dev-libs/log4cxx/metadata.xml @@ -1,8 +1,11 @@ - - - Offer SMTP support via net-libs/libesmtp - + + + Offer SMTP support via net-libs/libesmtp + + + apache/logging-log4cxx + -- cgit v1.2.3