Gentoo Archives: gentoo-commits

From: "Torsten Veller (tove)" <tove@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-filter/bogofilter: ChangeLog bogofilter-1.2.1.ebuild
Date: Sun, 02 Aug 2009 07:51:19
Message-Id: E1MXVqe-0003sx-16@stork.gentoo.org
1 tove 09/08/02 07:51:16
2
3 Modified: ChangeLog
4 Added: bogofilter-1.2.1.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.120 mail-filter/bogofilter/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/bogofilter/ChangeLog?rev=1.120&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/bogofilter/ChangeLog?rev=1.120&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/bogofilter/ChangeLog?r1=1.119&r2=1.120
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/mail-filter/bogofilter/ChangeLog,v
19 retrieving revision 1.119
20 retrieving revision 1.120
21 diff -u -r1.119 -r1.120
22 --- ChangeLog 2 May 2009 14:48:26 -0000 1.119
23 +++ ChangeLog 2 Aug 2009 07:51:15 -0000 1.120
24 @@ -1,6 +1,11 @@
25 # ChangeLog for mail-filter/bogofilter
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/bogofilter/ChangeLog,v 1.119 2009/05/02 14:48:26 tove Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/bogofilter/ChangeLog,v 1.120 2009/08/02 07:51:15 tove Exp $
29 +
30 +*bogofilter-1.2.1 (02 Aug 2009)
31 +
32 + 02 Aug 2009; Torsten Veller <tove@g.o> +bogofilter-1.2.1.ebuild:
33 + Version bump
34
35 02 May 2009; Torsten Veller <tove@g.o> -bogofilter-1.1.7.ebuild:
36 Cleanup
37
38
39
40 1.1 mail-filter/bogofilter/bogofilter-1.2.1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/bogofilter/bogofilter-1.2.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/bogofilter/bogofilter-1.2.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: bogofilter-1.2.1.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/mail-filter/bogofilter/bogofilter-1.2.1.ebuild,v 1.1 2009/08/02 07:51:15 tove Exp $
50
51 inherit db-use flag-o-matic
52
53 DESCRIPTION="Bayesian spam filter designed with fast algorithms, and tuned for speed."
54 HOMEPAGE="http://bogofilter.sourceforge.net/"
55 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
56
57 LICENSE="GPL-2"
58 SLOT="0"
59 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
60 IUSE="berkdb sqlite"
61
62 DEPEND="virtual/libiconv
63 berkdb? ( >=sys-libs/db-3.2 )
64 !berkdb? (
65 sqlite? ( >=dev-db/sqlite-3.5.4 )
66 !sqlite? ( >=sys-libs/db-3.2 ) )
67 sci-libs/gsl"
68 # app-arch/pax" # only needed for bf_tar
69
70 src_compile() {
71 local myconf="" berkdb=true
72 myconf="--without-included-gsl"
73
74 # determine backend: berkdb *is* default
75 if use berkdb && use sqlite ; then
76 elog "Both useflags berkdb and sqlite are in USE:"
77 elog "Using berkdb as database backend."
78 elif use sqlite ; then
79 myconf="${myconf} --with-database=sqlite"
80 berkdb=false
81 elif ! use berkdb ; then
82 elog "Neither berkdb nor sqlite are in USE:"
83 elog "Using berkdb as database backend."
84 fi
85
86 # Include the right berkdb headers for FreeBSD
87 if ${berkdb} ; then
88 append-flags "-I$(db_includedir)"
89 fi
90
91 econf ${myconf} || die "configure failed"
92 emake || die "emake failed"
93 }
94
95 src_install() {
96 emake DESTDIR="${D}" install || die "make install failed"
97
98 exeinto /usr/share/${PN}/contrib
99 doexe contrib/{bogofilter-qfe,parmtest,randomtrain}.sh \
100 contrib/{bfproxy,bogominitrain,mime.get.rfc822,printmaildir}.pl \
101 contrib/{spamitarium,stripsearch}.pl || die "doexec failed"
102
103 insinto /usr/share/${PN}/contrib
104 doins contrib/{README.*,dot-qmail-bogofilter-default} \
105 contrib/{bogogrep.c,bogo.R,bogofilter-milter.pl,*.example} \
106 contrib/vm-bogofilter.el \
107 contrib/{trainbogo,scramble}.sh || die "doins failed"
108
109 dodoc AUTHORS NEWS README RELEASE.NOTES* TODO GETTING.STARTED \
110 doc/integrating-with-* doc/README.{db,sqlite} || die "dodoc failed"
111
112 dohtml doc/*.html
113
114 dodir /usr/share/doc/${PF}/samples
115 mv "${D}"/etc/bogofilter.cf.example "${D}"/usr/share/doc/${PF}/samples/
116 rmdir "${D}"/etc
117 }
118
119 pkg_postinst() {
120 echo
121 elog "If you need \"${ROOT}usr/bin/bf_tar\" please install app-arch/pax."
122 echo
123 }