summaryrefslogtreecommitdiff
blob: 425d0e53ac0d2e50651b2546474d05823279361f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/btail/btail-0.2.ebuild,v 1.5 2008/12/30 19:33:14 angelos Exp $

inherit eutils toolchain-funcs

DESCRIPTION="Bayesian logfile filter"
HOMEPAGE="http://www.vanheusden.com/btail/"
SRC_URI="${HOMEPAGE}/${P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE=""

DEPEND="sys-libs/gdbm"

src_unpack() {
	unpack ${A}
	sed -i -e "/^LDFLAGS/s/$/ ${LDFLAGS}/" "${S}"/Makefile
}

src_compile() {
	emake CFLAGS="${CFLAGS}" \
		CXXFLAGS="${CXXFLAGS}" \
		CC="$(tc-getCC)" \
		CXX="$(tc-getCXX)" \
		|| die "emake failed"
}

src_install() {
	dobin blearn || die
	dobin btail || die

	dodoc readme.txt || die
	dodoc btail.conf || die
	dodoc license.txt || die
}