From 38b7258d086dd5e263c3bbe3880c8c956676bc71 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 26 Jan 2018 15:48:02 +0000 Subject: gentoo resync : 25.01.2018 --- .../winetricks/winetricks-99999999.ebuild | 26 ++++++++++++++++------ 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'app-emulation/winetricks/winetricks-99999999.ebuild') diff --git a/app-emulation/winetricks/winetricks-99999999.ebuild b/app-emulation/winetricks/winetricks-99999999.ebuild index c6636ccbdade..58d2e71829ba 100644 --- a/app-emulation/winetricks/winetricks-99999999.ebuild +++ b/app-emulation/winetricks/winetricks-99999999.ebuild @@ -25,24 +25,32 @@ HOMEPAGE="https://github.com/Winetricks/winetricks https://wiki.winehq.org/Winet LICENSE="LGPL-2.1+" SLOT="0" -IUSE="gtk kde rar" +IUSE="gtk kde rar test" + +DEPEND="test? ( + dev-python/bashate + dev-util/checkbashisms + dev-util/shellcheck + )" -DEPEND="" RDEPEND="app-arch/cabextract app-arch/p7zip app-arch/unzip net-misc/wget - x11-misc/xdg-utils virtual/wine + x11-misc/xdg-utils gtk? ( gnome-extra/zenity ) kde? ( kde-apps/kdialog ) rar? ( app-arch/unrar )" -# Uses non-standard "Wine" category, which is provided by app-emulation/wine; #451552 -QA_DESKTOP_FILE="usr/share/applications/winetricks.desktop" +# Test targets include syntax checks only, not the "heavy duty" tests +# that would require a lot of disk space, as well as network access. -# Tests require network access and run Wine, which is unreliable from a portage environment. -RESTRICT="test" +# This uses a non-standard "Wine" category, which is provided by +# '/etc/xdg/menus/applications-merged/wine.menu' from the +# 'app-emulation/wine-desktop-common' package. +# https://bugs.gentoo.org/451552 +QA_DESKTOP_FILE="usr/share/applications/winetricks.desktop" src_unpack() { if [[ ${PV} == "99999999" ]] ; then @@ -55,6 +63,10 @@ src_unpack() { fi } +src_test() { + ./tests/shell-checks || die "Test(s) failed." +} + src_install() { default if use gtk || use kde; then -- cgit v1.2.3