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: Tue, 29 Oct 2019 15:54:58
Message-Id: 1572364437.bda56e4cb71cb817ca08b28c161303a2b7169321.marecki@gentoo
1 commit: bda56e4cb71cb817ca08b28c161303a2b7169321
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 28 16:38:56 2019 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 29 15:53:57 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bda56e4c
7
8 app-misc/gramps: bump to 5.1.1
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.16
11 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
12
13 app-misc/gramps/Manifest | 1 +
14 app-misc/gramps/gramps-5.1.1.ebuild | 71 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 72 insertions(+)
16
17 diff --git a/app-misc/gramps/Manifest b/app-misc/gramps/Manifest
18 index 6aa77900c42..3718536de32 100644
19 --- a/app-misc/gramps/Manifest
20 +++ b/app-misc/gramps/Manifest
21 @@ -1,2 +1,3 @@
22 DIST gramps-5.0.1.tar.gz 16718439 BLAKE2B 75b4a70275f7e6e181ba948df6fe44cbb9221436c2e860db8ef83bcc02b916aa3921ae09fa8ed18876f28551ed10b5047ae1aef0967b48532b54ad97c8af6d8a SHA512 68b905a8e59eedb620329b05bdd4cca842a79f885645140d31b637fc82ec7470892ebf0fd899aeb6a1205473f79e7f13d6c5e05b36da94b9049dcbb78e07aa76
23 DIST gramps-5.0.2.tar.gz 16706686 BLAKE2B 006c8d10d574d7fe92b661400c257f6f1bc2b2e9e27d788ca761a5d51aa8593f9d26fdccdeeb0fb2860bfe1b08d937e938b3fb21094a42de0fb306d3c16dca49 SHA512 abbf885189bedcf9897bcb3216df86af41498c94b3b9c133350e84a8a61057ab4ed4823c3923823ec99fe0be92648e9259fdceaafd31f968c7d1560a0cd859da
24 +DIST gramps-5.1.1.tar.gz 17281131 BLAKE2B e729183832799a66547bb3958b4892c69359ec8e506766f4c64450f8bec3bf253460850f54388fa73659243cd96679c787fbbb9d645214682df26041c43b2c56 SHA512 fee7df5d2df2ae202c5e8ff4b941df4db6675925f6fce185c0fae709dd35ecfd6a1b81c8266d3f417f4949bed4e39f984a56917e74f56a3f3e499a4353927c37
25
26 diff --git a/app-misc/gramps/gramps-5.1.1.ebuild b/app-misc/gramps/gramps-5.1.1.ebuild
27 new file mode 100644
28 index 00000000000..3ce0f03cb28
29 --- /dev/null
30 +++ b/app-misc/gramps/gramps-5.1.1.ebuild
31 @@ -0,0 +1,71 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +PYTHON_COMPAT=( python3_{5,6} )
37 +PYTHON_REQ_USE="sqlite"
38 +
39 +DISTUTILS_SINGLE_IMPL=1
40 +inherit distutils-r1 xdg-utils
41 +
42 +DESCRIPTION="Genealogical Research and Analysis Management Programming System"
43 +HOMEPAGE="https://gramps-project.org/"
44 +SRC_URI="https://github.com/gramps-project/${PN}/archive/v${PV}.tar.gz
45 + -> ${P}.tar.gz"
46 +
47 +LICENSE="GPL-2+"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="+rcs +reports exif geo postscript spell"
51 +
52 +RDEPEND="
53 + dev-python/bsddb3[${PYTHON_USEDEP}]
54 + dev-python/pycairo[${PYTHON_USEDEP}]
55 + >=dev-python/pygobject-3.12:3[cairo,${PYTHON_USEDEP}]
56 + dev-python/pyicu[${PYTHON_USEDEP}]
57 + gnome-base/librsvg:2
58 + >x11-libs/gtk+-3.14.8:3[introspection]
59 + x11-libs/pango[introspection]
60 + x11-misc/xdg-utils
61 + reports? ( media-gfx/graphviz[postscript?] )
62 + exif? ( >=media-libs/gexiv2-0.5[${PYTHON_USEDEP},introspection] )
63 + geo? ( >=sci-geosciences/osm-gps-map-1.1.0 )
64 + spell? ( app-text/gtkspell:3[introspection] )
65 + rcs? ( dev-vcs/rcs )
66 +"
67 +
68 +python_prepare_all() {
69 + # Install documentation to the proper location. This can't be done
70 + # easily with a patch because we substitute in the $PF variable,
71 + # and that changes with every revision.
72 + sed -i "s:share/doc/gramps:share/doc/${PF}:g" setup.py || die
73 + distutils-r1_python_prepare_all
74 +}
75 +
76 +python_configure_all() {
77 + mydistutilsargs=(
78 + --resourcepath=/usr/share
79 + --no-compress-manpages
80 + )
81 +}
82 +
83 +python_test_all() {
84 + # GRAMPS builds just fine out of tree but it confuses its test suite.
85 + # The following might be an ugly hack but at least it lets the tests
86 + # run properly until either I or upstream have come up with something
87 + # better.
88 + rm -rf "${S}/build" && ln -s "${BUILD_DIR}" "${S}"/build || \
89 + die "Failed to symlink build directory to source directory"
90 +
91 + esetup.py test
92 +}
93 +
94 +pkg_postinst() {
95 + xdg_desktop_database_update
96 + xdg_mimeinfo_database_update
97 +}
98 +
99 +pkg_postrm() {
100 + xdg_desktop_database_update
101 + xdg_mimeinfo_database_update
102 +}