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