summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2012-10-19 05:57:41 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2012-10-19 05:57:41 +0000
commit5d1a7b0579d16cf45a26b795f956818d7188ecfe (patch)
tree70124044a476ee6691dd76864f8c1fc5813809f5 /app-emulation/winetricks/winetricks-99999999.ebuild
parentVersion bump. Install .desktop file and icon (bug #438806, thanks to C.J. Wi... (diff)
downloadgentoo-2-5d1a7b0579d16cf45a26b795f956818d7188ecfe.tar.gz
gentoo-2-5d1a7b0579d16cf45a26b795f956818d7188ecfe.tar.bz2
gentoo-2-5d1a7b0579d16cf45a26b795f956818d7188ecfe.zip
Only install .desktop file and icon if USE=gtk or USE=kde.
(Portage version: 2.2.0_alpha137/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/winetricks/winetricks-99999999.ebuild')
-rw-r--r--app-emulation/winetricks/winetricks-99999999.ebuild31
1 files changed, 21 insertions, 10 deletions
diff --git a/app-emulation/winetricks/winetricks-99999999.ebuild b/app-emulation/winetricks/winetricks-99999999.ebuild
index 7c9a6ef492db..65679559f6a6 100644
--- a/app-emulation/winetricks/winetricks-99999999.ebuild
+++ b/app-emulation/winetricks/winetricks-99999999.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/winetricks/winetricks-99999999.ebuild,v 1.4 2012/10/19 05:50:00 tetromino Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/winetricks/winetricks-99999999.ebuild,v 1.5 2012/10/19 05:57:41 tetromino Exp $
EAPI=4
@@ -16,7 +16,8 @@ else
fi
wtg=winetricks-gentoo-2012.10.19
SRC_URI="${SRC_URI}
- http://dev.gentoo.org/~tetromino/distfiles/wine/${wtg}.tar.bz2"
+ gtk? ( http://dev.gentoo.org/~tetromino/distfiles/wine/${wtg}.tar.bz2 )
+ kde? ( http://dev.gentoo.org/~tetromino/distfiles/wine/${wtg}.tar.bz2 )"
DESCRIPTION="Easy way to install DLLs needed to work around problems in Wine"
HOMEPAGE="http://code.google.com/p/winetricks/ http://wiki.winehq.org/winetricks"
@@ -42,27 +43,37 @@ src_unpack() {
cp "${DISTDIR}"/${P} src/${PN} || die
cp "${DISTDIR}"/${P}.1 src/${PN}.1 || die
fi
- unpack ${wtg}.tar.bz2
+ if use gtk || use kde; then
+ unpack ${wtg}.tar.bz2
+ fi
}
src_install() {
cd src
dobin ${PN}
doman ${PN}.1
- cd ../${wtg} || die
- domenu winetricks.desktop
- insinto /usr/share/icons/hicolor/scalable/apps
- doins wine-winetricks.svg
+ if use gtk || use kde; then
+ cd ../${wtg} || die
+ domenu winetricks.desktop
+ insinto /usr/share/icons/hicolor/scalable/apps
+ doins wine-winetricks.svg
+ fi
}
pkg_preinst() {
- gnome2_icon_savelist
+ if use gtk || use kde; then
+ gnome2_icon_savelist
+ fi
}
pkg_postinst() {
- gnome2_icon_cache_update
+ if use gtk || use kde; then
+ gnome2_icon_cache_update
+ fi
}
pkg_postrm() {
- gnome2_icon_cache_update
+ if use gtk || use kde; then
+ gnome2_icon_cache_update
+ fi
}