Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/automx2/
Date: Sat, 09 Jan 2021 18:48:51
Message-Id: 1610217790.aa81c631181e5c98ba02ea29190beed8d5aea5e8.sam@gentoo
1 commit: aa81c631181e5c98ba02ea29190beed8d5aea5e8
2 Author: Ralph Seichter <github <AT> seichter <DOT> de>
3 AuthorDate: Sat Jan 9 16:05:48 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 9 18:43:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa81c631
7
8 net-mail/automx2: Bump to version 2021.0
9
10 Upstream bugfix release.
11
12 Package-Manager: Portage-3.0.12, Repoman-3.0.2
13 Signed-off-by: Ralph Seichter <gentoo <AT> seichter.de>
14 Closes: https://github.com/gentoo/gentoo/pull/19005
15 Signed-off-by: Sam James <sam <AT> gentoo.org>
16
17 net-mail/automx2/Manifest | 1 +
18 net-mail/automx2/automx2-2021.0.ebuild | 44 ++++++++++++++++++++++++++++++++++
19 2 files changed, 45 insertions(+)
20
21 diff --git a/net-mail/automx2/Manifest b/net-mail/automx2/Manifest
22 index dd40d7416b0..446ac1ad2ef 100644
23 --- a/net-mail/automx2/Manifest
24 +++ b/net-mail/automx2/Manifest
25 @@ -1,2 +1,3 @@
26 DIST automx2-2020.1.tar.bz2 49405 BLAKE2B 2c9b26300e32e613f622e0b3a39b7f408d22e22638d61da3c93f5d448fe3ebb325e9a0004e3351abed2c9e427373c42637e3539831c04cda8e65a4d1bba1773e SHA512 823e569eacedcf49d53f8ed623a75455e715e3d49186179927a0e10d3efe9823c336912789bbf3d7d2f9aba3053b601352c99bda4ffcc9a7b78e412c938cd91f
27 DIST automx2-2020.2.tar.bz2 50740 BLAKE2B 394d26a06d23efe18a3c147f89660a9dbdde7edba078fd361f188738fdc28d36122aa8182e965bb8e3d69d4cbcd3cb784bc7722dd382d1fbee36213459b91fa1 SHA512 dce790c754fd089a15d0baf023a9cb2e04ebb42a4558fc91b06c2de2105f3e00f3675a555739ff1bc35166c98f6cecec62c95f18f4144e88ac6024eaa6f39abe
28 +DIST automx2-2021.0.tar.bz2 50912 BLAKE2B de6fe1ea6dd5223518683220ff1210baa68c30e67f9cd3aac1a965759cb0f72c1119427043579fb805f68457ac4062000cf8066b6fa6d7106f3ee7f777346a57 SHA512 3ca632cc71d64a9d9d434a7109ab0f55e23e3babb6c1734689f89e5a83c9daa6666af9ce09cb5a0c14256bd6e19f6c5339bd3b3398db7b2d70ff3c6114ddb428
29
30 diff --git a/net-mail/automx2/automx2-2021.0.ebuild b/net-mail/automx2/automx2-2021.0.ebuild
31 new file mode 100644
32 index 00000000000..427c85ab79c
33 --- /dev/null
34 +++ b/net-mail/automx2/automx2-2021.0.ebuild
35 @@ -0,0 +1,44 @@
36 +# Copyright 1999-2021 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +PYTHON_COMPAT=( python3_{7,8} )
42 +
43 +inherit distutils-r1
44 +
45 +DESCRIPTION="Email client autoconfiguration service"
46 +HOMEPAGE="https://automx.org/"
47 +SRC_URI="https://gitlab.com/automx/automx2/-/archive/${PV}/${P}.tar.bz2"
48 +
49 +LICENSE="GPL-3+"
50 +SLOT="0"
51 +KEYWORDS="~amd64"
52 +IUSE="doc"
53 +
54 +BDEPEND="acct-user/automx2
55 + dev-python/flask-migrate[${PYTHON_USEDEP}]
56 + dev-python/ldap3[${PYTHON_USEDEP}]"
57 +RDEPEND="${BDEPEND}"
58 +
59 +python_prepare_all() {
60 + sed -i -e "/('scripts'/d" setup.py || die
61 + distutils-r1_python_prepare_all
62 +}
63 +
64 +python_test() {
65 + export AUTOMX2_CONF="tests/unittest.conf"
66 + ${EPYTHON} -m unittest discover tests/ || die "Tests failed with ${EPYTHON}"
67 +}
68 +
69 +python_install_all() {
70 + if use doc; then
71 + DOCS="*.adoc doc/*.adoc contrib/*sample.conf"
72 + HTML_DOCS="doc/*.html doc/*.svg"
73 + fi
74 + sed -e "s/@EPYTHON@/${EPYTHON}/" "${FILESDIR}/init" | newinitd - "${PN}"
75 + newconfd "${FILESDIR}/confd" "${PN}"
76 + insinto /etc
77 + newins "${FILESDIR}/conf" "${PN}.conf"
78 + distutils-r1_python_install_all
79 +}