summaryrefslogtreecommitdiff
blob: 8f47f102d3c017d39f2076b82e9568f8cc922efc (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/reverend/reverend-0.3.ebuild,v 1.2 2008/12/31 03:22:30 mr_bones_ Exp $

inherit distutils

MY_P=R${P#r}

DESCRIPTION="Reverend - Simple Bayesian classifier"
SRC_URI="mirror://sourceforge/reverend/${MY_P}.tar.gz"
HOMEPAGE="http://divmod.org/trac/wiki/DivmodReverend"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"

DEPEND="virtual/python"

DOCS="README.txt changelog.txt"
S="${WORKDIR}/${MY_P}"

src_unpack() {
	distutils_src_unpack
	epatch "${FILESDIR}/${P}-email.patch"
}

src_install() {
	distutils_src_install

	if use examples; then
		insinto /usr/share/doc/${PF}/examples
		doins examples/*
	fi
}