aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny (tastytea) Gutbrod <gentoo@tastytea.de>2022-01-25 12:37:16 +0100
committerRonny (tastytea) Gutbrod <gentoo@tastytea.de>2022-01-25 12:44:43 +0100
commit1c6b6f2c9d96f99741454de0d8f1c15670c29ec3 (patch)
treeceded4bb50a81e26ffd5cfc41ed7e15caed27b73 /app-emulation
parentgames-util/legendary: Remove old ebuild (diff)
downloadguru-1c6b6f2c9d96f99741454de0d8f1c15670c29ec3.tar.gz
guru-1c6b6f2c9d96f99741454de0d8f1c15670c29ec3.tar.bz2
guru-1c6b6f2c9d96f99741454de0d8f1c15670c29ec3.zip
app-emulation/dxvk-bin: Version bump 1.9.4
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/dxvk-bin/Manifest1
-rw-r--r--app-emulation/dxvk-bin/dxvk-bin-1.9.4.ebuild73
2 files changed, 74 insertions, 0 deletions
diff --git a/app-emulation/dxvk-bin/Manifest b/app-emulation/dxvk-bin/Manifest
index 1a9ab1a87..c4d952cb9 100644
--- a/app-emulation/dxvk-bin/Manifest
+++ b/app-emulation/dxvk-bin/Manifest
@@ -1,2 +1,3 @@
DIST dxvk-bin-1.9.2.tar.gz 8141894 BLAKE2B 69fbecc6328e00aea6196144762dbbcac4d6c1b66b91ed11477a4f533977b950caf26f113f120a9c60d75ac91d974499ce24822862df394ded7f2e24c42f4448 SHA512 5f5fcba0b36270f9c5bb52ae62b3fa4acf0d865b63a1b48c05ab6901ccd716f8b71399773eb2d4fbf66e7606322de1598aebf4414138a73ee1063c77382dd444
DIST dxvk-bin-1.9.3.tar.gz 8233946 BLAKE2B e58e8ff3b9ba8c54029b6b5588826697a2547571308364ec85480f4766d985fc06fa57b77fa89d2d2c988d722fc82296108a84075559f2b4a5fc968331b0fe31 SHA512 a88baa78b792575bc45d9a36831eab72a5c4fa93001cc96a109cbb42b5d922a1c8569784c0e40780f13b7200b6644e30443155cfcecd375f1c6ad0d980a20d25
+DIST dxvk-bin-1.9.4.tar.gz 8242967 BLAKE2B 166ecca8e636df8ccb607e4eb52c798a9da5c97233546498ab35f1cc74f0647f9b7a6120aa62ca9b5044d8797008bc40e94fbb83fc220000950512495d41512a SHA512 96182528d13c7e020545a25eb49ef7ca66ad7ccfd5942992be25757c92e2cd710beeb2450f44973d887ebae5d7346d6a4e3fc3fbcbbde338d7def83602604dc7
diff --git a/app-emulation/dxvk-bin/dxvk-bin-1.9.4.ebuild b/app-emulation/dxvk-bin/dxvk-bin-1.9.4.ebuild
new file mode 100644
index 000000000..c0a5717dd
--- /dev/null
+++ b/app-emulation/dxvk-bin/dxvk-bin-1.9.4.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MULTILIB_COMPAT=( abi_x86_{32,64} )
+inherit multilib-minimal
+
+MY_P="dxvk-${PV}"
+DESCRIPTION="Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine"
+HOMEPAGE="https://github.com/doitsujin/dxvk"
+SRC_URI="https://github.com/doitsujin/dxvk/releases/download/v${PV}/${MY_P}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="video_cards_nvidia"
+
+DEPEND=""
+RDEPEND="
+ || (
+ video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-440.31 )
+ >=media-libs/mesa-20.2
+ )
+ || (
+ >=app-emulation/wine-staging-4.5[${MULTILIB_USEDEP},vulkan]
+ >=app-emulation/wine-vanilla-4.5[${MULTILIB_USEDEP},vulkan]
+ )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+# NOTE: Various repos contain dxvk ebuilds that install into …/dxvk.
+# To not clash with them, this ebuild installs into …/dxvk-bin.
+
+src_prepare() {
+ default
+
+ sed -i "s|^basedir=.*$|basedir=\"${EPREFIX}\"|" setup_dxvk.sh || die
+
+ # Delete installation instructions for unused ABIs.
+ if ! use abi_x86_64; then
+ sed -i '/installFile "$win64_sys_path"/d' setup_dxvk.sh || die
+ fi
+ if ! use abi_x86_32; then
+ sed -i '/installFile "$win32_sys_path"/d' setup_dxvk.sh || die
+ fi
+
+ fix_install_dir() {
+ local bits="${MULTILIB_ABI_FLAG:8:2}"
+ # Fix installation directory.
+ sed -i "s|\"x${bits}\"|\"usr/$(get_libdir)/dxvk-bin\"|" \
+ setup_dxvk.sh || die
+ }
+ multilib_foreach_abi fix_install_dir
+}
+
+multilib_src_install() {
+ local bits="${MULTILIB_ABI_FLAG:8:2}"
+ insinto "usr/$(get_libdir)/dxvk-bin"
+ insopts --mode=755
+ doins "${S}/x${bits}/"*.dll
+}
+
+multilib_src_install_all() {
+ newbin setup_dxvk.sh setup_dxvk-bin.sh
+}
+
+pkg_postinst() {
+ elog "dxvk-bin is installed, but not activated. You have to create DLL overrides"
+ elog "in order to make use of it. To do so, set WINEPREFIX and execute"
+ elog "setup_dxvk-bin.sh install --symlink."
+}