# $Id: Portfile,v 1.6 2005/09/29 06:47:20 mww Exp $

PortSystem 1.0
name		bogofilter
version		0.95.2
categories	mail
maintainers	darwinports@opendarwin.org
description	Fast Bayesian Spam Filter
homepage	http://bogofilter.sourceforge.net/
long_description 	Bogofilter is a mail filter that classifies mail as spam or\
		 	ham (non-spam) by a statistical analysis of the message's\
		 	header and content (body). The program is able to learn from\
		 	the user's classifications and corrections.
master_sites	sourceforge
checksums	md5 43da78d185f6a206923e6fb8e50c6fe7
use_bzip2	yes
depends_lib	port:sqlite3 port:libiconv port:gsl
configure.args	--with-libsqlite3-prefix=${prefix} \
		--with-libiconv-prefix=${prefix} \
		--with-gsl-prefix=${prefix} \
		--with-database=sqlite \
		--without-libdb-prefix \
		--without-libqdbm-prefix \
		--without-libtdb-prefix \
		--mandir=${prefix}/share/man

platform darwin 8 {
	configure.env	CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}

post-destroot	{
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING GETTING.STARTED INSTALL \
		NEWS README RELEASE.NOTES TODO ${destroot}${prefix}/share/doc/${name}
}
