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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Thu Jul 8 16:25:41 2010 UTC (4 years, 2 months ago) by hwoarang
Branch: MAIN
Changes since 1.10: +5 -3 lines
Make it respect CC variable wrt bug #244138
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.ebuild,v 1.10 2009/07/11 16:24:28 tove Exp $
4
5 inherit toolchain-funcs
6
7 IUSE="mysql berkdb"
8
9 DESCRIPTION="A fast and small Bayesian spam filter"
10 HOMEPAGE="http://bmf.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/bmf/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 x86 ppc"
16
17 DEPEND="mysql? ( virtual/mysql )
18 berkdb? ( >=sys-libs/db-3.2.9 )"
19
20 src_compile() {
21 local myconf
22
23 use mysql || myconf="--without-mysql"
24 use berkdb || myconf="${myconf} --without-libdb"
25
26 ./configure ${myconf} || die "configure failed"
27 emake CC="$(tc-getCC)"
28 }
29
30 src_install() {
31 dodoc README AUTHORS ChangeLog
32 einstall DESTDIR="${D}"
33 }
34
35 pkg_postinst() {
36 elog
37 elog "Important: Remember to train bmf before you start using it."
38 elog "See the README file for further instructions on training and using bmf"
39 elog "with procmail."
40 elog
41 }

  ViewVC Help
Powered by ViewVC 1.1.20