commit: 5c7e102c618f78275f994d75344766fdb42a1426
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 7 08:29:51 2023 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Thu Sep 7 08:38:29 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c7e102c
app-misc/gramps: set the resource path again
Still needed, as it turns out. In the past we did it using the upstream
setup.py option --resource-path but that seems to be broken in PEP-517
mode, and a single echo call utilising ebuild helper functions and
variables produces exactly the same result.
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
app-misc/gramps/gramps-5.1.6-r2.ebuild | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/app-misc/gramps/gramps-5.1.6-r2.ebuild
b/app-misc/gramps/gramps-5.1.6-r2.ebuild
index 21e33b40891f..cfe79f32a435 100644
--- a/app-misc/gramps/gramps-5.1.6-r2.ebuild
+++ b/app-misc/gramps/gramps-5.1.6-r2.ebuild
@@ -69,6 +69,13 @@ src_prepare() {
default
}
+python_install() {
+ distutils-r1_python_install
+
+ # setup.py option --resourcepath appears to have problems at the moment
+ echo -n "/usr/share" >
"${ED}"$(python_get_sitedir)/${PN}/gen/utils/resource-path || die
+}
+
pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update