1 |
commit: 2eb26731f2bb71287138145d5839a81be8fcf6cd |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 10 23:23:52 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 3 19:46:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2eb26731 |
7 |
|
8 |
app-eselect/eselect-wine: EAPI6->8, add proton variant |
9 |
|
10 |
Ideally needs a new release (and repo), but just doing a quick |
11 |
revbump until that's sorted out. |
12 |
|
13 |
Also switched SRC_URI to tarball wrt bug #868027, uses compression |
14 |
and allows both Gentoo and users to have patches by being unpacked |
15 |
in ${S} (the S= value is not nice, but this likely won't use |
16 |
bitbucket anymore next release and be irrelevant). |
17 |
|
18 |
Closes: https://bugs.gentoo.org/868027 |
19 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
20 |
|
21 |
app-eselect/eselect-wine/Manifest | 1 + |
22 |
.../eselect-wine/eselect-wine-1.2.2-r1.ebuild | 50 ++++++++++++++++++++++ |
23 |
.../files/eselect-wine-1.2.2-proton.patch | 8 ++++ |
24 |
3 files changed, 59 insertions(+) |
25 |
|
26 |
diff --git a/app-eselect/eselect-wine/Manifest b/app-eselect/eselect-wine/Manifest |
27 |
index 8e0dc05f626f..0cff0f3f9795 100644 |
28 |
--- a/app-eselect/eselect-wine/Manifest |
29 |
+++ b/app-eselect/eselect-wine/Manifest |
30 |
@@ -1 +1,2 @@ |
31 |
+DIST eselect-wine-1.2.2.tar.gz 4712 BLAKE2B 6ce92654cf2a5197c18bc84f8db52a11f198f81f0a8116f1986e74a1795ad475d22ff5a7cb9e9e31ce8ca813059b33cfbc52763110238cb378b15bebeb4b4271 SHA512 39f4d91461f72aeb07292dc7479c5cb7fc080b843bac57dec85c43d8751227e6953d32d52d4a14387d398b73120a32b79370d686c823f230dfd1d8b32ac8113a |
32 |
DIST wine.eselect-1.2.2 19370 BLAKE2B 957eb84b7ccb24d12eba876a538f0420ab05506c87086b65c27326c80da9adcfbff032c7ecc7b5763012c6d72cc53f643f0d3ffe02687adb103517dedfad2f0e SHA512 6380e904ca824b1fe45cf651637f1cfe931f0c7519db49cb0794826ebbc8bdebc480fe7eb16601dc37123b44ea2d10aec49aa9fe622cad3e67ffb0f730292614 |
33 |
|
34 |
diff --git a/app-eselect/eselect-wine/eselect-wine-1.2.2-r1.ebuild b/app-eselect/eselect-wine/eselect-wine-1.2.2-r1.ebuild |
35 |
new file mode 100644 |
36 |
index 000000000000..5b3e569a49d6 |
37 |
--- /dev/null |
38 |
+++ b/app-eselect/eselect-wine/eselect-wine-1.2.2-r1.ebuild |
39 |
@@ -0,0 +1,50 @@ |
40 |
+# Copyright 1999-2022 Gentoo Authors |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+ |
43 |
+EAPI=8 |
44 |
+ |
45 |
+DESCRIPTION="Manage active wine version" |
46 |
+HOMEPAGE="https://bitbucket.org/NP-Hardass/eselect-wine" |
47 |
+SRC_URI="https://bitbucket.org/NP-Hardass/eselect-wine/get/v${PV}.tar.gz -> ${P}.tar.gz" |
48 |
+S="${WORKDIR}/NP-Hardass-eselect-wine-f18b76f9c90c" |
49 |
+ |
50 |
+LICENSE="GPL-2+" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="-* ~amd64 ~x86" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ app-admin/eselect |
56 |
+ dev-util/desktop-file-utils |
57 |
+ !app-emulation/wine:0" |
58 |
+ |
59 |
+PATCHES=( |
60 |
+ "${FILESDIR}"/${P}-proton.patch |
61 |
+) |
62 |
+ |
63 |
+src_install() { |
64 |
+ insinto /usr/share/eselect/modules |
65 |
+ doins wine.eselect |
66 |
+ |
67 |
+ keepdir /etc/eselect/wine |
68 |
+} |
69 |
+ |
70 |
+pkg_postinst() { |
71 |
+ # <eselect-wine-v0.3_rc7 installed symlinks with leading double-slashes. |
72 |
+ # In /usr/include this breaks gcc build. |
73 |
+ # https://bugs.gentoo.org/434180 |
74 |
+ if [[ $(readlink "${EROOT}"/usr/include/wine) == //* ]]; then |
75 |
+ ewarn "Leading double slash in ${EROOT}/usr/include/wine symlink detected." |
76 |
+ ewarn "Re-setting wine symlinks..." |
77 |
+ eselect wine update --if-unset |
78 |
+ fi |
79 |
+} |
80 |
+ |
81 |
+pkg_prerm() { |
82 |
+ # Avoid conflicts with wine[-multislot] installed later |
83 |
+ if [[ -z ${REPLACED_BY_VERSION} ]]; then |
84 |
+ elog "${PN} is being uninstalled, removing symlinks" |
85 |
+ eselect wine unset --all || die |
86 |
+ else |
87 |
+ einfo "${PN} is being updated/reinstalled, not modifying symlinks" |
88 |
+ fi |
89 |
+} |
90 |
|
91 |
diff --git a/app-eselect/eselect-wine/files/eselect-wine-1.2.2-proton.patch b/app-eselect/eselect-wine/files/eselect-wine-1.2.2-proton.patch |
92 |
new file mode 100644 |
93 |
index 000000000000..7adf263b2681 |
94 |
--- /dev/null |
95 |
+++ b/app-eselect/eselect-wine/files/eselect-wine-1.2.2-proton.patch |
96 |
@@ -0,0 +1,8 @@ |
97 |
+Temporary patch to add proton variant until a proper release |
98 |
+to update these. |
99 |
+--- a/wine.eselect |
100 |
++++ b/wine.eselect |
101 |
+@@ -14,2 +14,3 @@ |
102 |
+ staging |
103 |
++ proton |
104 |
+ d3d9 |