summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2021-05-15 16:12:09 +0200
committerMarek Szuba <marecki@gentoo.org>2021-05-15 16:22:05 +0200
commit80fcab05e40d3f94629f049d173ca2aba6ff8fbe (patch)
tree14d83fdce3411865c39d3ed0a197fd63e0d6255b /app-misc/gramps/gramps-5.1.3.ebuild
parentapp-misc/gramps: tests: do not rely on presence of en_US.UTF-8 locale (diff)
downloadgentoo-80fcab05e40d3f94629f049d173ca2aba6ff8fbe.tar.gz
gentoo-80fcab05e40d3f94629f049d173ca2aba6ff8fbe.tar.bz2
gentoo-80fcab05e40d3f94629f049d173ca2aba6ff8fbe.zip
app-misc/gramps: make BerkeleyDB support optional
Some of the tests still fail when bsddb3 is absent but in spite of what the README says, it is not a mandatory dependency any more and the BSDDB family-tree backend has been deprecated since 5.1.0 in favour of SQLite. Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'app-misc/gramps/gramps-5.1.3.ebuild')
-rw-r--r--app-misc/gramps/gramps-5.1.3.ebuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/app-misc/gramps/gramps-5.1.3.ebuild b/app-misc/gramps/gramps-5.1.3.ebuild
index 0c5ddbf87810..b02679ec1bcc 100644
--- a/app-misc/gramps/gramps-5.1.3.ebuild
+++ b/app-misc/gramps/gramps-5.1.3.ebuild
@@ -17,15 +17,15 @@ SRC_URI="https://github.com/gramps-project/${PN}/archive/v${PV}.tar.gz
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 x86"
-IUSE="+rcs +reports exif geo postscript spell test"
+IUSE="berkdb exif geo postscript +rcs +reports spell test"
RESTRICT="!test? ( test )"
RDEPEND="
$(python_gen_cond_dep '
- dev-python/bsddb3[${PYTHON_USEDEP}]
dev-python/pycairo[${PYTHON_USEDEP}]
>=dev-python/pygobject-3.12:3[cairo,${PYTHON_USEDEP}]
dev-python/pyicu[${PYTHON_USEDEP}]
+ berkdb? ( dev-python/bsddb3[${PYTHON_USEDEP}] )
exif? ( >=media-libs/gexiv2-0.5[${PYTHON_USEDEP},introspection] )
')
gnome-base/librsvg:2
@@ -95,6 +95,13 @@ python_install() {
pkg_postinst() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
+
+ if use berkdb; then
+ ewarn "The BSDDB back-end in ${PN} has got known stability and data-corruption issues. It has been deprecated since version 5.1.0 and might be removed in 5.2.0."
+ ewarn "If you have any family trees in this format you are highly advised to convert them to SQLite, as described here:"
+ ewarn
+ ewarn "https://gramps-project.org/wiki/index.php/Gramps_5.1_Wiki_Manual_-_Manage_Family_Trees#Converting_a_BSDDB_Family_Tree_to_SQLite"
+ fi
}
pkg_postrm() {