# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils KEYWORDS="~x86" #MY_P=${P/_} DESCRIPTION="library of C++ classes for flexible logging to files, syslog, IDSA and other destinations, Internet2 version for OpenSAML" #HOMEPAGE="http://log4cpp.sourceforge.net/" #SRC_URI="http://shibboleth.internet2.edu/downloads/${MY_P}.tar.gz" #HOMEPAGE="http://shibboleth.internet2.edu" HOMEPAGE="http://log4cpp.sourceforge.net/" SRC_URI="http://shibboleth.internet2.edu/downloads/log4shib/${PV}/${PN}-${PV}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" IUSE="doc threads" RESTRICT="mirror" 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" #} S=${WORKDIR}/log4shib-${PV} src_unpack() { unpack ${A} cd "${S}" } 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 }