blob: eeb244c6b0019937cae1fd5dfdcf8e554d65f861 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4cxx/log4cxx-0.9.7.ebuild,v 1.2 2004/12/23 17:09:36 ka0ttic Exp $
inherit eutils
DESCRIPTION="Library of C++ classes for flexible logging to files, syslog and other destinations"
HOMEPAGE="http://logging.apache.org/log4cxx/"
SRC_URI="http://www.apache.org/dist/logging/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~x86"
IUSE="doc unicode odbc smtp"
DEPEND="virtual/libc
dev-libs/libxml2
doc? ( app-doc/doxygen media-gfx/graphviz )
odbc? ( dev-db/unixODBC )
smtp? ( dev-libs/libsmtp )"
src_unpack() {
unpack ${A}
cd ${S}
sed -i "s:\(htmldir = \).*\(/html\):\1\$(datadir)/${PF}\2:" \
docs/Makefile.am || die "sed failed"
epatch ${FILESDIR}/${P}-gentoo.diff
}
src_compile() {
${S}/autogen.sh || die "autogen.sh failed"
# has cppunit support, but make check builds nothing...
local myconf="--disable-cppunit"
use doc && myconf="${myconf} --enable-doxygen --enable-dot
--enable-html-docs --enable-latex-docs" || \
myconf="${myconf} --disable-doxygen --disable-dot --disable-html-docs"
use smtp && myconf="${myconf} --with-SMTP=libsmtp"
# it's broken, so we must do this rather than use_enable
use unicode && myconf="${myconf} --enable-unicode"
econf \
$(use_with odbc ODBC) \
${myconf} || die "econf failed"
emake -j1 || die "emake failed"
}
src_install () {
make DESTDIR=${D} install || die "make install failed"
dodoc AUTHORS ChangeLog README
}
|