blob: 1179587a94183c476cc6c2a83631a26c53413969 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4cxx/log4cxx-0.10.0.ebuild,v 1.10 2010/02/25 09:53:49 ssuominen Exp $
EAPI=2
inherit eutils
MY_P=apache-${P}
DESCRIPTION="Library of C++ classes for flexible logging to files, syslog and other destinations"
HOMEPAGE="http://logging.apache.org/log4cxx/"
SRC_URI="mirror://apache/logging/${PN}/${PV}/${MY_P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~ppc-macos"
IUSE="iodbc unicode odbc smtp"
DEPEND="dev-libs/apr:1
dev-libs/apr-util:1
odbc? (
iodbc? ( >=dev-db/libiodbc-3.52.4 )
!iodbc? ( dev-db/unixODBC ) )
smtp? ( net-libs/libesmtp )"
S=${WORKDIR}/${MY_P}
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_prepare() {
epatch "${FILESDIR}"/${PV}-missing_includes.patch \
"${FILESDIR}"/${P}-gcc44.patch \
"${FILESDIR}"/${P}-unixODBC.patch
}
src_configure() {
local myconf
use smtp && myconf="${myconf} --with-SMTP=libesmtp"
if use odbc; then
if use iodbc; then
myconf="${myconf} --with-ODBC=iODBC"
else
myconf="${myconf} --with-ODBC=unixODBC"
fi
fi
use unicode && myconf="${myconf} --with-charset=utf-8"
econf \
--disable-doxygen \
--disable-html-docs \
${myconf}
}
src_install() {
emake DESTDIR="${D}" install || die
dohtml -r site/*
insinto /usr/share/doc/${PF}/examples
doins src/examples/cpp/*.cpp
}
|