summaryrefslogtreecommitdiff
blob: 3e1fe8858896080c63fe7e00808a6da20b77cb1a (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
# Copyright 1999-2007 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.3 2007/07/02 14:14:51 peper Exp $

inherit eutils

DESCRIPTION="Bayesian logfile filter"
HOMEPAGE="http://www.vanheusden.com/btail/"
SRC_URI="${HOMEPAGE}/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE=""
#RESTRICT="strip"

DEPEND="sys-libs/gdbm"
#RDEPEND=""

src_unpack() {
	unpack ${A}; cd ${S}

	sed -i -e 1iCXX=$(tc-getCXX) \
		-e "s,^\(CXXFLAGS=\).*$,\1${CXXFLAGS}," \
		-e "s,^\(LDFLAGS=\),&${LDFLAGS} ," \
		-e "s,\$(CC) -Wall -W,$(tc-getCXX)," \
		Makefile
}

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

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