1 |
commit: 56a38a5d1550f50b24ec853d3c6a7b088e4e2597 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 29 13:09:35 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 29 13:24:56 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56a38a5d |
7 |
|
8 |
app-emulation/dxvk: temporarily restore setup_dxvk.sh |
9 |
|
10 |
Better than nothing until come up with a solution. |
11 |
|
12 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
13 |
|
14 |
app-emulation/dxvk/Manifest | 1 + |
15 |
app-emulation/dxvk/dxvk-9999.ebuild | 24 +++++++++++++++--------- |
16 |
2 files changed, 16 insertions(+), 9 deletions(-) |
17 |
|
18 |
diff --git a/app-emulation/dxvk/Manifest b/app-emulation/dxvk/Manifest |
19 |
index cb5fcb265509..927801e2e7ad 100644 |
20 |
--- a/app-emulation/dxvk/Manifest |
21 |
+++ b/app-emulation/dxvk/Manifest |
22 |
@@ -2,3 +2,4 @@ DIST dxvk-1.10.3.tar.gz 1204407 BLAKE2B 3507ffe4abf9c45f2a138b05e7cf706322a6bf3d |
23 |
DIST dxvk-2.0.tar.gz 943397 BLAKE2B 7d59050e8ac3f9be311d11323cc0057d84c3b730360fe9e064ff4a5e2db5bffea5bae3214da366c60295ec5f1577ab08e2776274c9aaff7a7de1b9f2cefa836a SHA512 98537bdec2b5e4f2ead5b93ab49db717e0706fe771a82a6ef1e5b5792c1bdd3f417cd6b6b2deadb1397b8a0740445fa88b9fb6c1f73510cc5c0e7ae35d65bcac |
24 |
DIST dxvk-spirv-headers-0bcc624926.tar.gz 437771 BLAKE2B 08815e36ad99b84777e38ad0c5616b6608a552f993e7f67433f2b8e20de81e9bce41420ac5998f5b67bca70a92ce70aed91b238990bd431c7b97070dfb0c5a60 SHA512 5995cf75d5605d41e9643bca81c195ef5aaa17d596e0282807f6fa8f8c494f7b63a41d611c535ae43dc3d609436aabef1e0d89626f37e6f20bad17b5e122e32c |
25 |
DIST dxvk-vulkan-headers-98f440ce68.tar.gz 1691979 BLAKE2B bf6fd288f16df7adcb5cebeb6e13713db1c26a0b833dead2fb522227861abc60b2d0cda8e3f46f8e89cccb629e01081ba27763989ad6fd336c60a475b198c1c8 SHA512 69238d37d0af0162e0fd68094cd2fa9baa320497d34a9de491dea086c23291d0815b51e89218b1f0ee2b3314cbc8ac1809d6edb15ca51fcb282fe1e2b39a1a77 |
26 |
+DIST setup_dxvk.sh 4631 BLAKE2B 25270e1f6dfd446b1d124eac3bd19da8bc770527d02d987949fc3ae0bead07866dafa25f77a90b9a408413a724354a29a4a156ff5c9dc75e26b66e079824ec86 SHA512 257fd84e29a7037f04a1a2a506502c71d527af58f8c84d8c3dfb64597ebdc41c3dca362eaf20ab4bc1982b76428c1f843815d56a6e1369d072e0009e270cb121 |
27 |
|
28 |
diff --git a/app-emulation/dxvk/dxvk-9999.ebuild b/app-emulation/dxvk/dxvk-9999.ebuild |
29 |
index 167b7c5d6901..8f2c2de55196 100644 |
30 |
--- a/app-emulation/dxvk/dxvk-9999.ebuild |
31 |
+++ b/app-emulation/dxvk/dxvk-9999.ebuild |
32 |
@@ -26,6 +26,8 @@ else |
33 |
-> ${PN}-vulkan-headers-${HASH_VULKAN::10}.tar.gz" |
34 |
KEYWORDS="-* ~amd64 ~x86" |
35 |
fi |
36 |
+# setup_dxvk.sh is no longer provided, fetch old until a better solution |
37 |
+SRC_URI+=" https://raw.githubusercontent.com/doitsujin/dxvk/cd21cd7fa3b0df3e0819e21ca700b7627a838d69/setup_dxvk.sh" |
38 |
|
39 |
DESCRIPTION="Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine" |
40 |
HOMEPAGE="https://github.com/doitsujin/dxvk/" |
41 |
@@ -71,6 +73,9 @@ src_prepare() { |
42 |
fi |
43 |
|
44 |
default |
45 |
+ |
46 |
+ sed "/^basedir=/s|=.*|=${EPREFIX}/usr/lib/${PN}|" \ |
47 |
+ "${DISTDIR}"/setup_dxvk.sh > setup_dxvk.sh || die |
48 |
} |
49 |
|
50 |
src_configure() { |
51 |
@@ -118,6 +123,7 @@ multilib_src_configure() { |
52 |
} |
53 |
|
54 |
multilib_src_install_all() { |
55 |
+ dobin setup_dxvk.sh |
56 |
dodoc README.md dxvk.conf |
57 |
|
58 |
find "${ED}" -type f -name '*.a' -delete || die |
59 |
@@ -128,15 +134,15 @@ pkg_preinst() { |
60 |
} |
61 |
|
62 |
pkg_postinst() { |
63 |
- # TODO: setup_dxvk.sh script was removed, need to figure out a new way to |
64 |
- # explain/handle (leaving this alone for now in live in case gets restored) |
65 |
-# if [[ ! ${REPLACING_VERSIONS} ]]; then |
66 |
-# elog "To enable ${PN} on a wine prefix, you can run the following command:" |
67 |
-# elog |
68 |
-# elog " WINEPREFIX=/path/to/prefix setup_dxvk.sh install --symlink" |
69 |
-# elog |
70 |
-# elog "See ${EROOT}/usr/share/doc/${PF}/README.md* for details." |
71 |
- if [[ -v DXVK_HAD_OVERLAY ]]; then |
72 |
+ if [[ ! ${REPLACING_VERSIONS} ]]; then |
73 |
+ elog "To enable ${PN} on a wine prefix, you can run the following command:" |
74 |
+ elog |
75 |
+ elog " WINEPREFIX=/path/to/prefix setup_dxvk.sh install --symlink" |
76 |
+ elog |
77 |
+ elog "See ${EROOT}/usr/share/doc/${PF}/README.md* for details." |
78 |
+ elog "Note: setup_dxvk.sh is unofficially temporarily provided as it was" |
79 |
+ elog "removed upstream, handling may change in the future." |
80 |
+ elif [[ -v DXVK_HAD_OVERLAY ]]; then |
81 |
# temporary warning until this version is more widely used |
82 |
elog "Gentoo's main repo ebuild for ${PN} uses different paths than most overlays." |
83 |
elog "If you were using symbolic links in wine prefixes it may be necessary to" |