Gentoo Archives: gentoo-commits

From: Nick Sarnie <sarnex@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/winetricks/
Date: Tue, 24 Dec 2019 23:33:29
Message-Id: 1577230345.18ff09608f6c2a3af22d384e996b644b04427a2c.sarnex@gentoo
1 commit: 18ff09608f6c2a3af22d384e996b644b04427a2c
2 Author: Nick Sarnie <sarnex <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 24 23:32:25 2019 +0000
4 Commit: Nick Sarnie <sarnex <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 24 23:32:25 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18ff0960
7
8 app-emulation/winetricks: Sync with ::wine
9
10 Bump winetricks version
11
12 Package-Manager: Portage-2.3.83, Repoman-2.3.20
13 Signed-off-by: Nick Sarnie <sarnex <AT> gentoo.org>
14
15 app-emulation/winetricks/Manifest | 1 +
16 .../winetricks/winetricks-20191224.ebuild | 86 ++++++++++++++++++++++
17 2 files changed, 87 insertions(+)
18
19 diff --git a/app-emulation/winetricks/Manifest b/app-emulation/winetricks/Manifest
20 index 2c6ad93722c..3e226af6f9d 100644
21 --- a/app-emulation/winetricks/Manifest
22 +++ b/app-emulation/winetricks/Manifest
23 @@ -1,2 +1,3 @@
24 DIST winetricks-20190912.tar.gz 679544 BLAKE2B 633c407f8560fa3aa38806befded957d0bf1276164483b08fb3ef285fe873531d6362ae6305f5a33a85891d75990e6e0271fe954358e49425c4f36f0f918f48d SHA512 a0017cc08c56a511e523116daf2024b1462460d00b3d07de87720c7912dccab3d953db3653d7d611c5ae3b457a45de8d36688ee703e805c1e1f5be5c0fa7739f
25 +DIST winetricks-20191224.tar.gz 683074 BLAKE2B 53e89f57883c7527e083610d4ea036887cc8e058d281ee77b0e8fd7dec8520bcd27d5d86f6cadfa5d11bc191a33571086128e6729642e7f302dc37e27b1ce402 SHA512 31c0866e78d866e569da6c1123af7823a07b6358a79fcba84296938d89a39447ec9f504ca524471abc74ec2e3b24024bbc8a579413b4fe0ee74b1d5612f5d41a
26 DIST winetricks-gentoo-2012.11.24.tar.bz2 6398 BLAKE2B 54a4502f6e8ef15d21b02c43e3ce599e32d476c2559246064de14cc4ce2243ff11dde681d24c8a7f4913c3d7a10b855bda47e8fb8ecad31e00d839705416be6f SHA512 59c93b73f3a7b2d11aefcde2ff66659ff1de21ad4b5f232f4b60572f3a48b15a6c49f369b1696862bf1b33fde190bf5598945e9536fb41ddec42d8def4d2be2a
27
28 diff --git a/app-emulation/winetricks/winetricks-20191224.ebuild b/app-emulation/winetricks/winetricks-20191224.ebuild
29 new file mode 100644
30 index 00000000000..900a5b53922
31 --- /dev/null
32 +++ b/app-emulation/winetricks/winetricks-20191224.ebuild
33 @@ -0,0 +1,86 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit desktop xdg
40 +
41 +if [[ ${PV} == "99999999" ]] ; then
42 + EGIT_REPO_URI="https://github.com/Winetricks/${PN}.git"
43 + inherit git-r3
44 + SRC_URI=""
45 +else
46 + SRC_URI="https://github.com/Winetricks/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
47 + KEYWORDS="~amd64 ~x86"
48 +fi
49 +
50 +wtg="winetricks-gentoo-2012.11.24"
51 +
52 +SRC_URI="${SRC_URI}
53 + gtk? ( https://dev.gentoo.org/~chiitoo/distfiles/${wtg}.tar.bz2 )
54 + kde? ( https://dev.gentoo.org/~chiitoo/distfiles/${wtg}.tar.bz2 )
55 +"
56 +
57 +DESCRIPTION="Easy way to install DLLs needed to work around problems in Wine"
58 +HOMEPAGE="https://github.com/Winetricks/winetricks https://wiki.winehq.org/Winetricks"
59 +
60 +LICENSE="LGPL-2.1+"
61 +SLOT="0"
62 +IUSE="gtk kde rar test"
63 +
64 +BDEPEND="
65 + test? (
66 + dev-python/bashate
67 + dev-util/checkbashisms
68 + dev-util/shellcheck
69 + )
70 +"
71 +DEPEND=""
72 +RDEPEND="${DEPEND}
73 + app-arch/cabextract
74 + app-arch/p7zip
75 + app-arch/unzip
76 + net-misc/wget
77 + virtual/wine
78 + x11-misc/xdg-utils
79 + gtk? ( gnome-extra/zenity )
80 + kde? ( kde-apps/kdialog )
81 + rar? ( app-arch/unrar )
82 +"
83 +
84 +# Test targets include syntax checks only, not the "heavy duty" tests
85 +# that would require a lot of disk space, as well as network access.
86 +
87 +# This uses a non-standard "Wine" category, which is provided by
88 +# '/etc/xdg/menus/applications-merged/wine.menu' from the
89 +# 'app-emulation/wine-desktop-common' package.
90 +# https://bugs.gentoo.org/451552
91 +QA_DESKTOP_FILE="usr/share/applications/winetricks.desktop"
92 +
93 +src_unpack() {
94 + if [[ ${PV} == "99999999" ]]; then
95 + git-r3_src_unpack
96 +
97 + if use gtk || use kde; then
98 + unpack ${wtg}.tar.bz2
99 + fi
100 +
101 + else
102 + default
103 + fi
104 +}
105 +
106 +src_test() {
107 + ./tests/shell-checks || die "Test(s) failed."
108 +}
109 +
110 +src_install() {
111 + default
112 +
113 + if use gtk || use kde; then
114 + cd "${WORKDIR}/${wtg}" || die
115 + domenu winetricks.desktop
116 + insinto /usr/share/icons/hicolor/scalable/apps
117 + doins wine-winetricks.svg
118 + fi
119 +}