commit:     ff1d8fb33ba4fb5ccea2e8d5b5c15e6f5575c6de
Author:     Eray Aslan <eras <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 12 08:03:10 2025 +0000
Commit:     Eray Aslan <eras <AT> gentoo <DOT> org>
CommitDate: Wed Nov 12 17:03:54 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff1d8fb3

dev-python/pymilter: new package, add 1.0.7_pre20251111, 9999

Signed-off-by: Eray Aslan <eras <AT> gentoo.org>

 dev-python/pymilter/Manifest                       |  1 +
 dev-python/pymilter/metadata.xml                   | 16 ++++++++
 .../pymilter/pymilter-1.0.7_pre20251111.ebuild     | 43 ++++++++++++++++++++++
 dev-python/pymilter/pymilter-9999.ebuild           | 43 ++++++++++++++++++++++
 4 files changed, 103 insertions(+)

diff --git a/dev-python/pymilter/Manifest b/dev-python/pymilter/Manifest
new file mode 100644
index 000000000000..ce6bc353a0ab
--- /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 000000000000..5cfca7860d28
--- /dev/null
+++ b/dev-python/pymilter/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Eray Aslan</name>
+       </maintainer>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Michael Orlitzky</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">sdgathman/pymilter</remote-id>
+               <remote-id type="pypi">pymilter</remote-id>
+       </upstream>
+</pkgmetadata>

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 000000000000..c95fbf034c46
--- /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 000000000000..c95fbf034c46
--- /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
+}

Reply via email to