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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Mon Jan 26 13:53:52 2015 UTC (5 years, 6 months ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key )

1 # Copyright 1999-2010 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-r1.ebuild,v 1.7 2010/07/27 16:49:25 arfrever Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7 PYTHON_USE_WITH="gdbm"
8 PYTHON_USE_WITH_OPT="pyzord"
9 SUPPORT_PYTHON_ABIS="1"
10 RESTRICT_PYTHON_ABIS="3.*"
11
12 inherit distutils eutils
13
14 DESCRIPTION="A distributed, collaborative spam detection and filtering network"
15 HOMEPAGE="http://pyzor.sourceforge.net/"
16 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
17
18 LICENSE="GPL-2"
19 SLOT="0"
20 KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
21 IUSE="pyzord"
22
23 DEPEND=""
24 RDEPEND=""
25
26 DOCS="THANKS UPGRADING"
27
28 src_prepare() {
29 epatch "${FILESDIR}/pyzord_getopt.patch"
30
31 # rfc822BodyCleanerTest doesn't work fine.
32 # Remove it until it's fixed.
33 sed -i \
34 -e '/rfc822BodyCleanerTest/,/self\.assertEqual/d' \
35 unittests.py || die "sed in unittest.py failed"
36 }
37
38 src_test() {
39 testing() {
40 PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" unittests.py
41 }
42 python_execute_function testing
43 }
44
45 src_install () {
46 distutils_src_install
47
48 dohtml docs/usage.html
49 rm -rf "${ED}usr/share/doc/pyzor"
50
51 if use pyzord; then
52 dodir /usr/sbin
53 mv "${ED}"usr/bin/pyzord* "${ED}usr/sbin"
54 else
55 rm "${ED}"usr/bin/pyzord*
56 fi
57 }
58
59 pkg_postinst() {
60 distutils_pkg_postinst
61
62 if use pyzord; then
63 ewarn "/usr/bin/pyzord has been moved to /usr/sbin"
64 fi
65 }

  ViewVC Help
Powered by ViewVC 1.1.20