1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Library of C++ classes for logging to files, syslog and other destinations"
9 HOMEPAGE="http://logging.apache.org/log4cxx/"
10 SRC_URI="mirror://apache/logging/${PN}/${PV}/${MY_P}.tar.gz"
14 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~ppc-macos"
15 IUSE="iodbc unicode odbc smtp"
17 RDEPEND="dev-libs/apr:1
20 iodbc? ( >=dev-db/libiodbc-3.52.4 )
21 !iodbc? ( dev-db/unixODBC ) )
22 smtp? ( net-libs/libesmtp )"
25 S="${WORKDIR}/${MY_P}"
32 "${FILESDIR}/${PN}-0.10.0-missing_includes.patch"
33 "${FILESDIR}/${PN}-0.10.0-gcc44.patch"
34 "${FILESDIR}/${PN}-0.10.0-unixODBC.patch"
35 "${FILESDIR}/${PN}-0.10.0-fix-c++14.patch"
39 if use iodbc && ! use odbc; then
40 elog "Please enable the odbc USE-flag as well if you want odbc-support through iodbc."
48 --with-apr-util="${SYSROOT}${EPREFIX}/usr" \
49 $(use_with smtp SMTP libesmtp) \
50 $(use_with odbc ODBC $(usex iodbc iODBC unixODBC)) \
51 --with-charset=$(usex unicode utf-8 auto)
58 dodoc src/examples/cpp/*.cpp
59 docompress -x /usr/share/doc/${PF}/examples
61 # package provides .pc files
62 find "${D}" -name '*.la' -delete || die