1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
8 inherit python-single-r1
10 DESCRIPTION="Future-aware personal finances management"
11 HOMEPAGE="https://hardcoded.net/moneyguru"
12 SRC_URI="https://download.hardcoded.net/${P}.tar.gz"
18 RESTRICT="!test? ( test )"
19 REQUIRED_USE=${PYTHON_REQUIRED_USE}
21 RDEPEND="${PYTHON_DEPS}
24 $(python_gen_cond_dep '
25 dev-python/PyQt5[${PYTHON_MULTI_USEDEP},gui,widgets,printsupport]
27 dev-qt/qttranslations"
30 $(python_gen_cond_dep '
31 dev-python/pytest[${PYTHON_MULTI_USEDEP}]
37 emake CFLAGS="\$(DEFAULT_CFLAGS) ${CFLAGS}" \
40 PREFIX="${EPREFIX}/usr" \
53 emake -C ccore CFLAGS="\$(DEFAULT_CFLAGS) ${CFLAGS}" tests
54 pytest -vv core || die "Tests failed with ${EPYTHON}"