commit:     0f10a1e24dced271acbee1b2cb29b1d842574013
Author:     Virgil Dupras <vdupras <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  2 21:21:47 2019 +0000
Commit:     Virgil Dupras <vdupras <AT> gentoo <DOT> org>
CommitDate: Wed Jan  2 21:21:47 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f10a1e2

app-office/moneyguru: new package

I'm upstream and I've spent the last two releases pimping up the build
system.

Closes: https://bugs.gentoo.org/388645
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 app-office/moneyguru/Manifest                |  1 +
 app-office/moneyguru/metadata.xml            | 11 +++++++
 app-office/moneyguru/moneyguru-2.13.0.ebuild | 49 ++++++++++++++++++++++++++++
 3 files changed, 61 insertions(+)

diff --git a/app-office/moneyguru/Manifest b/app-office/moneyguru/Manifest
new file mode 100644
index 00000000000..0ccf1eba41a
--- /dev/null
+++ b/app-office/moneyguru/Manifest
@@ -0,0 +1 @@
+DIST moneyguru-2.13.0.tar.gz 1666383 BLAKE2B 
ea0f11728cacfe1763d9bf0e84749f18b2191af3b6c442de8c9a8095101a34c837126868589ed2c89cc4bb76cae0f5361c0b158b4f84342d1f7c74f6da06601e
 SHA512 
fbc144070f4d78470e9a16bc7fbe35769e3fafacf4ecd746d86dd04cae759299d50b2132c21068d0fbbd01abcbfb1e9234a3a281e5097d789520cb053b6aee6f

diff --git a/app-office/moneyguru/metadata.xml 
b/app-office/moneyguru/metadata.xml
new file mode 100644
index 00000000000..951b70bfa8e
--- /dev/null
+++ b/app-office/moneyguru/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Virgil Dupras</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">hsoft/moneyguru</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/app-office/moneyguru/moneyguru-2.13.0.ebuild 
b/app-office/moneyguru/moneyguru-2.13.0.ebuild
new file mode 100644
index 00000000000..ffe8516e22b
--- /dev/null
+++ b/app-office/moneyguru/moneyguru-2.13.0.ebuild
@@ -0,0 +1,49 @@
+# 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"
+
+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[${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}"
+}

Reply via email to