Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/gramps/
Date: Thu, 11 Oct 2018 14:37:45
Message-Id: 1539268524.8345db2ca97695d27e206834bb651abd26f6823c.marecki@gentoo
1 commit: 8345db2ca97695d27e206834bb651abd26f6823c
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 11 14:33:12 2018 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 11 14:35:24 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8345db2c
7
8 app-misc/gramps: bump to 5.0.0
9
10 Now with EAPI 7 and a working test suite. python3_7 compatibility has
11 been tested as well but it has turned out that at the very least,
12 some of the dependencies (e.g. dev-python/bsddb3 - need 6.2.6+, the
13 latest version in the tree is 6.2.4) do not support it yet.
14
15 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
16 Package-Manager: Portage-2.3.49, Repoman-2.3.11
17
18 app-misc/gramps/Manifest | 1 +
19 app-misc/gramps/gramps-5.0.0.ebuild | 71 +++++++++++++++++++++++++++++++++++++
20 2 files changed, 72 insertions(+)
21
22 diff --git a/app-misc/gramps/Manifest b/app-misc/gramps/Manifest
23 index 6c36a45d995..8478a9d033e 100644
24 --- a/app-misc/gramps/Manifest
25 +++ b/app-misc/gramps/Manifest
26 @@ -1,2 +1,3 @@
27 DIST gramps-4.2.5.tar.gz 18694912 BLAKE2B f91bc665ab4a970e7de193ba3bea4250e99b692cb92e76fae4a37cfa2c46280e6a45ff6712c7a68213735b6e7016f2caa3180971976c92aaa7e61d73ad2e3d5a SHA512 20a8ebff7ea2e3a80248830e55d58ebe0b5a350e1ac31efb3f2b900af38c134037bae91a58fb441be54f9fac8226555a3f5771cc358d3a4a92e89af911433b9c
28 DIST gramps-4.2.8.tar.gz 18704769 BLAKE2B 795febcc2c93a0c9b72aceeba1ac4c4f10953c2bf3b23dd8d38f662a231e21967e6f263e14d2344ef2f422e170617b7b80be4fafc2cb20c4a659366836b0e641 SHA512 c814914eb3a650dd5753d83e492d91d5db11b55321f63bd460e4eb8d80a36dd727a3792a203e3061dfaa89fd13549f51809bb83cc65b2a494c1fb8f42dcb4b8f
29 +DIST gramps-5.0.0.tar.gz 16773759 BLAKE2B 603a73b448fd41e4d491ca681c0177112541ff780566756f26a2bca7614a4699b90006d321e7925dd936a32367ccfd9b4b93d6ce70af5b750de641b17dd9c2d8 SHA512 95d775fc48a8165b14431a76cd9e60a80df5db0256c98d953fd1a270849446748d8630e0b5ff1b823345fcc7992b48a7c9d577c81a28e10ba0a6177f2501b6e3
30
31 diff --git a/app-misc/gramps/gramps-5.0.0.ebuild b/app-misc/gramps/gramps-5.0.0.ebuild
32 new file mode 100644
33 index 00000000000..f72ed60e1b6
34 --- /dev/null
35 +++ b/app-misc/gramps/gramps-5.0.0.ebuild
36 @@ -0,0 +1,71 @@
37 +# Copyright 1999-2018 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +PYTHON_COMPAT=( python3_{4,5,6} )
42 +PYTHON_REQ_USE="sqlite"
43 +
44 +DISTUTILS_SINGLE_IMPL=1
45 +inherit distutils-r1 xdg-utils
46 +
47 +DESCRIPTION="Genealogical Research and Analysis Management Programming System"
48 +HOMEPAGE="https://gramps-project.org/"
49 +SRC_URI="https://github.com/gramps-project/${PN}/archive/v${PV}.tar.gz
50 + -> ${P}.tar.gz"
51 +
52 +LICENSE="GPL-2+"
53 +SLOT="0"
54 +KEYWORDS="~amd64 ~x86"
55 +IUSE="+rcs +reports exif geo postscript spell"
56 +
57 +RDEPEND="
58 + dev-python/bsddb3[${PYTHON_USEDEP}]
59 + dev-python/pycairo[${PYTHON_USEDEP}]
60 + >=dev-python/pygobject-3.12:3[cairo,${PYTHON_USEDEP}]
61 + dev-python/pyicu[${PYTHON_USEDEP}]
62 + gnome-base/librsvg:2
63 + >x11-libs/gtk+-3.14.8:3[introspection]
64 + x11-libs/pango[introspection]
65 + x11-misc/xdg-utils
66 + reports? ( media-gfx/graphviz[postscript?] )
67 + exif? ( >=media-libs/gexiv2-0.5[${PYTHON_USEDEP},introspection] )
68 + geo? ( >=sci-geosciences/osm-gps-map-1.1.0 )
69 + spell? ( app-text/gtkspell:3[introspection] )
70 + rcs? ( dev-vcs/rcs )
71 +"
72 +
73 +python_prepare_all() {
74 + # Install documentation to the proper location. This can't be done
75 + # easily with a patch because we substitute in the $PF variable,
76 + # and that changes with every revision.
77 + sed -i "s:share/doc/gramps:share/doc/${PF}:g" setup.py || die
78 + distutils-r1_python_prepare_all
79 +}
80 +
81 +python_configure_all() {
82 + mydistutilsargs=(
83 + --resourcepath=/usr/share
84 + --no-compress-manpages
85 + )
86 +}
87 +
88 +python_test_all() {
89 + # GRAMPS builds just fine out of tree but it confuses its test suite.
90 + # The following might be an ugly hack but at least it lets the tests
91 + # run properly until either I or upstream have come up with something
92 + # better.
93 + rm -rf "${S}/build" && ln -s "${BUILD_DIR}" "${S}"/build || \
94 + die "Failed to symlink build directory to source directory"
95 +
96 + esetup.py test
97 +}
98 +
99 +pkg_postinst() {
100 + xdg_desktop_database_update
101 + xdg_mimeinfo_database_update
102 +}
103 +
104 +pkg_postrm() {
105 + xdg_desktop_database_update
106 + xdg_mimeinfo_database_update
107 +}