# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A log analyser for email, www, firewall, proxy and other logs" HOMEPAGE="http://logreport.org/lire/" SRC_URI=""http://download.logreport.org/pub/${P}.tar.gz"" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="pdf gd berkdb" DEPEND=">=dev-libs/expat-1.9* >=dev-lang/perl-5.6.1 >=dev-perl/XML-Parser-2.29 >=dev-perl/DBD-SQLite2-0.33 dev-perl/DBI dev-perl/Curses-UI dev-perl/libintl-perl perl-core/Digest-MD5 dev-perl/MIME-tools >=dev-libs/libxslt-1.0.10 >=app-text/docbook-xml-dtd-4.1.2 >=app-text/docbook-xsl-stylesheets-1.62.0 pdf? ( app-text/openjade app-text/docbook-dsssl-stylesheets >=app-text/jadetex-3.12 ) gd? ( dev-perl/GDGraph ) berkdb? ( perl-core/DB_File )" RDEPEND="" src_compile() { # Most of the dependencies are handled correctly at runtime. The # only one that needs a Makefile fix is HASJADE, and unfortunately # the ./configure script isn't smart enough to handle this as an # option. if [ `use pdf` ] ; then JADEOPTIONS="yes" else JADEOPTIONS="no" fi find ${S} -name Makefile.in -exec sed -i '{}' \ -e "s:^HASJADE = @.*@\$:HASJADE = ${JADEOPTIONS}:" \ -e "s:^HASPDFJADETEX = @.*@\$:HASPDFJADETEX = ${JADEOPTIONS}:" ';' econf || die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR=${D} install || die "make install failed" dodoc AUTHORS NEWS README README.lire-client THANKS VERSION }