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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Aug 20 12:34:14 2014 UTC (5 years, 10 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Add ~ia64/~sparc wrt bug #510626

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xF6AD3240)

1 # Copyright 1999-2014 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.7.0.ebuild,v 1.2 2014/05/20 11:28:12 jer Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
7 PYHON_REQ_USE="gdbm"
8
9 inherit distutils-r1
10
11 DESCRIPTION="A distributed, collaborative spam detection and filtering network"
12 HOMEPAGE="http://pyzor.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~sparc ~x86 ~amd64-linux ~x86-linux"
18
19 IUSE="mysql pyzord redis test"
20
21 RDEPEND="mysql? ( $(python_gen_cond_dep '>=dev-python/mysql-python-1.2.5[${PYTHON_USEDEP}]' python2_7) )
22 redis? ( ~dev-python/redis-py-2.9.1[${PYTHON_USEDEP}] )"
23 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
24
25 # https://sourceforge.net/apps/trac/pyzor/attachment/ticket/196/
26 DISTUTILS_IN_SOURCE_BUILD=1
27
28 REQUIRED_USE="test? ( mysql redis )"
29
30 python_test() {
31 # https://sourceforge.net/apps/trac/pyzor/ticket/196
32 # In this ticket it clearly states the suite is written for py2
33 # While it's feasible to make it into a py3 ready state, nah
34 if ! python_is_python3; then
35 PYTHONPATH=. "${PYTHON}" ./tests/unit/__init__.py
36 fi
37 }
38
39 src_install () {
40 distutils-r1_src_install
41
42 if use pyzord; then
43 dodir /usr/sbin
44 mv "${ED}"usr/bin/pyzord* "${ED}usr/sbin"
45 else
46 rm "${ED}"usr/bin/pyzord*
47 fi
48 }
49
50 pkg_postinst() {
51 if use pyzord; then
52 ewarn "/usr/bin/pyzord has been moved to /usr/sbin"
53 fi
54
55 einfo "If you want to run the pyzor server you will need to emerge / re-emerge"
56 einfo "with use flag mysql and or redis. Without either flag provides only the pyzor client"
57 }

  ViewVC Help
Powered by ViewVC 1.1.20