app-editors/vim-core: avoid icon file collision with gvim
authorTim Harder <radhermit@gentoo.org>
Fri, 28 Dec 2018 22:14:22 +0000 (16:14 -0600)
committerTim Harder <radhermit@gentoo.org>
Fri, 28 Dec 2018 22:24:08 +0000 (16:24 -0600)
And update icon cache.

Closes: https://bugs.gentoo.org/673926

Signed-off-by: Tim Harder <radhermit@gentoo.org>
app-editors/vim-core/vim-core-8.1.0648.ebuild
app-editors/vim-core/vim-core-9999.ebuild

index 3c18feca9036a3b7bf29b52ee6524c20ed928a63..1aeb3a66d543cd2f815b89f73035e9f4e8d8f449 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 VIM_VERSION="8.1"
-inherit estack vim-doc flag-o-matic bash-completion-r1 prefix desktop
+inherit estack vim-doc flag-o-matic bash-completion-r1 prefix desktop gnome2-utils
 
 if [[ ${PV} == 9999* ]] ; then
        inherit git-r3
@@ -23,6 +23,8 @@ LICENSE="vim"
 IUSE="nls acl minimal"
 
 DEPEND="sys-devel/autoconf"
+# avoid icon file collision bug #673880
+RDEPEND="!!<app-editors/gvim-8.1.0648"
 PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
 
 S=${WORKDIR}/vim-${PV}
@@ -207,11 +209,17 @@ src_install() {
 }
 
 pkg_postinst() {
-       # Update documentation tags (from vim-doc.eclass)
+       # update documentation tags (from vim-doc.eclass)
        update_vim_helptags
+
+       # update icon cache
+       gnome2_icon_cache_update
 }
 
 pkg_postrm() {
        # Update documentation tags (from vim-doc.eclass)
        update_vim_helptags
+
+       # update icon cache
+       gnome2_icon_cache_update
 }
index 3c18feca9036a3b7bf29b52ee6524c20ed928a63..1aeb3a66d543cd2f815b89f73035e9f4e8d8f449 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 VIM_VERSION="8.1"
-inherit estack vim-doc flag-o-matic bash-completion-r1 prefix desktop
+inherit estack vim-doc flag-o-matic bash-completion-r1 prefix desktop gnome2-utils
 
 if [[ ${PV} == 9999* ]] ; then
        inherit git-r3
@@ -23,6 +23,8 @@ LICENSE="vim"
 IUSE="nls acl minimal"
 
 DEPEND="sys-devel/autoconf"
+# avoid icon file collision bug #673880
+RDEPEND="!!<app-editors/gvim-8.1.0648"
 PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
 
 S=${WORKDIR}/vim-${PV}
@@ -207,11 +209,17 @@ src_install() {
 }
 
 pkg_postinst() {
-       # Update documentation tags (from vim-doc.eclass)
+       # update documentation tags (from vim-doc.eclass)
        update_vim_helptags
+
+       # update icon cache
+       gnome2_icon_cache_update
 }
 
 pkg_postrm() {
        # Update documentation tags (from vim-doc.eclass)
        update_vim_helptags
+
+       # update icon cache
+       gnome2_icon_cache_update
 }