You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.5 KiB
65 lines
1.5 KiB
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
13 years ago
|
|
||
8 years ago
|
EAPI=6
|
||
13 years ago
|
|
||
|
MY_P=apache-${P}
|
||
|
|
||
8 years ago
|
DESCRIPTION="Library of C++ classes for logging to files, syslog and other destinations"
|
||
13 years ago
|
HOMEPAGE="http://logging.apache.org/log4cxx/"
|
||
|
SRC_URI="mirror://apache/logging/${PN}/${PV}/${MY_P}.tar.gz"
|
||
|
|
||
|
LICENSE="Apache-2.0"
|
||
|
SLOT="0"
|
||
9 years ago
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~ppc-macos"
|
||
13 years ago
|
IUSE="iodbc unicode odbc smtp"
|
||
|
|
||
8 years ago
|
RDEPEND="dev-libs/apr:1
|
||
13 years ago
|
dev-libs/apr-util:1
|
||
|
odbc? (
|
||
|
iodbc? ( >=dev-db/libiodbc-3.52.4 )
|
||
|
!iodbc? ( dev-db/unixODBC ) )
|
||
|
smtp? ( net-libs/libesmtp )"
|
||
8 years ago
|
DEPEND="${RDEPEND}"
|
||
13 years ago
|
|
||
8 years ago
|
S="${WORKDIR}/${MY_P}"
|
||
|
|
||
|
# test suite fails
|
||
|
RESTRICT="test"
|
||
|
|
||
|
HTML_DOCS=( site/. )
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}/${PN}-0.10.0-missing_includes.patch"
|
||
|
"${FILESDIR}/${PN}-0.10.0-gcc44.patch"
|
||
|
"${FILESDIR}/${PN}-0.10.0-unixODBC.patch"
|
||
|
"${FILESDIR}/${PN}-0.10.0-fix-c++14.patch"
|
||
|
)
|
||
13 years ago
|
|
||
|
pkg_setup() {
|
||
|
if use iodbc && ! use odbc; then
|
||
|
elog "Please enable the odbc USE-flag as well if you want odbc-support through iodbc."
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
--disable-doxygen \
|
||
|
--disable-html-docs \
|
||
9 years ago
|
--with-apr-util="${SYSROOT:-${EPREFIX}}/usr" \
|
||
8 years ago
|
$(use_with smtp SMTP libesmtp) \
|
||
|
$(use_with odbc ODBC $(usex iodbc iODBC unixODBC)) \
|
||
|
--with-charset=$(usex unicode utf-8 auto)
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
8 years ago
|
default
|
||
|
|
||
|
docinto examples
|
||
|
dodoc src/examples/cpp/*.cpp
|
||
|
docompress -x /usr/share/doc/${PF}/examples
|
||
13 years ago
|
|
||
8 years ago
|
# package provides .pc files
|
||
|
find "${D}" -name '*.la' -delete || die
|
||
13 years ago
|
}
|