summaryrefslogtreecommitdiff
path: root/dev-python/wxpython2/wxpython2-3.0.2.0.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2020-12-22 00:52:35 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2020-12-22 00:52:35 +0000
commitd30b83bccc8330b9a4dc1840e4437600bc526220 (patch)
treec606008912db772242c02aac2267fe54f1739dbf /dev-python/wxpython2/wxpython2-3.0.2.0.ebuild
parent36ec6ab974a223409eecf4bd144920c16b6b85a1 (diff)
downloadbaldeagleos-repo-d30b83bccc8330b9a4dc1840e4437600bc526220.tar.gz
baldeagleos-repo-d30b83bccc8330b9a4dc1840e4437600bc526220.tar.xz
baldeagleos-repo-d30b83bccc8330b9a4dc1840e4437600bc526220.zip
Updating liguros repo
Diffstat (limited to 'dev-python/wxpython2/wxpython2-3.0.2.0.ebuild')
-rw-r--r--dev-python/wxpython2/wxpython2-3.0.2.0.ebuild13
1 files changed, 12 insertions, 1 deletions
diff --git a/dev-python/wxpython2/wxpython2-3.0.2.0.ebuild b/dev-python/wxpython2/wxpython2-3.0.2.0.ebuild
index 13958e9e81c7..d0b9b21a7317 100644
--- a/dev-python/wxpython2/wxpython2-3.0.2.0.ebuild
+++ b/dev-python/wxpython2/wxpython2-3.0.2.0.ebuild
@@ -6,7 +6,7 @@ EAPI=5
PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} )
WX_GTK_VER="3.0"
-inherit alternatives distutils-r1 eutils fdo-mime flag-o-matic wxwidgets
+inherit alternatives distutils-r1 eutils flag-o-matic wxwidgets
ORIG_PN="wxpython"
MY_PN="wxPython-src"
@@ -114,6 +114,16 @@ python_install_all() {
rm -r ${D}/usr/share
}
+fdo-mime_desktop_database_update() {
+ has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
+ has "${EAPI:-0}" 0 1 2 && ! use prefix && EROOT="${ROOT}"
+ if [ -x "${EPREFIX}/usr/bin/update-desktop-database" ]
+ then
+ einfo "Updating desktop mime database ..."
+ "${EPREFIX}/usr/bin/update-desktop-database" -q "${EROOT}usr/share/applications"
+ fi
+}
+
pkg_postinst() {
fdo-mime_desktop_database_update
@@ -139,3 +149,4 @@ pkg_postrm() {
}
python_foreach_impl update_symlinks
}
+