1 |
commit: f9bf82da2b70f7943f649ef80c18ff089fabe882 |
2 |
Author: Ralph Seichter <github <AT> seichter <DOT> de> |
3 |
AuthorDate: Fri Mar 27 21:31:08 2020 +0000 |
4 |
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 28 16:12:29 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9bf82da |
7 |
|
8 |
net-mail/automx2: Depend on dev-python/ldap3 |
9 |
|
10 |
Add dependency on dev-python/ldap3 which now supports Python 3.7. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/705714 |
13 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
14 |
Signed-off-by: Ralph Seichter <gentoo <AT> seichter.de> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/15142 |
16 |
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org> |
17 |
|
18 |
net-mail/automx2/automx2-2020.1-r1.ebuild | 44 +++++++++++++++++++++++++++++++ |
19 |
1 file changed, 44 insertions(+) |
20 |
|
21 |
diff --git a/net-mail/automx2/automx2-2020.1-r1.ebuild b/net-mail/automx2/automx2-2020.1-r1.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..27bbeeef2a1 |
24 |
--- /dev/null |
25 |
+++ b/net-mail/automx2/automx2-2020.1-r1.ebuild |
26 |
@@ -0,0 +1,44 @@ |
27 |
+# Copyright 1999-2020 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=7 |
31 |
+ |
32 |
+PYTHON_COMPAT=( python3_{7,8} ) |
33 |
+ |
34 |
+inherit distutils-r1 |
35 |
+ |
36 |
+DESCRIPTION="Email client autoconfiguration service" |
37 |
+HOMEPAGE="https://automx.org/" |
38 |
+SRC_URI="https://gitlab.com/automx/automx2/-/archive/${PV}/${P}.tar.bz2" |
39 |
+ |
40 |
+LICENSE="GPL-3+" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64" |
43 |
+IUSE="doc" |
44 |
+ |
45 |
+BDEPEND="acct-user/automx2 |
46 |
+ dev-python/flask-migrate[${PYTHON_USEDEP}] |
47 |
+ dev-python/ldap3[${PYTHON_USEDEP}]" |
48 |
+RDEPEND="${BDEPEND}" |
49 |
+ |
50 |
+python_prepare_all() { |
51 |
+ sed -i -e "/('scripts'/d" setup.py || die |
52 |
+ distutils-r1_python_prepare_all |
53 |
+} |
54 |
+ |
55 |
+python_test() { |
56 |
+ export AUTOMX2_CONF="tests/unittest.conf" |
57 |
+ ${EPYTHON} -m unittest discover tests/ || die |
58 |
+} |
59 |
+ |
60 |
+python_install_all() { |
61 |
+ if use doc; then |
62 |
+ DOCS="*.adoc doc/*.adoc contrib/*sample.conf" |
63 |
+ HTML_DOCS="doc/*.html doc/*.svg" |
64 |
+ fi |
65 |
+ sed -e "s/@EPYTHON@/${EPYTHON}/" "${FILESDIR}/init" | newinitd - "${PN}" |
66 |
+ newconfd "${FILESDIR}/confd" "${PN}" |
67 |
+ insinto /etc |
68 |
+ newins "${FILESDIR}/conf" "${PN}.conf" |
69 |
+ distutils-r1_python_install_all |
70 |
+} |