# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Bayesian spam filter designed with fast algorithms, and tuned for speed." HOMEPAGE="http://www.tuxedo.org/~esr/bogofilter/" SRC_URI="http://www.tuxedo.org/~esr/bogofilter/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="virtual/glibc >=sys-libs/db-3* dev-libs/judy" S="${WORKDIR}/${P}" src_unpack() { unpack ${A} cd ${S} cp -a Makefile Makefile-hacked # Let's force our customs CFLAGS sed -e 's:^CFLAGS = :#CFLAGS = :' \ Makefile-hacked > Makefile rm -f Makefile-hacked # It seems the last change in bogofilter terms for good and bad mail, # which also changed command line options, were not reflected in the # man pages. This fixes it: cp -a bogofilter.1 bogofilter.1-outdated sed -e 's:-n:-h:' -e 's:-N:-H:' \ bogofilter.1-outdated > bogofilter.1 rm -f bogofilter.1-outdated } src_compile() { emake || die } src_install() { exeinto /usr/bin doexe bogofilter doman bogofilter.1 dodoc NEWS README TODO einfo "Read bogofilter's manual 'man bogofilter' for tips on how" einfo "to integrate bogofilter with procmail and/or mutt." einfo "" einfo "The former being highly desirable to install in order to" einfo "fully use bogofilter." }