Сравнение log4cxx-0.11.0 с log4cxx-1.0.0

/usr/portage/dev-libs/log4cxx/log4cxx-1.0.0.ebuild 2023-10-09 14:52:29.536368351 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
5
inherit autotools
4
EAPI=8
6 5

  
7
MY_P=apache-${P}
6
inherit cmake
8 7

  
8
MY_P=apache-${P}
9 9
DESCRIPTION="Library of C++ classes for logging to files, syslog and other destinations"
10 10
HOMEPAGE="https://logging.apache.org/log4cxx/"
11 11
SRC_URI="mirror://apache/logging/${PN}/${PV}/${MY_P}.tar.gz"
12
S="${WORKDIR}/${MY_P}"
12 13

  
13 14
LICENSE="Apache-2.0"
14
SLOT="0"
15
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~ppc-macos"
16
IUSE="iodbc unicode odbc smtp"
17
REQUIRED_USE="iodbc? ( !odbc )"
18
# test suite fails
19
RESTRICT="test"
15
SLOT="0/15"
16
KEYWORDS="amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86"
17
IUSE="odbc smtp test"
18
RESTRICT="!test? ( test )"
20 19

  
21 20
RDEPEND="
22 21
	dev-libs/apr:1=
23 22
	dev-libs/apr-util:1=
24
	odbc? (
25
		iodbc? ( >=dev-db/libiodbc-3.52.4 )
26
		!iodbc? ( dev-db/unixODBC )
27
	)
28
	smtp? ( net-libs/libesmtp )"
23
	dev-libs/libfmt:=
24
	odbc? ( dev-db/unixODBC )
25
	smtp? ( net-libs/libesmtp )
26
"
29 27
DEPEND="${RDEPEND}"
30

  
31
S="${WORKDIR}/${MY_P}"
28
BDEPEND="
29
	app-arch/zip
30
	test? (
31
		app-alternatives/gzip
32
		app-arch/zip
33
	)
34
"
32 35

  
33 36
src_prepare() {
34
	default
35
	eautoreconf
36
}
37
	# https://github.com/apache/logging-log4cxx/issues/189
38
	if ! use odbc ; then
39
		sed -i -e 's:pkg_check_modules( odbc QUIET odbc ):pkg_check_modules( odbc QUIET odbcDoNotFindMe ):' src/main/include/CMakeLists.txt || die
40
	fi
41

  
42
	if ! use smtp ; then
43
		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
44
	fi
37 45

  
38
src_configure() {
39
	econf \
40
		--disable-static \
41
		--disable-doxygen \
42
		--disable-html-docs \
43
		--with-apr-util="${ESYSROOT}"/usr \
44
		$(use_with smtp SMTP libesmtp) \
45
		$(use_with odbc ODBC $(usex iodbc iODBC unixODBC)) \
46
		--with-charset=$(usex unicode utf-8 auto)
46
	cmake_src_prepare
47 47
}
48 48

  
49
src_install() {
50
	default
51

  
52
	docinto examples
53
	dodoc src/examples/cpp/*.cpp
54
	docompress -x /usr/share/doc/${PF}/examples
49
src_configure() {
50
	local mycmakeargs=(
51
		-DENABLE_FMT_LAYOUT=ON
52
		-DLOG4CXX_QT_SUPPORT=OFF
53
	)
55 54

  
56
	# package provides .pc files
57
	find "${ED}" -name '*.la' -delete || die
55
	cmake_src_configure
58 56
}
Спасибо!