new: mail-filter/pyzor
This commit is contained in:
parent
871afb027b
commit
a0c3985e2a
|
@ -0,0 +1 @@
|
|||
EBUILD pyzor-9999.ebuild 1887 BLAKE2B 783cd9f50107b9dc873d66ddd9957ed46783e0b1f4ce5cb99f728761674341fd9e53cd734036a058096ae3aa227f2e91a2f554d596cf193ff795b28c3b6775b8 SHA512 63cc579800864ea77040be5ff5c9253ea7de1e5e1162b3ffb15c1081190fcc14258579a5b5b9945f820acab8ec0c684bba9b6ef0e859dc420a398c90887abb6c
|
|
@ -0,0 +1,69 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_6 python3_7 python3_8 )
|
||||
inherit distutils-r1 git-r3
|
||||
|
||||
DESCRIPTION="A distributed, collaborative spam detection and filtering network"
|
||||
HOMEPAGE="https://github.com/SpamExperts/pyzor"
|
||||
EGIT_REPO_URI="https://github.com/SpamExperts/pyzor"
|
||||
EGIT_BRANCH="master"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
IUSE="doc gdbm gevent pyzord redis test"
|
||||
# The test suite is py2-only
|
||||
RESTRICT="test"
|
||||
|
||||
# The mysql-python library is always required for the MySQL engine. We
|
||||
# depend on it conditionally here because otherwise repoman will balk at
|
||||
# the potential conflict between PYTHON_TARGETS and USE=mysql. But as a
|
||||
# result, if you try to use the MySQL engine with python-3.x, it just
|
||||
# won't work because you'll be missing the library.
|
||||
RDEPEND="
|
||||
pyzord? (
|
||||
gdbm? ( $(python_gen_impl_dep 'gdbm') )
|
||||
redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
|
||||
gevent? ( dev-python/gevent[${PYTHON_USEDEP}] )
|
||||
)"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( ${RDEPEND} )"
|
||||
|
||||
# TODO: maybe upstream would support skipping tests for which the
|
||||
# dependencies are missing?
|
||||
REQUIRED_USE="pyzord? ( || ( gdbm redis ) )
|
||||
test? ( gdbm redis )"
|
||||
|
||||
#PATCHES=(
|
||||
# "${FILESDIR}/65.patch"
|
||||
#)
|
||||
|
||||
python_test() {
|
||||
PYTHONPATH=. "${PYTHON}" ./tests/unit/__init__.py
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( docs/.build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
if use pyzord; then
|
||||
dodir /usr/sbin
|
||||
mv "${D}"usr/bin/pyzord* "${ED}usr/sbin" \
|
||||
|| die "failed to relocate pyzord"
|
||||
else
|
||||
rm "${D}"usr/bin/pyzord* || die "failed to remove pyzord"
|
||||
fi
|
||||
}
|
Loading…
Reference in New Issue