1 |
commit: 934ca47a6abdd1abe2191bf40f5e82023d0eaec0 |
2 |
Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de> |
3 |
AuthorDate: Wed Oct 7 17:36:40 2020 +0000 |
4 |
Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> |
5 |
CommitDate: Wed Oct 7 17:36:40 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=934ca47a |
7 |
|
8 |
app-emulation/dxvk-bin: Version bump 1.7.2. |
9 |
|
10 |
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de> |
11 |
|
12 |
app-emulation/dxvk-bin/Manifest | 1 + |
13 |
app-emulation/dxvk-bin/dxvk-bin-1.7.2.ebuild | 73 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 74 insertions(+) |
15 |
|
16 |
diff --git a/app-emulation/dxvk-bin/Manifest b/app-emulation/dxvk-bin/Manifest |
17 |
index 50218a1a..513c70f9 100644 |
18 |
--- a/app-emulation/dxvk-bin/Manifest |
19 |
+++ b/app-emulation/dxvk-bin/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST dxvk-bin-1.7.1.tar.gz 7863711 BLAKE2B f6302e254864fda8a6cac17917c41c77974eeeeb1e2bf0270b0faaa4449d709036ff065e48b5c20e9be92dc8be0b4dbfe87b03056e168f5f47ee54327bd8a513 SHA512 8fef547446d1305f70153f1168ea54f9fab461d32f2209fecf400074724a400ed495f21982e4d4c57cf7af1902a58104ab67c8aa4ca29f4c827fb2aac711a855 |
22 |
+DIST dxvk-bin-1.7.2.tar.gz 7881987 BLAKE2B 5f9a9bab7807b37cd56108a36c4c00f52897d07c4a5b50a61f97d3d5f6ea1f14d5b5effdbf2bc8faf78c965449b41d9792b6f20c2233e7ae6912dad5dc117ef3 SHA512 88ce06c3a37384341906b1f1082c4ddcfdcb13032909414f922600da2c9d1b6697f0fe0fcf1b8a46e60c30f2391f5a01d042606cf3cd161d5f0632de610ff929 |
23 |
DIST dxvk-bin-1.7.tar.gz 7734725 BLAKE2B f608a4f228f62b3240a796c2a7fcf514208a1bb421a912405374b4d3a36b17e4172e61bee0722b072f606861325ae988f5ef660ee987c34c9319c1fa1ccf25fe SHA512 c0456c5106ef4a58e7ee1e093557a5769a56430a3907381bccccbaccf17b0af0791b052c41deb2bc7505337d56ef33ba0cfbbfdbb579263ff63ddbf4fbaf1eec |
24 |
|
25 |
diff --git a/app-emulation/dxvk-bin/dxvk-bin-1.7.2.ebuild b/app-emulation/dxvk-bin/dxvk-bin-1.7.2.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000..ff390688 |
28 |
--- /dev/null |
29 |
+++ b/app-emulation/dxvk-bin/dxvk-bin-1.7.2.ebuild |
30 |
@@ -0,0 +1,73 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+MULTILIB_COMPAT=( abi_x86_{32,64} ) |
37 |
+inherit multilib-minimal |
38 |
+ |
39 |
+MY_P="dxvk-${PV}" |
40 |
+DESCRIPTION="Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine" |
41 |
+HOMEPAGE="https://github.com/doitsujin/dxvk" |
42 |
+SRC_URI="https://github.com/doitsujin/dxvk/releases/download/v${PV}/${MY_P}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="ZLIB" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64" |
47 |
+IUSE="video_cards_nvidia" |
48 |
+ |
49 |
+DEPEND="" |
50 |
+RDEPEND=" |
51 |
+ || ( |
52 |
+ video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-440.31 ) |
53 |
+ >=media-libs/mesa-19.2 |
54 |
+ ) |
55 |
+ || ( |
56 |
+ >=app-emulation/wine-staging-4.5[${MULTILIB_USEDEP},vulkan] |
57 |
+ >=app-emulation/wine-vanilla-4.5[${MULTILIB_USEDEP},vulkan] |
58 |
+ ) |
59 |
+" |
60 |
+ |
61 |
+S="${WORKDIR}/${MY_P}" |
62 |
+ |
63 |
+# NOTE: Various repos contain dxvk ebuilds that install into …/dxvk. |
64 |
+# To not clash with them, this ebuild installs into …/dxvk-bin. |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ default |
68 |
+ |
69 |
+ sed -i "s|^basedir=.*$|basedir=\"${EPREFIX}\"|" setup_dxvk.sh || die |
70 |
+ |
71 |
+ # Delete installation instructions for unused ABIs. |
72 |
+ if ! use abi_x86_64; then |
73 |
+ sed -i '/installFile "$win64_sys_path"/d' setup_dxvk.sh || die |
74 |
+ fi |
75 |
+ if ! use abi_x86_32; then |
76 |
+ sed -i '/installFile "$win32_sys_path"/d' setup_dxvk.sh || die |
77 |
+ fi |
78 |
+ |
79 |
+ fix_install_dir() { |
80 |
+ local bits="${MULTILIB_ABI_FLAG:8:2}" |
81 |
+ # Fix installation directory. |
82 |
+ sed -i "s|\"x${bits}\"|\"usr/$(get_libdir)/dxvk-bin\"|" \ |
83 |
+ setup_dxvk.sh || die |
84 |
+ } |
85 |
+ multilib_foreach_abi fix_install_dir |
86 |
+} |
87 |
+ |
88 |
+multilib_src_install() { |
89 |
+ local bits="${MULTILIB_ABI_FLAG:8:2}" |
90 |
+ insinto "usr/$(get_libdir)/dxvk-bin" |
91 |
+ insopts --mode=755 |
92 |
+ doins "${S}/x${bits}/"*.dll |
93 |
+} |
94 |
+ |
95 |
+multilib_src_install_all() { |
96 |
+ newbin setup_dxvk.sh setup_dxvk-bin.sh |
97 |
+} |
98 |
+ |
99 |
+pkg_postinst() { |
100 |
+ elog "dxvk-bin is installed, but not activated. You have to create DLL overrides" |
101 |
+ elog "in order to make use of it. To do so, set WINEPREFIX and execute" |
102 |
+ elog "setup_dxvk-bin.sh install --symlink." |
103 |
+} |