diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-07-21 19:51:03 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-07-21 19:51:03 +0200 |
commit | 4a80f1ae70fb928fcbc322452106f44398a9dfd2 (patch) | |
tree | 6cc64117c8dd696026dd98cb1647067baea7df0f /app-office/moneyguru/moneyguru-2.13.1-r1.ebuild | |
parent | app-mobilephone/adb-sync: Fix missing PYTHON_{DEPS,REQUIRED_USE} (diff) | |
download | gentoo-4a80f1ae70fb928fcbc322452106f44398a9dfd2.tar.gz gentoo-4a80f1ae70fb928fcbc322452106f44398a9dfd2.tar.bz2 gentoo-4a80f1ae70fb928fcbc322452106f44398a9dfd2.zip |
app-office/moneyguru: Fix missing REQUIRED_USE & RESTRICT
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-office/moneyguru/moneyguru-2.13.1-r1.ebuild')
-rw-r--r-- | app-office/moneyguru/moneyguru-2.13.1-r1.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/app-office/moneyguru/moneyguru-2.13.1-r1.ebuild b/app-office/moneyguru/moneyguru-2.13.1-r1.ebuild new file mode 100644 index 000000000000..56dae2b78248 --- /dev/null +++ b/app-office/moneyguru/moneyguru-2.13.1-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,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 + dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets,printsupport] + dev-qt/qttranslations" +DEPEND="${RDEPEND} + test? ( + <dev-python/pytest-4[${PYTHON_USEDEP}] + dev-util/cunit + )" + +_emake() { + emake CFLAGS="\$(DEFAULT_CFLAGS) ${CFLAGS}" \ + SHEBANG="${PYTHON}" \ + DESTDIR="${ED}" \ + PREFIX=/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}" +} |