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

Contents of /dev-python/pyzor/pyzor-0.5.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Tue Jul 27 16:40:35 2010 UTC (10 years ago) by arfrever
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Delete older ebuild.

1 # Copyright 1999-2009 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.5.0.ebuild,v 1.8 2009/08/14 14:54:24 armin76 Exp $
4
5 EAPI="2"
6
7 inherit distutils eutils
8
9 DESCRIPTION="A distributed, collaborative spam detection and filtering network"
10 HOMEPAGE="http://pyzor.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
16 IUSE="pyzord"
17
18 DEPEND="dev-lang/python[gdbm]"
19 RDEPEND="${DEPEND}"
20
21 src_prepare() {
22 epatch "${FILESDIR}/pyzord_getopt.patch"
23
24 # rfc822BodyCleanerTest doesn't work fine.
25 # Remove it until it's fixed.
26 sed -i \
27 -e '/rfc822BodyCleanerTest/,/self\.assertEqual/d' \
28 unittests.py || die "sed in unittest.py failed"
29 }
30
31 src_install () {
32 DOCS="INSTALL THANKS UPGRADING"
33 distutils_src_install
34 dohtml docs/usage.html
35 rm -rf "${D}/usr/share/doc/pyzor"
36
37 if use pyzord; then
38 dodir /usr/sbin
39 mv "${D}/usr/bin/pyzord" "${D}/usr/sbin/"
40 fi
41 }
42
43 pkg_postinst() {
44 if use pyzord; then
45 ewarn "/usr/bin/pyzord has been moved to /usr/sbin"
46 fi
47 }
48
49 src_test() {
50 PYTHONPATH=build/lib/ "${python}" unittests.py || die "tests failed"
51 }

  ViewVC Help
Powered by ViewVC 1.1.20