2022-04-06 09:06:56 +02:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2013-11-22 17:01:27 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2024-12-20 10:29:06 +01:00
|
|
|
EAPI=8
|
2013-11-22 17:01:27 +01:00
|
|
|
|
2024-12-20 10:29:06 +01:00
|
|
|
inherit autotools
|
2013-11-22 17:01:27 +01:00
|
|
|
|
|
|
|
DESCRIPTION="Log4c is a library of C for flexible logging to files, syslog and other destinations"
|
|
|
|
HOMEPAGE="http://log4c.sourceforge.net/"
|
|
|
|
SRC_URI="mirror://sourceforge/log4c/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="LGPL-2.1"
|
|
|
|
SLOT="0"
|
2013-11-22 17:04:55 +01:00
|
|
|
KEYWORDS="~amd64 ~arm x86"
|
2013-11-22 17:01:27 +01:00
|
|
|
IUSE="debug doc examples +expat +pic static"
|
|
|
|
|
|
|
|
RDEPEND="media-gfx/graphviz
|
|
|
|
expat? ( dev-libs/expat )"
|
|
|
|
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
doc? ( app-doc/doxygen )"
|
|
|
|
|
2024-12-20 10:29:06 +01:00
|
|
|
|
|
|
|
rc_prepare() {
|
|
|
|
eapply ${FILESDIR}/log4c-socket.patch
|
|
|
|
eautoreconf
|
|
|
|
eapply_user
|
2013-11-22 17:01:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local myconf
|
|
|
|
myconf="${myconf} --disable-expattest"
|
|
|
|
|
|
|
|
econf \
|
|
|
|
$(use_enable doc doxygen) \
|
|
|
|
$(use_with pic) \
|
|
|
|
$(use_with amd64 pic ) \
|
|
|
|
$(use_enable static) \
|
|
|
|
$(use_enable debug) \
|
|
|
|
$(use_enable expat) \
|
|
|
|
${myconf} || die "configure failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
emake || die "make failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake DESTDIR="${D}" install || die "install failed"
|
|
|
|
|
|
|
|
dodoc AUTHORS ChangeLog NEWS README TODO
|
|
|
|
|
|
|
|
if use examples; then
|
|
|
|
insinto "/usr/share/doc/${PF}/examples"
|
|
|
|
doins -r examples/*
|
|
|
|
fi
|
|
|
|
}
|