mail-filter/pyzor: PYTHON_COMPAT python3_11
This commit is contained in:
parent
bc9bcbbfff
commit
11baee9c76
3 changed files with 74 additions and 2 deletions
|
@ -2,5 +2,6 @@ AUX 65.patch 1686 BLAKE2B c17a654af98c1493b343e18ebd9d4acebe0e7e4973cad021f50968
|
|||
AUX commit-2b8d76d6b86ea2e9076a9c34ffd4651909d214b7.diff 93440 BLAKE2B aadfba38cd6aec9f8b0f5af3a56fed6671567dd74e55a4591cee34ac413ddb7e683c6efa6f0363c98c97efd0ef3ad4da43397a2ddd2b6400a873c2553e06fdea SHA512 c2fb84bc30165e5aff98ddafdd65feeaf94c0f336c0ab2615b7dd1a2c20a8aa03ae4b26bc3b1deebd9e77493ff9b2b3b4fb8c41cab08db73f4fad576ff7bfef4
|
||||
DIST pyzor-1.0.0.tar.gz 126276 BLAKE2B c60f26c53bf118c88dacbc49ddd414473748af1868b383a9c937ecf3cfe426ecdd60f64388fe7e555bd4641ef445769600e40879279dd544ef9ea32bd0dab6b9 SHA512 b3fb8b2c5261e187a2ab3a5a3b12d221df7de08766c6bb2ad9990c0f23517534871ecc9d5ad529e79b0d0aef8b2b800728320c57435a8c0d8c3f80a4ba0f7e4a
|
||||
EBUILD pyzor-1.0.0-r21.ebuild 2037 BLAKE2B 8652a96a06e66b61f735def5a6310bb9fb8a17797dfa4773ffa58ddbb2fac7c8dd9f7931af64d1b15f682d958c149f095c3c0e50652f6db333103e65af784c49 SHA512 a304832ed1b61740491eaf7204467a4d7cc51ee2f6ed92e05cc1c794922542fc3336ac8d492acda6bec816ec4e5814b3a4dae194e0c3dcdac065f3b1db3a6e73
|
||||
EBUILD pyzor-9999.ebuild 1912 BLAKE2B a63cd7dcdbe7db1faa8f9a2b136731e75ce6a1655f2fe0238afe0382823234f10399b412cfe0b133edd01e11025296ea82cb3b53f6ff38ad2a5d93a0901cebbc SHA512 8ca237e53ed1798a1c4ff1af92a32b7156f6af552c7f2440a17b269c202ad2e613e2466ab6a63a9393c6f64fd84c1d25b0107ee045a48e63d5fec68adf92ce38
|
||||
EBUILD pyzor-1.0.0-r22.ebuild 2027 BLAKE2B 945fdd8f7c477338fa0c0075b7ce5c0e3aa88167e54b3e25db3c320a514997cb62eaf83231f0e4d99f068ceee3258e304e67ce8b2748d97cbf0eb3ced12c156a SHA512 49bb91d0e1f401d9a49eb3bf3ece35cc4a9ed1a4784c4271beb4f2a4b4bcde35a650c6a33cd55fc5136fba62f304aba63b01beb1073b8e7bc0f5a0d4f50fddbf
|
||||
EBUILD pyzor-9999.ebuild 1902 BLAKE2B 0ee50d9d4158d867bea4c0e107f53c7adc9b29c1228f08c0a8e453a73c31eadcb858bf1cb10f019acbaf82ed78de076ac8fb812c315466dd2a8531efd8170d90 SHA512 9b160845d948829c9a3820069e48efae3ba9c5efbbdda969f5c8c0f7e52a607667eb35c4e16489ba1da923de92643ddbb3508949dfa62c1731bcbeada2ce418e
|
||||
MISC metadata.xml 808 BLAKE2B 4c49c0d23d504122e7bb2d603f74cf5468cc84c212342dce3ca36b1fd5ec54b2b1aa65e8966ffb94a19a49d08eb8614af5f082faee32f94a315a8d51c9235ccc SHA512 8547153e5e1cd014039d497440197df6144d0dc1be2ebc31dca25551cb4ca1bd7399c2aac7e1c521e9c6b1d4172a6a88c1a98047f4a6bf49e58ac11671388230
|
||||
|
|
71
mail-filter/pyzor/pyzor-1.0.0-r22.ebuild
Normal file
71
mail-filter/pyzor/pyzor-1.0.0-r22.ebuild
Normal file
|
@ -0,0 +1,71 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_8 python3_9 python3_10 python3_11 )
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PV="1-0-0"
|
||||
DESCRIPTION="A distributed, collaborative spam detection and filtering network"
|
||||
HOMEPAGE="https://github.com/SpamExperts/pyzor"
|
||||
SRC_URI="https://github.com/SpamExperts/pyzor/archive/release-${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
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 )"
|
||||
S="${WORKDIR}/${PN}-release-${MY_PV}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/commit-2b8d76d6b86ea2e9076a9c34ffd4651909d214b7.diff"
|
||||
"${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
|
||||
}
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_6 python3_7 python3_8 python3_9 python3_10 )
|
||||
PYTHON_COMPAT=( python3_8 python3_9 python3_10 python3_11 )
|
||||
inherit distutils-r1 git-r3
|
||||
|
||||
DESCRIPTION="A distributed, collaborative spam detection and filtering network"
|
||||
|
|
Loading…
Reference in a new issue