diff options
Diffstat (limited to 'dev-libs/log4cpp/log4cpp-0.3.5_rc3.ebuild')
-rw-r--r-- | dev-libs/log4cpp/log4cpp-0.3.5_rc3.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-libs/log4cpp/log4cpp-0.3.5_rc3.ebuild b/dev-libs/log4cpp/log4cpp-0.3.5_rc3.ebuild new file mode 100644 index 000000000000..ca2c8e732506 --- /dev/null +++ b/dev-libs/log4cpp/log4cpp-0.3.5_rc3.ebuild @@ -0,0 +1,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 +} |