/[gentoo-x86]/dev-python/pyzor/pyzor-0.4.0-r2.ebuild
Gentoo

Contents of /dev-python/pyzor/pyzor-0.4.0-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Fri Jul 6 19:20:16 2007 UTC (13 years, 1 month ago) by lucass
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
Dropped old version.
(Portage version: 2.1.3_rc6)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/pyzor/pyzor-0.4.0-r2.ebuild,v 1.12 2007/07/01 22:02:47 hawking Exp $
4
5 inherit distutils eutils
6
7 DESCRIPTION="A distributed, collaborative spam detection and filtering network"
8 HOMEPAGE="http://pyzor.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
14 IUSE=""
15
16 DEPEND="virtual/python
17 sys-libs/gdbm"
18
19 src_unpack() {
20 unpack ${A}
21 cd "${S}"
22
23 epatch "${FILESDIR}/debian_mbox.patch"
24 epatch "${FILESDIR}/handle_unknown_encodings.patch"
25 epatch "${FILESDIR}/unknown_type.patch"
26
27 # rfc822BodyCleanerTest doesn't work fine
28 # remove it until it's fixed
29 sed -i \
30 -e '/rfc822BodyCleanerTest/,/self\.assertEqual/d' \
31 unittests.py || die "sed in unittest.py failed"
32 }
33
34 src_install () {
35 DOCS="INSTALL THANKS UPGRADING"
36 distutils_src_install
37 dohtml docs/usage.html
38 rm -rf "${D}/usr/share/doc/pyzor"
39 fperms 755 /usr/bin/pyzor*
40 dodir /usr/sbin
41 mv "${D}/usr/bin/pyzord" "${D}/usr/sbin/"
42 }
43
44 pkg_postinst() {
45 ewarn "/usr/bin/pyzord has been moved to /usr/sbin"
46 }
47
48 src_test() {
49 PYTHONPATH=build/lib/ "${python}" unittests.py || die "tests failed"
50 }

  ViewVC Help
Powered by ViewVC 1.1.20