summaryrefslogtreecommitdiff
path: root/dev-python/wxpython2
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [master] <gitlab@liguros.net>2021-01-17 23:35:33 +0000
committerLiguros - Gitlab CI/CD [master] <gitlab@liguros.net>2021-01-17 23:35:33 +0000
commit8e8120eabdd28020aa69c7a60505cce2edd20adc (patch)
tree061bf0acdc672720e0bc3a2d575f67d25aedb2d8 /dev-python/wxpython2
parentc16790af2c9b4cbc38e565d4311252193ff85484 (diff)
downloadbaldeagleos-repo-21.1.2.tar.gz
baldeagleos-repo-21.1.2.tar.xz
baldeagleos-repo-21.1.2.zip
Updating liguros repo21.1.2
Diffstat (limited to 'dev-python/wxpython2')
-rw-r--r--dev-python/wxpython2/wxpython2-3.0.2.0-r1.ebuild (renamed from dev-python/wxpython2/wxpython2-3.0.2.0.ebuild)16
1 files changed, 14 insertions, 2 deletions
diff --git a/dev-python/wxpython2/wxpython2-3.0.2.0.ebuild b/dev-python/wxpython2/wxpython2-3.0.2.0-r1.ebuild
index 13958e9e81c7..1d3987542b30 100644
--- a/dev-python/wxpython2/wxpython2-3.0.2.0.ebuild
+++ b/dev-python/wxpython2/wxpython2-3.0.2.0-r1.ebuild
@@ -6,7 +6,8 @@ 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
+DISTUTILS_USE_SETUPTOOLS=manual
+inherit alternatives distutils-r1 eutils flag-o-matic wxwidgets
ORIG_PN="wxpython"
MY_PN="wxPython-src"
@@ -27,7 +28,7 @@ RDEPEND="
dev-lang/python-exec:2[${PYTHON_USEDEP}]
>=x11-libs/wxGTK-${PV}:${WX_GTK_VER}=[libnotify=,opengl?,tiff,X]
dev-libs/glib:2
- dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/setuptools-python2[${PYTHON_USEDEP}]
media-libs/libpng:0=
media-libs/tiff:0
virtual/jpeg
@@ -114,6 +115,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 +150,4 @@ pkg_postrm() {
}
python_foreach_impl update_symlinks
}
+