1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_7 )
10 DESCRIPTION="Email client autoconfiguration service"
11 HOMEPAGE="https://automx.org/"
12 SRC_URI="https://gitlab.com/automx/automx2/-/archive/${PV}/${P}.tar.bz2"
19 BDEPEND="acct-user/automx2
20 >=dev-python/flask-migrate-2.5.2[${PYTHON_USEDEP}]"
23 python_prepare_all() {
24 sed -i -e "/('scripts'/d" setup.py || die
25 distutils-r1_python_prepare_all
29 export AUTOMX2_CONF="tests/unittest.conf"
30 ${EPYTHON} -m unittest discover tests/ || die
33 python_install_all() {
35 DOCS="*.adoc doc/*.adoc contrib/*sample.conf"
36 HTML_DOCS="doc/*.html doc/*.svg"
38 sed -e "s/@EPYTHON@/${EPYTHON}/" "${FILESDIR}/init" | newinitd - "${PN}"
39 newconfd "${FILESDIR}/confd" "${PN}"
41 newins "${FILESDIR}/conf" "${PN}.conf"
42 distutils-r1_python_install_all