Gentoo Archives: gentoo-commits

From: NP Hardass <np-hardass@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/winetricks/
Date: Fri, 29 Jul 2016 04:49:07
Message-Id: 1469767731.35d9cc7a46214dd79d579a3f9a77581b6893424a.np-hardass@gentoo
1 commit: 35d9cc7a46214dd79d579a3f9a77581b6893424a
2 Author: Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 25 13:39:48 2016 +0000
4 Commit: NP Hardass <np-hardass <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 29 04:48:51 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35d9cc7a
7
8 app-emulation/winetricks: Version bump to 20160724.
9
10 Package-Manager: portage-2.3.0
11
12 Signed-off-by: NP-Hardass <NP-Hardass <AT> gentoo.org>
13
14 app-emulation/winetricks/Manifest | 1 +
15 .../winetricks/winetricks-20160724.ebuild | 85 ++++++++++++++++++++++
16 2 files changed, 86 insertions(+)
17
18 diff --git a/app-emulation/winetricks/Manifest b/app-emulation/winetricks/Manifest
19 index baed78a..63f3fdf 100644
20 --- a/app-emulation/winetricks/Manifest
21 +++ b/app-emulation/winetricks/Manifest
22 @@ -1,2 +1,3 @@
23 DIST winetricks-20160709.tar.gz 173713 SHA256 c21a7bb4c312eeea27325d82160fee5e6961387fd396540d78d57a590df1ebe5 SHA512 8624cb8c1152f637fb46f66035059e6832e5d083e2df6737d8e6ec5a5981dc2650e1160ad3de04ab120e971a2f9a7df906f10fe95951db258217f6f0774d5b84 WHIRLPOOL 305b64049670d01fd8f3544b38033df10e11d49e2033c65688d9eddeda305f51cdfa5aeded05bda3a4239105ad03f071aa785eac200f61da2581c406db3c43d6
24 +DIST winetricks-20160724.tar.gz 173873 SHA256 dbacdbc241a2bc55b0174ff06f828528bbc2bbf0a0d15c077f75d2f6acda8186 SHA512 ae94b5f039ab4109e40bfb0ee94c100c1f7573ec34dcc4f6d10094a4d5e27ada38e77343c912034c973c0b4dd55f66a31b8be6c75075681f4bd503c3751c0494 WHIRLPOOL c7c8bcc4f29eb757d0b12f528c74d6e1faa4590cda8a844d7c43047bda52f6ef0b081c6e5eb87854f050cd9c96889069586c79e549bd4324e8b8ca930b2b7815
25 DIST winetricks-gentoo-2012.11.24.tar.bz2 6398 SHA256 dded8c294cc5c2e71e4a5d1531ab165178cf3d2d1d890d0656368c2e499bfeb9 SHA512 59c93b73f3a7b2d11aefcde2ff66659ff1de21ad4b5f232f4b60572f3a48b15a6c49f369b1696862bf1b33fde190bf5598945e9536fb41ddec42d8def4d2be2a WHIRLPOOL 268da9e06712a678fbbcfff8eac1fca364b5e46f0a9c48a591eb88f03260b1a55f203eb2908bfe1f0a534b77c866127ff6f7049b0e43fe8abeaaa26fe55de75b
26
27 diff --git a/app-emulation/winetricks/winetricks-20160724.ebuild b/app-emulation/winetricks/winetricks-20160724.ebuild
28 new file mode 100644
29 index 0000000..b8aef92
30 --- /dev/null
31 +++ b/app-emulation/winetricks/winetricks-20160724.ebuild
32 @@ -0,0 +1,85 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=6
38 +
39 +inherit gnome2-utils eutils
40 +
41 +if [[ ${PV} == "99999999" ]] ; then
42 + EGIT_REPO_URI="git://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/~tetromino/distfiles/wine/${wtg}.tar.bz2 )
54 + kde? ( https://dev.gentoo.org/~tetromino/distfiles/wine/${wtg}.tar.bz2 )"
55 +
56 +DESCRIPTION="Easy way to install DLLs needed to work around problems in Wine"
57 +HOMEPAGE="http://winetricks.org http://wiki.winehq.org/winetricks"
58 +
59 +LICENSE="LGPL-2.1+"
60 +SLOT="0"
61 +IUSE="gtk kde rar"
62 +
63 +DEPEND=""
64 +RDEPEND="app-arch/cabextract
65 + app-arch/p7zip
66 + app-arch/unzip
67 + app-emulation/wine
68 + net-misc/wget
69 + x11-misc/xdg-utils
70 + gtk? ( gnome-extra/zenity )
71 + kde? ( kde-apps/kdialog )
72 + rar? ( app-arch/unrar )"
73 +
74 +# Uses a non-standard "Wine" category, which is provided by app-emulation/wine; #451552
75 +QA_DESKTOP_FILE="usr/share/applications/winetricks.desktop"
76 +
77 +# Tests require network access and run Wine, which is unreliable from a portage environment.
78 +RESTRICT="test"
79 +
80 +src_unpack() {
81 + if [[ ${PV} == "99999999" ]] ; then
82 + git-r3_src_unpack
83 + if use gtk || use kde; then
84 + unpack ${wtg}.tar.bz2
85 + fi
86 + else
87 + default
88 + fi
89 +}
90 +
91 +src_install() {
92 + default
93 + if use gtk || use kde; then
94 + cd "${WORKDIR}/${wtg}" || die
95 + domenu winetricks.desktop
96 + insinto /usr/share/icons/hicolor/scalable/apps
97 + doins wine-winetricks.svg
98 + fi
99 +}
100 +
101 +pkg_preinst() {
102 + if use gtk || use kde; then
103 + gnome2_icon_savelist
104 + fi
105 +}
106 +
107 +pkg_postinst() {
108 + if use gtk || use kde; then
109 + gnome2_icon_cache_update
110 + fi
111 +}
112 +
113 +pkg_postrm() {
114 + if use gtk || use kde; then
115 + gnome2_icon_cache_update
116 + fi
117 +}