2015-03-08 17:36:58 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2013-06-15 22:56:29 +04:00
|
|
|
EAPI=5
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2012-10-19 12:31:40 +04:00
|
|
|
inherit gnome2-utils eutils
|
|
|
|
|
2012-02-06 16:39:49 +04:00
|
|
|
if [[ ${PV} == "99999999" ]] ; then
|
2015-04-19 22:24:49 +03:00
|
|
|
EGIT_REPO_URI="git://github.com/Winetricks/${PN}.git"
|
2015-03-08 17:36:58 +03:00
|
|
|
inherit git-r3
|
|
|
|
SRC_URI=""
|
2012-02-06 16:39:49 +04:00
|
|
|
else
|
2015-04-19 22:24:49 +03:00
|
|
|
SRC_URI="https://github.com/Winetricks/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
2012-02-06 16:39:49 +04:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
fi
|
2012-11-25 23:50:22 +04:00
|
|
|
wtg=winetricks-gentoo-2012.11.24
|
2012-10-19 12:31:40 +04:00
|
|
|
SRC_URI="${SRC_URI}
|
2015-08-24 15:08:46 +03:00
|
|
|
gtk? ( https://dev.gentoo.org/~tetromino/distfiles/wine/${wtg}.tar.bz2 )
|
|
|
|
kde? ( https://dev.gentoo.org/~tetromino/distfiles/wine/${wtg}.tar.bz2 )"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2012-08-13 08:49:48 +04:00
|
|
|
DESCRIPTION="Easy way to install DLLs needed to work around problems in Wine"
|
2015-04-19 22:24:49 +03:00
|
|
|
HOMEPAGE="http://winetricks.org http://wiki.winehq.org/winetricks"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2012-10-19 12:31:40 +04:00
|
|
|
LICENSE="LGPL-2.1+"
|
2012-02-06 16:39:49 +04:00
|
|
|
SLOT="0"
|
2013-07-10 14:47:08 +04:00
|
|
|
IUSE="gtk kde rar"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
DEPEND=""
|
2012-10-19 12:31:40 +04:00
|
|
|
RDEPEND="app-arch/cabextract
|
2013-07-09 10:32:03 +04:00
|
|
|
app-arch/p7zip
|
2012-10-19 12:31:40 +04:00
|
|
|
app-arch/unzip
|
|
|
|
app-emulation/wine
|
2013-07-09 10:32:03 +04:00
|
|
|
net-misc/wget
|
|
|
|
x11-misc/xdg-utils
|
2012-02-06 16:39:49 +04:00
|
|
|
gtk? ( gnome-extra/zenity )
|
2015-06-04 22:38:37 +03:00
|
|
|
kde? ( kde-apps/kdialog )
|
2013-07-10 14:47:08 +04:00
|
|
|
rar? ( app-arch/unrar )"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2013-01-20 22:23:18 +04:00
|
|
|
# Uses non-standard "Wine" category, which is provided by app-emulation/wine; #451552
|
|
|
|
QA_DESKTOP_FILE="usr/share/applications/winetricks.desktop"
|
|
|
|
|
2013-07-09 10:32:03 +04:00
|
|
|
# Tests require network access and run wine, which is unreliable from a portage environment
|
|
|
|
RESTRICT="test"
|
|
|
|
|
2012-02-06 16:39:49 +04:00
|
|
|
src_unpack() {
|
|
|
|
if [[ ${PV} == "99999999" ]] ; then
|
2015-03-08 17:36:58 +03:00
|
|
|
git-r3_src_unpack
|
2013-07-01 01:37:31 +04:00
|
|
|
if use gtk || use kde; then
|
|
|
|
unpack ${wtg}.tar.bz2
|
|
|
|
fi
|
2012-02-06 16:39:49 +04:00
|
|
|
else
|
2013-07-01 01:37:31 +04:00
|
|
|
default
|
2012-10-19 12:31:40 +04:00
|
|
|
fi
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2013-07-01 01:37:31 +04:00
|
|
|
default
|
2012-10-19 12:31:40 +04:00
|
|
|
if use gtk || use kde; then
|
2015-03-08 17:36:58 +03:00
|
|
|
cd "${WORKDIR}/${wtg}" || die
|
2012-10-19 12:31:40 +04:00
|
|
|
domenu winetricks.desktop
|
|
|
|
insinto /usr/share/icons/hicolor/scalable/apps
|
|
|
|
doins wine-winetricks.svg
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_preinst() {
|
|
|
|
if use gtk || use kde; then
|
|
|
|
gnome2_icon_savelist
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
if use gtk || use kde; then
|
|
|
|
gnome2_icon_cache_update
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
|
|
|
if use gtk || use kde; then
|
|
|
|
gnome2_icon_cache_update
|
|
|
|
fi
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|