diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-02-07 12:28:52 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-02-09 17:10:57 +0100 |
commit | 05b8398c0b4125f5dff270ad320e9035bba9ae1b (patch) | |
tree | b1a9f4c39085a618cebcf9da0c65e4c66a693cd7 /app-office/moneyguru/moneyguru-3.0.1-r2.ebuild | |
parent | app-office/libreoffice: Switch to PYTHON_MULTI_USEDEP API (diff) | |
download | gentoo-05b8398c0b4125f5dff270ad320e9035bba9ae1b.tar.gz gentoo-05b8398c0b4125f5dff270ad320e9035bba9ae1b.tar.bz2 gentoo-05b8398c0b4125f5dff270ad320e9035bba9ae1b.zip |
app-office/moneyguru: Switch to PYTHON_MULTI_USEDEP API
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-office/moneyguru/moneyguru-3.0.1-r2.ebuild')
-rw-r--r-- | app-office/moneyguru/moneyguru-3.0.1-r2.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/app-office/moneyguru/moneyguru-3.0.1-r2.ebuild b/app-office/moneyguru/moneyguru-3.0.1-r2.ebuild new file mode 100644 index 000000000000..ba927b91e60b --- /dev/null +++ b/app-office/moneyguru/moneyguru-3.0.1-r2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit python-single-r1 + +DESCRIPTION="Future-aware personal finances management" +HOMEPAGE="https://hardcoded.net/moneyguru" +SRC_URI="https://download.hardcoded.net/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +RDEPEND="${PYTHON_DEPS} + dev-db/sqlite:3 + dev-libs/glib:2 + $(python_gen_cond_dep ' + dev-python/PyQt5[${PYTHON_MULTI_USEDEP},gui,widgets,printsupport] + ') + dev-qt/qttranslations" +DEPEND="${RDEPEND} + test? ( + $(python_gen_cond_dep ' + dev-python/pytest[${PYTHON_MULTI_USEDEP}] + ') + dev-util/cunit + )" + +_emake() { + emake CFLAGS="\$(DEFAULT_CFLAGS) ${CFLAGS}" \ + SHEBANG="${PYTHON}" \ + DESTDIR="${ED}" \ + PREFIX="${EPREFIX}/usr" \ + "$@" +} + +src_compile() { + _emake +} + +src_install() { + _emake install +} + +src_test() { + emake -C ccore CFLAGS="\$(DEFAULT_CFLAGS) ${CFLAGS}" tests + pytest -vv core || die "Tests failed with ${EPYTHON}" +} |