commit:     04fcaab84075e3e7f9477a07784945bf5184c118
Author:     Ralph Seichter <github <AT> seichter <DOT> de>
AuthorDate: Fri May 10 18:10:21 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun  2 00:50:36 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04fcaab8

net-mail/automx2: upgrade to Python 3.12

- Support Python version 3.12 in ebuild.
- Fix documentation URLs.

Closes: https://bugs.gentoo.org/929715
Signed-off-by: Ralph Seichter <github <AT> seichter.de>
Closes: https://github.com/gentoo/gentoo/pull/36631
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-mail/automx2/automx2-2022.1-r1.ebuild | 46 +++++++++++++++++++++++++++++++
 net-mail/automx2/metadata.xml             |  2 +-
 2 files changed, 47 insertions(+), 1 deletion(-)

diff --git a/net-mail/automx2/automx2-2022.1-r1.ebuild 
b/net-mail/automx2/automx2-2022.1-r1.ebuild
new file mode 100644
index 000000000000..05f26b65305a
--- /dev/null
+++ b/net-mail/automx2/automx2-2022.1-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11,12} )
+
+inherit distutils-r1
+
+DESCRIPTION="Email client autoconfiguration service"
+HOMEPAGE="https://rseichter.github.io/automx2/";
+SRC_URI="https://github.com/rseichter/automx2/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="acct-user/automx2
+       dev-python/flask[${PYTHON_USEDEP}]
+       dev-python/flask-migrate[${PYTHON_USEDEP}]
+       dev-python/flask-sqlalchemy[${PYTHON_USEDEP}]
+       dev-python/ldap3[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests unittest
+
+python_prepare_all() {
+       sed -i -e "/('scripts'/d" setup.py || die
+       distutils-r1_python_prepare_all
+}
+
+python_test() {
+       local -x AUTOMX2_CONF="tests/unittest.conf"
+       eunittest tests/
+}
+
+python_install_all() {
+       local DOCS=( "${S}"/docs/*.adoc "${S}"/contrib/*sample.conf )
+       local HTML_DOCS=( "${S}"/docs/*.{html,svg} )
+       newconfd "${FILESDIR}/confd" "${PN}"
+       newinitd "${FILESDIR}/init-r1" "${PN}"
+       insinto /etc
+       newins "${FILESDIR}/conf" "${PN}.conf"
+       distutils-r1_python_install_all
+}

diff --git a/net-mail/automx2/metadata.xml b/net-mail/automx2/metadata.xml
index 54630a522f9b..01690ef05208 100644
--- a/net-mail/automx2/metadata.xml
+++ b/net-mail/automx2/metadata.xml
@@ -10,7 +10,7 @@
                (autoconfig) in one tool.
        </longdescription>
        <upstream>
-               
<doc>https://github.com/rseichter/automx2/blob/master/doc/automx2.pdf</doc>
+               <doc>https://rseichter.github.io/automx2/</doc>
                <maintainer>
                        <email>[email protected]</email>
                        <name>Ralph Seichter</name>

Reply via email to