/[gentoo-x86]/mail-filter/bmf/bmf-0.9.4-r1.ebuild
Gentoo

Contents of /mail-filter/bmf/bmf-0.9.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Feb 24 20:47:58 2012 UTC (2 years, 6 months ago) by ranger
Branch: MAIN
Changes since 1.2: +2 -2 lines
Marking bmf-0.9.4-r1 ppc for bug 404775

(Portage version: 2.1.10.11/cvs/Linux ppc64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/mail-filter/bmf/bmf-0.9.4-r1.ebuild,v 1.2 2012/02/24 14:48:04 phajdan.jr Exp $
4
5 EAPI=4
6 inherit toolchain-funcs
7
8 IUSE="mysql berkdb"
9
10 DESCRIPTION="A fast and small Bayesian spam filter"
11 HOMEPAGE="http://bmf.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/bmf/${P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ppc x86"
17
18 DEPEND="mysql? ( virtual/mysql )
19 berkdb? ( >=sys-libs/db-3.2.9 )"
20 RDEPEND="${DEPEND}"
21
22 src_prepare() {
23 # respect CFLAGS
24 sed -i -e '/D_LINUX/s/CFLAGS="$CCDBG/CFLAGS+=" $CCDBG/' \
25 "${S}/configure" || die
26 }
27
28 src_configure() {
29 # this is not an autotools script
30 ./configure \
31 $(use_with mysql) \
32 $(use_with berkdb libdb)
33 }
34
35 src_compile() {
36 emake CC="$(tc-getCC)"
37 }
38
39 src_install() {
40 emake DESTDIR="${D}" install
41 dodoc README AUTHORS ChangeLog
42 }
43
44 pkg_postinst() {
45 elog
46 elog "Important: Remember to train bmf before you start using it."
47 elog "See the README file for further instructions on training and using bmf"
48 elog "with procmail."
49 elog
50 }

  ViewVC Help
Powered by ViewVC 1.1.20