b882f7955e
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/bongo@1820 6952d904-891a-0410-993b-d76249ca496b
48 lines
1.0 KiB
Bash
48 lines
1.0 KiB
Bash
# Copyright 1999-2009 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
EAPI="2"
|
|
|
|
inherit eutils autotools
|
|
|
|
DESCRIPTION="Log4c is a library of C for flexible logging to files, syslog and other destinations."
|
|
SRC_URI="mirror://sourceforge/log4c/${P}.tar.gz"
|
|
HOMEPAGE="http://log4c.sourceforge.net/"
|
|
|
|
SLOT="0"
|
|
LICENSE="LGPL-2.1"
|
|
KEYWORDS="~x86 ~sparc ~ppc ~amd64"
|
|
IUSE="doc static pic expat debug"
|
|
|
|
DEPEND="doc? ( >=app-doc/doxygen-1.2.15
|
|
virtual/tex-base
|
|
virtual/ghostscript )"
|
|
RDEPEND=">=media-gfx/graphviz-1.7.15-r2"
|
|
|
|
|
|
src_prepare() {
|
|
epatch ${FILESDIR}/log4c-fix-m4-quoting.patch
|
|
# eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
econf --enable-test \
|
|
$(use_with expat) \
|
|
$(use_with pic) \
|
|
$(use_with amd64 pic ) \
|
|
$(use_enable static) \
|
|
$(use_enable debug) \
|
|
$(use_enable doc) || die
|
|
}
|
|
|
|
src_test() {
|
|
# test case broken
|
|
#${S}/tests/log4c/test_rc || die "test_rc failed"
|
|
"${S}"/tests/log4c/test_category || die "test_rc failed"
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" install || die
|
|
}
|