From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/pyzor/
Date: Sat, 7 May 2022 07:17:11 +0000 (UTC) [thread overview]
Message-ID: <1651907819.18d7b78bddea3fecf60dc6a1b6ac7d0206140c07.sam@gentoo> (raw)
commit: 18d7b78bddea3fecf60dc6a1b6ac7d0206140c07
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat May 7 06:43:06 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May 7 07:16:59 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18d7b78b
mail-filter/pyzor: add 1.0.0_p20211223
Signed-off-by: Sam James <sam <AT> gentoo.org>
mail-filter/pyzor/Manifest | 1 +
mail-filter/pyzor/pyzor-1.0.0_p20211223.ebuild | 59 ++++++++++++++++++++++++++
2 files changed, 60 insertions(+)
diff --git a/mail-filter/pyzor/Manifest b/mail-filter/pyzor/Manifest
index 23730c858e15..08de429f76e4 100644
--- a/mail-filter/pyzor/Manifest
+++ b/mail-filter/pyzor/Manifest
@@ -1 +1,2 @@
DIST pyzor-1.0.0_p20200523.tar.gz 138077 BLAKE2B 13ad30f06ce32a24a42dd5aaa21ad2a6700df1bac3dc54a86532748688b094ee0f56a8e28e34336298388c6e0b95868e95d040866c9afa561d867069496608fe SHA512 afe3b14794aea68b1a7d72840257976c7c9f755a6f6dcaaf6ebacab465c176fe2aa84f3fe176006cdbe26ef0b07ed949f75f6ef729f65c604fadf6ce8472da8f
+DIST pyzor-1.0.0_p20211223.tar.gz 138500 BLAKE2B 242a7b2df3451f659d820771454e685868792bd2275b6d69d4c4adfd6044c781abe2d72fe1500a6074851faf8e88e95d6578c546d4d95fda03e11609d1a0b436 SHA512 218bea40515a21b1e08b2bad5b7ba339ba84fff2da425dc58df72a967730ebe10e319944e1604ff56bb37f6a8ae7bc0cd974b54b18a4878ba103131b8ea47b67
diff --git a/mail-filter/pyzor/pyzor-1.0.0_p20211223.ebuild b/mail-filter/pyzor/pyzor-1.0.0_p20211223.ebuild
new file mode 100644
index 000000000000..b7766b0cbbe6
--- /dev/null
+++ b/mail-filter/pyzor/pyzor-1.0.0_p20211223.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+inherit distutils-r1
+
+MY_COMMIT="2dbe627c1ec245db206cdc73bf1f9d785f1512d8"
+DESCRIPTION="A distributed, collaborative spam detection and filtering network"
+HOMEPAGE="https://github.com/SpamExperts/pyzor"
+SRC_URI="https://github.com/SpamExperts/pyzor/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_COMMIT}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc gdbm gevent mysql pyzord redis test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ pyzord? (
+ gdbm? ( $(python_gen_impl_dep 'gdbm') )
+ gevent? ( dev-python/gevent[${PYTHON_USEDEP}] )
+ mysql? ( dev-python/mysqlclient[${PYTHON_USEDEP}] )
+ redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
+ )"
+DEPEND="
+ test? (
+ gdbm? ( $(python_gen_impl_dep 'gdbm') )
+ redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
+ )
+"
+
+# TODO: maybe upstream would support skipping tests for which the
+# dependencies are missing?
+REQUIRED_USE="
+ pyzord? ( || ( gdbm redis ) )
+ test? ( gdbm redis )
+"
+
+distutils_enable_sphinx docs
+
+python_test() {
+ pytest -vv tests/unit || die "Tests fail with ${EPYTHON}"
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ if use pyzord; then
+ dodir /usr/sbin
+ mv "${ED}"/usr/bin/pyzord* "${ED}/usr/sbin" \
+ || die "failed to relocate pyzord"
+ else
+ rm "${ED}"/usr/bin/pyzord* || die "failed to remove pyzord"
+ fi
+}
next reply other threads:[~2022-05-07 7:17 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-07 7:17 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-04-14 17:22 [gentoo-commits] repo/gentoo:master commit in: mail-filter/pyzor/ Michał Górny
2024-04-14 15:28 Michał Górny
2024-04-14 15:28 Michał Górny
2023-06-28 7:37 Sam James
2023-02-17 6:27 Sam James
2023-02-17 6:27 Sam James
2022-12-20 14:26 Jakov Smolić
2022-08-16 0:22 Sam James
2022-07-13 0:31 Sam James
2022-06-22 18:37 Sam James
2022-03-03 21:22 David Seifert
2021-02-27 20:57 Sam James
2020-11-23 16:39 Sergei Trofimovich
2020-11-11 18:51 Sam James
2020-10-11 9:00 Sergei Trofimovich
2020-10-11 8:57 Sergei Trofimovich
2020-09-26 21:34 Sergei Trofimovich
2020-09-20 22:40 Thomas Deutschmann
2020-09-02 5:24 Sam James
2020-09-02 5:14 Sam James
2020-09-02 5:14 Sam James
2020-06-01 15:51 Michael Orlitzky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1651907819.18d7b78bddea3fecf60dc6a1b6ac7d0206140c07.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox