diff options
Diffstat (limited to 'app-misc/btail/btail-0.3.ebuild')
-rw-r--r-- | app-misc/btail/btail-0.3.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/app-misc/btail/btail-0.3.ebuild b/app-misc/btail/btail-0.3.ebuild new file mode 100644 index 000000000000..f71b4bd9c0cb --- /dev/null +++ b/app-misc/btail/btail-0.3.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs + +DESCRIPTION="Bayesian logfile filter" +HOMEPAGE="http://www.vanheusden.com/btail/" +SRC_URI="${HOMEPAGE}/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="sys-libs/gdbm" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i Makefile \ + -e '/^LDFLAGS/s:=:+=:g' \ + -e '/$(CC)/s:-Wall:$(CFLAGS) &:g' \ + || die + sed -i conf.cpp \ + -e '/Configline/s:):, line):g' \ + || die +} + +src_compile() { + emake \ + CFLAGS="${CFLAGS}" \ + CXXFLAGS="${CXXFLAGS}" \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" +} + +src_install() { + dobin blearn btail + dodoc readme.txt btail.conf license.txt +} |