Gentoo Archives: gentoo-commits

From: Jimi Huotari <chiitoo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/wine:master commit in: app-emulation/winetricks/
Date: Sun, 10 Mar 2019 13:48:34
Message-Id: 1552223741.523e649c20c37e1f34ddb386eeee1d3f09e0cd27.chiitoo@gentoo
1 commit: 523e649c20c37e1f34ddb386eeee1d3f09e0cd27
2 Author: Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 10 13:15:41 2019 +0000
4 Commit: Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 10 13:15:41 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/wine.git/commit/?id=523e649c
7
8 app-emulation/winetricks: bump live ebuild to EAPI="7"
9
10 Also apply minor formatting adjustments.
11
12 Package-Manager: Portage-2.3.62, Repoman-2.3.12
13 Signed-off-by: Jimi Huotari <chiitoo <AT> gentoo.org>
14
15 .../winetricks/winetricks-99999999.ebuild | 48 +++++++++-------------
16 1 file changed, 19 insertions(+), 29 deletions(-)
17
18 diff --git a/app-emulation/winetricks/winetricks-99999999.ebuild b/app-emulation/winetricks/winetricks-99999999.ebuild
19 index 58d2e71..8c6edd0 100644
20 --- a/app-emulation/winetricks/winetricks-99999999.ebuild
21 +++ b/app-emulation/winetricks/winetricks-99999999.ebuild
22 @@ -1,9 +1,9 @@
23 -# Copyright 1999-2018 Gentoo Foundation
24 +# Copyright 1999-2019 Gentoo Authors
25 # Distributed under the terms of the GNU General Public License v2
26
27 -EAPI=6
28 +EAPI=7
29
30 -inherit gnome2-utils eutils
31 +inherit desktop xdg
32
33 if [[ ${PV} == "99999999" ]] ; then
34 EGIT_REPO_URI="https://github.com/Winetricks/${PN}.git"
35 @@ -14,11 +14,12 @@ else
36 KEYWORDS="~amd64 ~x86"
37 fi
38
39 -wtg=winetricks-gentoo-2012.11.24
40 +wtg="winetricks-gentoo-2012.11.24"
41
42 SRC_URI="${SRC_URI}
43 gtk? ( https://dev.gentoo.org/~tetromino/distfiles/wine/${wtg}.tar.bz2 )
44 - kde? ( https://dev.gentoo.org/~tetromino/distfiles/wine/${wtg}.tar.bz2 )"
45 + kde? ( https://dev.gentoo.org/~tetromino/distfiles/wine/${wtg}.tar.bz2 )
46 +"
47
48 DESCRIPTION="Easy way to install DLLs needed to work around problems in Wine"
49 HOMEPAGE="https://github.com/Winetricks/winetricks https://wiki.winehq.org/Winetricks"
50 @@ -27,13 +28,16 @@ LICENSE="LGPL-2.1+"
51 SLOT="0"
52 IUSE="gtk kde rar test"
53
54 -DEPEND="test? (
55 +BDEPEND="
56 + test? (
57 dev-python/bashate
58 dev-util/checkbashisms
59 dev-util/shellcheck
60 - )"
61 -
62 -RDEPEND="app-arch/cabextract
63 + )
64 +"
65 +DEPEND=""
66 +RDEPEND="${DEPEND}
67 + app-arch/cabextract
68 app-arch/p7zip
69 app-arch/unzip
70 net-misc/wget
71 @@ -41,7 +45,8 @@ RDEPEND="app-arch/cabextract
72 x11-misc/xdg-utils
73 gtk? ( gnome-extra/zenity )
74 kde? ( kde-apps/kdialog )
75 - rar? ( app-arch/unrar )"
76 + rar? ( app-arch/unrar )
77 +"
78
79 # Test targets include syntax checks only, not the "heavy duty" tests
80 # that would require a lot of disk space, as well as network access.
81 @@ -53,11 +58,13 @@ RDEPEND="app-arch/cabextract
82 QA_DESKTOP_FILE="usr/share/applications/winetricks.desktop"
83
84 src_unpack() {
85 - if [[ ${PV} == "99999999" ]] ; then
86 + if [[ ${PV} == "99999999" ]]; then
87 git-r3_src_unpack
88 +
89 if use gtk || use kde; then
90 unpack ${wtg}.tar.bz2
91 fi
92 +
93 else
94 default
95 fi
96 @@ -69,6 +76,7 @@ src_test() {
97
98 src_install() {
99 default
100 +
101 if use gtk || use kde; then
102 cd "${WORKDIR}/${wtg}" || die
103 domenu winetricks.desktop
104 @@ -76,21 +84,3 @@ src_install() {
105 doins wine-winetricks.svg
106 fi
107 }
108 -
109 -pkg_preinst() {
110 - if use gtk || use kde; then
111 - gnome2_icon_savelist
112 - fi
113 -}
114 -
115 -pkg_postinst() {
116 - if use gtk || use kde; then
117 - gnome2_icon_cache_update
118 - fi
119 -}
120 -
121 -pkg_postrm() {
122 - if use gtk || use kde; then
123 - gnome2_icon_cache_update
124 - fi
125 -}