Required to make new Gramps installations work following one of the
recent changes to distutils-r1.eclass (commit
180fa85d7d00aea463c399f70348beaad9166eb7). Has the dubious distinction
of being possibly the ugliest hack I have ever had to implement.
Bug: https://bugs.gentoo.org/717922
Signed-off-by: Marek Szuba <marecki@gentoo.org>
esetup.py test
}
+# Ugly hack to work around Bug #717922
+python_install() {
+ local mydistutilsargs=(
+ --resourcepath=/usr/share
+ --no-compress-manpages
+ build
+ )
+ distutils-r1_python_install
+ echo -n "/usr/share" > "${D}$(python_get_sitedir)/gramps/gen/utils/resource-path" || die
+}
+
pkg_postinst() {
xdg_desktop_database_update
xdg_mimeinfo_database_update