commit:     3469965598ae6ee79fb864ea8d86e6c6a0b005d2
Author:     Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 18 01:05:10 2021 +0000
Commit:     Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
CommitDate: Mon Jan 18 02:19:40 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/wine.git/commit/?id=34699655

app-emulation/winetricks: fix conditions for desktop and icon files

Also remove inheriting 'desktop' since it's no longer used.

Bug: https://bugs.gentoo.org/749029
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Jimi Huotari <chiitoo <AT> gentoo.org>

 app-emulation/winetricks/winetricks-99999999.ebuild | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/app-emulation/winetricks/winetricks-99999999.ebuild 
b/app-emulation/winetricks/winetricks-99999999.ebuild
index 3b4cea7..89dcbb5 100644
--- a/app-emulation/winetricks/winetricks-99999999.ebuild
+++ b/app-emulation/winetricks/winetricks-99999999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit desktop xdg
+inherit xdg
 
 if [[ ${PV} == "99999999" ]] ; then
        EGIT_REPO_URI="https://github.com/Winetricks/${PN}.git";
@@ -84,10 +84,8 @@ src_test() {
 src_install() {
        default
 
-       if use gtk || use kde; then
-               cd "${WORKDIR}/${wtg}" || die
-               domenu winetricks.desktop
-               insinto /usr/share/icons/hicolor/scalable/apps
-               doins wine-winetricks.svg
+       if ! use gtk && ! use kde; then
+               rm -r "${ED}"/usr/share/applications || die
+               rm -r "${ED}"/usr/share/icons || die
        fi
 }

Reply via email to