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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Jun 8 11:37:58 2012 UTC (2 years, 6 months ago) by phajdan.jr
Branch: MAIN
Changes since 1.3: +2 -2 lines
x86 stable wrt bug #419015

(Portage version: 2.1.10.49/cvs/Linux i686)

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-r2.ebuild,v 1.3 2012/06/07 21:44:28 ranger Exp $
4
5 EAPI=4
6 inherit toolchain-funcs eutils
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 # include mysql headers
28 sed -i -e '/HAVE_MYSQL/s/HAVE_MYSQL/HAVE_MYSQL `mysql_config --include`/' \
29 "${S}/configure" || die
30
31 epatch "${FILESDIR}/${P}_QA.patch"
32 }
33
34 src_configure() {
35 # this is not an autotools script
36 ./configure \
37 $(use_with mysql) \
38 $(use_with berkdb libdb) || die
39 }
40
41 src_compile() {
42 emake CC="$(tc-getCC)"
43 }
44
45 src_install() {
46 emake DESTDIR="${D}" install
47 dodoc README AUTHORS ChangeLog
48 }
49
50 pkg_postinst() {
51 elog
52 elog "Important: Remember to train bmf before you start using it."
53 elog "See the README file for further instructions on training and using bmf"
54 elog "with procmail."
55 elog
56 }

  ViewVC Help
Powered by ViewVC 1.1.20