Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/moneyguru/
Date: Wed, 02 Jan 2019 21:22:13
Message-Id: 1546464107.0f10a1e24dced271acbee1b2cb29b1d842574013.vdupras@gentoo
1 commit: 0f10a1e24dced271acbee1b2cb29b1d842574013
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 2 21:21:47 2019 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 2 21:21:47 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f10a1e2
7
8 app-office/moneyguru: new package
9
10 I'm upstream and I've spent the last two releases pimping up the build
11 system.
12
13 Closes: https://bugs.gentoo.org/388645
14 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
15 Package-Manager: Portage-2.3.51, Repoman-2.3.11
16
17 app-office/moneyguru/Manifest | 1 +
18 app-office/moneyguru/metadata.xml | 11 +++++++
19 app-office/moneyguru/moneyguru-2.13.0.ebuild | 49 ++++++++++++++++++++++++++++
20 3 files changed, 61 insertions(+)
21
22 diff --git a/app-office/moneyguru/Manifest b/app-office/moneyguru/Manifest
23 new file mode 100644
24 index 00000000000..0ccf1eba41a
25 --- /dev/null
26 +++ b/app-office/moneyguru/Manifest
27 @@ -0,0 +1 @@
28 +DIST moneyguru-2.13.0.tar.gz 1666383 BLAKE2B ea0f11728cacfe1763d9bf0e84749f18b2191af3b6c442de8c9a8095101a34c837126868589ed2c89cc4bb76cae0f5361c0b158b4f84342d1f7c74f6da06601e SHA512 fbc144070f4d78470e9a16bc7fbe35769e3fafacf4ecd746d86dd04cae759299d50b2132c21068d0fbbd01abcbfb1e9234a3a281e5097d789520cb053b6aee6f
29
30 diff --git a/app-office/moneyguru/metadata.xml b/app-office/moneyguru/metadata.xml
31 new file mode 100644
32 index 00000000000..951b70bfa8e
33 --- /dev/null
34 +++ b/app-office/moneyguru/metadata.xml
35 @@ -0,0 +1,11 @@
36 +<?xml version="1.0" encoding="UTF-8"?>
37 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
38 +<pkgmetadata>
39 + <maintainer type="person">
40 + <email>vdurpas@g.o</email>
41 + <name>Virgil Dupras</name>
42 + </maintainer>
43 + <upstream>
44 + <remote-id type="github">hsoft/moneyguru</remote-id>
45 + </upstream>
46 +</pkgmetadata>
47
48 diff --git a/app-office/moneyguru/moneyguru-2.13.0.ebuild b/app-office/moneyguru/moneyguru-2.13.0.ebuild
49 new file mode 100644
50 index 00000000000..ffe8516e22b
51 --- /dev/null
52 +++ b/app-office/moneyguru/moneyguru-2.13.0.ebuild
53 @@ -0,0 +1,49 @@
54 +# Copyright 1999-2019 Gentoo Authors
55 +# Distributed under the terms of the GNU General Public License v2
56 +
57 +EAPI=7
58 +
59 +PYTHON_COMPAT=( python3_{5,6,7} )
60 +
61 +inherit python-single-r1
62 +
63 +DESCRIPTION="Future-aware personal finances management"
64 +HOMEPAGE="https://hardcoded.net/moneyguru"
65 +SRC_URI="https://download.hardcoded.net/${P}.tar.gz"
66 +
67 +LICENSE="GPL-3+"
68 +SLOT="0"
69 +KEYWORDS="~amd64"
70 +IUSE="test"
71 +
72 +RDEPEND="${PYTHON_DEPS}
73 + dev-db/sqlite:3
74 + dev-libs/glib:2
75 + dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets,printsupport]
76 + dev-qt/qttranslations"
77 +DEPEND="${RDEPEND}
78 + test? (
79 + dev-python/pytest[${PYTHON_USEDEP}]
80 + dev-util/cunit
81 + )"
82 +
83 +_emake() {
84 + emake CFLAGS="\$(DEFAULT_CFLAGS) ${CFLAGS}" \
85 + SHEBANG="${PYTHON}" \
86 + DESTDIR="${ED}" \
87 + PREFIX=/usr \
88 + $@
89 +}
90 +
91 +src_compile() {
92 + _emake
93 +}
94 +
95 +src_install() {
96 + _emake install
97 +}
98 +
99 +src_test() {
100 + emake -C ccore CFLAGS="\$(DEFAULT_CFLAGS) ${CFLAGS}" tests
101 + pytest -vv core || die "Tests failed with ${EPYTHON}"
102 +}