From ac2304102ab71ec31f48ce2ac2a80ceb8432e43f Mon Sep 17 00:00:00 2001 From: "Ronny (tastytea) Gutbrod" Date: Tue, 21 Apr 2020 20:56:20 +0200 Subject: [PATCH 1/2] app-emulation/dxvk-bin: New package. Signed-off-by: Ronny (tastytea) Gutbrod --- app-emulation/dxvk-bin/Manifest | 1 + app-emulation/dxvk-bin/dxvk-bin-1.6.1.ebuild | 73 ++++++++++++++++++++ app-emulation/dxvk-bin/metadata.xml | 11 +++ 3 files changed, 85 insertions(+) create mode 100644 app-emulation/dxvk-bin/Manifest create mode 100644 app-emulation/dxvk-bin/dxvk-bin-1.6.1.ebuild create mode 100644 app-emulation/dxvk-bin/metadata.xml diff --git a/app-emulation/dxvk-bin/Manifest b/app-emulation/dxvk-bin/Manifest new file mode 100644 index 0000000000..0f3123601b --- /dev/null +++ b/app-emulation/dxvk-bin/Manifest @@ -0,0 +1 @@ +DIST dxvk-bin-1.6.1.tar.gz 7727663 BLAKE2B 92bda9fc1a060d2a16eee9938e245bf0b1e88f4f018dd32252ec6ab1719828b3297fb7c9b54f7f3a323944c116027a161fba6896a6f95aef748a271be019dd91 SHA512 d92c3855204b7c86e7c27cd0db9ba0975b0680ee593074caaa93fc37cb6dd95563ce454747d6acbeb190ddadbb3222fc2c304554b133919de2c19da960213aed diff --git a/app-emulation/dxvk-bin/dxvk-bin-1.6.1.ebuild b/app-emulation/dxvk-bin/dxvk-bin-1.6.1.ebuild new file mode 100644 index 0000000000..ff39068883 --- /dev/null +++ b/app-emulation/dxvk-bin/dxvk-bin-1.6.1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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-19.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." +} diff --git a/app-emulation/dxvk-bin/metadata.xml b/app-emulation/dxvk-bin/metadata.xml new file mode 100644 index 0000000000..124ec817c9 --- /dev/null +++ b/app-emulation/dxvk-bin/metadata.xml @@ -0,0 +1,11 @@ + + + + + gentoo@tastytea.de + tastytea + + + https://github.com/doitsujin/dxvk/issues + + From 9bc765daf2602ef384244c2c20f0e3351b994971 Mon Sep 17 00:00:00 2001 From: "Ronny (tastytea) Gutbrod" Date: Tue, 21 Apr 2020 21:26:49 +0200 Subject: [PATCH 2/2] app-emulation/dxvk-bin: Fix maintainer name in metadata. Signed-off-by: Ronny (tastytea) Gutbrod --- app-emulation/dxvk-bin/metadata.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-emulation/dxvk-bin/metadata.xml b/app-emulation/dxvk-bin/metadata.xml index 124ec817c9..cc8d34f960 100644 --- a/app-emulation/dxvk-bin/metadata.xml +++ b/app-emulation/dxvk-bin/metadata.xml @@ -3,7 +3,7 @@ gentoo@tastytea.de - tastytea + Ronny (tastytea) Gutbrod https://github.com/doitsujin/dxvk/issues