From ff1d8fb33ba4fb5ccea2e8d5b5c15e6f5575c6de Mon Sep 17 00:00:00 2001 From: Eray Aslan Date: Wed, 12 Nov 2025 09:03:10 +0100 Subject: [PATCH] dev-python/pymilter: new package, add 1.0.7_pre20251111, 9999 Signed-off-by: Eray Aslan --- dev-python/pymilter/Manifest | 1 + dev-python/pymilter/metadata.xml | 16 +++++++ .../pymilter-1.0.7_pre20251111.ebuild | 43 +++++++++++++++++++ dev-python/pymilter/pymilter-9999.ebuild | 43 +++++++++++++++++++ 4 files changed, 103 insertions(+) create mode 100644 dev-python/pymilter/Manifest create mode 100644 dev-python/pymilter/metadata.xml create mode 100644 dev-python/pymilter/pymilter-1.0.7_pre20251111.ebuild create mode 100644 dev-python/pymilter/pymilter-9999.ebuild diff --git a/dev-python/pymilter/Manifest b/dev-python/pymilter/Manifest new file mode 100644 index 0000000000000..ce6bc353a0abf --- /dev/null +++ b/dev-python/pymilter/Manifest @@ -0,0 +1 @@ +DIST pymilter-1.0.7_pre20251111.tar.xz 986416 BLAKE2B 967c4dd6b795c5cf246b16c23ba07c29019f7384c117e5caa39e346459c96f0d0632f5cba25ec4731f05caaf9dfae5638e362eb413b163dbd608c31b3787a6de SHA512 9213a14cfe045eb92977086f3ac66b793c252a9f4548dc80462d8d6efc06674c9876873de4d9999b87f3ca0f1295f04f4e040f3fa2800b5a27f4504a8569ab8b diff --git a/dev-python/pymilter/metadata.xml b/dev-python/pymilter/metadata.xml new file mode 100644 index 0000000000000..5cfca7860d284 --- /dev/null +++ b/dev-python/pymilter/metadata.xml @@ -0,0 +1,16 @@ + + + + + eras@gentoo.org + Eray Aslan + + + mjo@gentoo.org + Michael Orlitzky + + + sdgathman/pymilter + pymilter + + diff --git a/dev-python/pymilter/pymilter-1.0.7_pre20251111.ebuild b/dev-python/pymilter/pymilter-1.0.7_pre20251111.ebuild new file mode 100644 index 0000000000000..c95fbf034c46a --- /dev/null +++ b/dev-python/pymilter/pymilter-1.0.7_pre20251111.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{12..14} ) +PYTHON_REQ_USE="threads(+)" +inherit distutils-r1 + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/sdgathman/pymilter.git" + inherit git-r3 +else + KEYWORDS="~amd64 ~arm64" + if [[ ${PV} == *_pre* ]]; then + SRC_URI="https://dev.gentoo.org/~eras/distfiles/${P}.tar.xz" + S="${WORKDIR}/pymilter" + else + inherit pypi + fi +fi + +DESCRIPTION="module to enable python scripts to attach to Sendmail's libmilter API" +HOMEPAGE="https://www.pymilter.org/" + +LICENSE="GPL-2" +SLOT="0" + +RDEPEND=" + mail-filter/libmilter:= +" + +distutils_enable_tests unittest + +src_test() { + # requires berkeleydb and bsddb3 modules + sed -i -e "/s.addTest(testpolicy.suite())/d" \ + -e "/import testpolicy/d" test.py || die + rm testpolicy.py + distutils-r1_src_test +} diff --git a/dev-python/pymilter/pymilter-9999.ebuild b/dev-python/pymilter/pymilter-9999.ebuild new file mode 100644 index 0000000000000..c95fbf034c46a --- /dev/null +++ b/dev-python/pymilter/pymilter-9999.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{12..14} ) +PYTHON_REQ_USE="threads(+)" +inherit distutils-r1 + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/sdgathman/pymilter.git" + inherit git-r3 +else + KEYWORDS="~amd64 ~arm64" + if [[ ${PV} == *_pre* ]]; then + SRC_URI="https://dev.gentoo.org/~eras/distfiles/${P}.tar.xz" + S="${WORKDIR}/pymilter" + else + inherit pypi + fi +fi + +DESCRIPTION="module to enable python scripts to attach to Sendmail's libmilter API" +HOMEPAGE="https://www.pymilter.org/" + +LICENSE="GPL-2" +SLOT="0" + +RDEPEND=" + mail-filter/libmilter:= +" + +distutils_enable_tests unittest + +src_test() { + # requires berkeleydb and bsddb3 modules + sed -i -e "/s.addTest(testpolicy.suite())/d" \ + -e "/import testpolicy/d" test.py || die + rm testpolicy.py + distutils-r1_src_test +}