commit:     00cbb70430a2c89febec64ec1b26c23db28bf719
Author:     Ralph Seichter <github <AT> seichter <DOT> de>
AuthorDate: Sun Mar  7 07:16:50 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar  9 12:05:20 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00cbb704

net-mail/automx2: Bump to version 2021.2

Add support for Python 3.9 and changes related to the upstream
repository moving from GitLab to GitHub.

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Ralph Seichter <gentoo <AT> seichter.de>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-mail/automx2/Manifest              |  1 +
 net-mail/automx2/automx2-2021.2.ebuild | 44 ++++++++++++++++++++++++++++++++++
 net-mail/automx2/metadata.xml          |  4 ++--
 3 files changed, 47 insertions(+), 2 deletions(-)

diff --git a/net-mail/automx2/Manifest b/net-mail/automx2/Manifest
index 446ac1ad2ef..93f7783814d 100644
--- a/net-mail/automx2/Manifest
+++ b/net-mail/automx2/Manifest
@@ -1,3 +1,4 @@
 DIST automx2-2020.1.tar.bz2 49405 BLAKE2B 
2c9b26300e32e613f622e0b3a39b7f408d22e22638d61da3c93f5d448fe3ebb325e9a0004e3351abed2c9e427373c42637e3539831c04cda8e65a4d1bba1773e
 SHA512 
823e569eacedcf49d53f8ed623a75455e715e3d49186179927a0e10d3efe9823c336912789bbf3d7d2f9aba3053b601352c99bda4ffcc9a7b78e412c938cd91f
 DIST automx2-2020.2.tar.bz2 50740 BLAKE2B 
394d26a06d23efe18a3c147f89660a9dbdde7edba078fd361f188738fdc28d36122aa8182e965bb8e3d69d4cbcd3cb784bc7722dd382d1fbee36213459b91fa1
 SHA512 
dce790c754fd089a15d0baf023a9cb2e04ebb42a4558fc91b06c2de2105f3e00f3675a555739ff1bc35166c98f6cecec62c95f18f4144e88ac6024eaa6f39abe
 DIST automx2-2021.0.tar.bz2 50912 BLAKE2B 
de6fe1ea6dd5223518683220ff1210baa68c30e67f9cd3aac1a965759cb0f72c1119427043579fb805f68457ac4062000cf8066b6fa6d7106f3ee7f777346a57
 SHA512 
3ca632cc71d64a9d9d434a7109ab0f55e23e3babb6c1734689f89e5a83c9daa6666af9ce09cb5a0c14256bd6e19f6c5339bd3b3398db7b2d70ff3c6114ddb428
+DIST automx2-2021.2.tar.gz 155311 BLAKE2B 
6ace715e24a27a8e98f09920150bd5d6fef7567fa7c3884825140ea8eebebb1392dcfbfab2b5a464f7967adcf421af5997023a7d33f41036608948b59e58155f
 SHA512 
89113d3a37ee66ae44f98d64480419e6c6b10662560a5319ca0f5522d6195a68f586ec94793c2212d859693a50455a8b43292dd859b912404b5abb2ddfc939b6

diff --git a/net-mail/automx2/automx2-2021.2.ebuild 
b/net-mail/automx2/automx2-2021.2.ebuild
new file mode 100644
index 00000000000..aa583898970
--- /dev/null
+++ b/net-mail/automx2/automx2-2021.2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7,8,9} )
+
+inherit distutils-r1
+
+DESCRIPTION="Email client autoconfiguration service"
+HOMEPAGE="https://automx.org/";
+SRC_URI="https://github.com/rseichter/automx2/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc"
+
+BDEPEND="acct-user/automx2
+       dev-python/flask-migrate[${PYTHON_USEDEP}]
+       dev-python/ldap3[${PYTHON_USEDEP}]"
+RDEPEND="${BDEPEND}"
+
+python_prepare_all() {
+       sed -i -e "/('scripts'/d" setup.py || die
+       distutils-r1_python_prepare_all
+}
+
+python_test() {
+       export AUTOMX2_CONF="tests/unittest.conf"
+       ${EPYTHON} -m unittest discover tests/ || die "Tests failed with 
${EPYTHON}"
+}
+
+python_install_all() {
+       if use doc; then
+               DOCS="*.adoc doc/*.adoc contrib/*sample.conf"
+               HTML_DOCS="doc/*.html doc/*.svg"
+       fi
+       sed -e "s/@EPYTHON@/${EPYTHON}/" "${FILESDIR}/init" | newinitd - "${PN}"
+       newconfd "${FILESDIR}/confd" "${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 6ec5f66d776..bc7375ae95b 100644
--- a/net-mail/automx2/metadata.xml
+++ b/net-mail/automx2/metadata.xml
@@ -18,11 +18,11 @@
                (autoconfig) in one tool.
        </longdescription>
        <upstream>
-               
<doc>https://gitlab.com/automx/automx2/blob/master/doc/automx2.adoc</doc>
+               
<doc>https://github.com/rseichter/automx2/blob/master/doc/automx2.pdf</doc>
                <maintainer>
                        <email>[email protected]</email>
                        <name>Ralph Seichter</name>
                </maintainer>
-               <remote-id type="gitlab">automx/automx2</remote-id>
+               <remote-id type="github">rseichter/automx2</remote-id>
        </upstream>
 </pkgmetadata>

Reply via email to