From 80fcab05e40d3f94629f049d173ca2aba6ff8fbe Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Sat, 15 May 2021 16:12:09 +0200 Subject: 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 --- app-misc/gramps/gramps-5.1.3.ebuild | 11 +++++++++-- app-misc/gramps/metadata.xml | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'app-misc/gramps') 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() { diff --git a/app-misc/gramps/metadata.xml b/app-misc/gramps/metadata.xml index 676ea64bf000..c6c84d61a5b2 100644 --- a/app-misc/gramps/metadata.xml +++ b/app-misc/gramps/metadata.xml @@ -88,6 +88,7 @@ zapolnjevanju vrzeli v rodoslovnih podatkih. + Support BerkeleyDB-based family trees produced by older versions of Gramps Enable rendering of geographical data using sci-geosciences/osm-gps-map All external software that is needed for graphical reports will be installed Adds support for family tree archives via dev-vcs/rcs -- cgit v1.2.3-65-gdbad