blob: ca2c8e7325061e4647a6ae9e04c69cc14d8a0001 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4cpp/log4cpp-0.3.5_rc3.ebuild,v 1.1 2006/10/18 19:45:22 dev-zero Exp $
inherit eutils
KEYWORDS="~x86 ~ppc ~amd64 ~s390"
MY_P=${P/_}
DESCRIPTION="library of C++ classes for flexible logging to files, syslog, IDSA and other destinations"
HOMEPAGE="http://log4cpp.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
IUSE="doc threads"
DEPEND="doc? ( app-doc/doxygen )"
RDEPEND=""
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PV}-namespace_semikolon.patch"
# We have to fix it directly in Makefile.in to avoid
# loosing configuration-options
cd "${S}/doc"
sed -i \
-e 's#$(man3dir)#$(DESTDIR)/$(man3dir)#' \
-e 's#$(docdir)#$(DESTDIR)/$(docdir)/html#' \
-e "s#^docdir =.*#docdir = /usr/share/doc/${PF}#" \
Makefile.in || die "sed failed"
}
src_compile() {
econf \
--without-omnithreads \
--without-idsa \
$(use_with threads pthreads) \
$(use_enable doc doxygen) \
|| die "econf failed"
emake || die "emake failed"
}
src_install () {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog NEWS README THANKS TODO
}
|