From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7012A13934E for ; Mon, 26 Jul 2021 14:48:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B99FAE08F1; Mon, 26 Jul 2021 14:48:54 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9708DE08F1 for ; Mon, 26 Jul 2021 14:48:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 45F92342DBD for ; Mon, 26 Jul 2021 14:48:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B32827AF for ; Mon, 26 Jul 2021 14:48:51 +0000 (UTC) From: "Ronny Gutbrod" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ronny Gutbrod" Message-ID: <1627310766.e5e64ad0b5fb654751bad1f104c3989314120b0a.tastytea@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-emulation/dxvk-bin/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-emulation/dxvk-bin/Manifest app-emulation/dxvk-bin/dxvk-bin-1.9.1.ebuild X-VCS-Directories: app-emulation/dxvk-bin/ X-VCS-Committer: tastytea X-VCS-Committer-Name: Ronny Gutbrod X-VCS-Revision: e5e64ad0b5fb654751bad1f104c3989314120b0a X-VCS-Branch: dev Date: Mon, 26 Jul 2021 14:48:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 51338ca9-9b6b-401a-a226-afa9183d03b7 X-Archives-Hash: 8f605b4d6875bf8e3acb354cf21dfbd4 commit: e5e64ad0b5fb654751bad1f104c3989314120b0a Author: Ronny (tastytea) Gutbrod tastytea de> AuthorDate: Mon Jul 26 14:46:06 2021 +0000 Commit: Ronny Gutbrod tastytea de> CommitDate: Mon Jul 26 14:46:06 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e5e64ad0 app-emulation/dxvk-bin: Version bump 1.9.1 Signed-off-by: Ronny (tastytea) Gutbrod tastytea.de> app-emulation/dxvk-bin/Manifest | 1 + app-emulation/dxvk-bin/dxvk-bin-1.9.1.ebuild | 73 ++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/app-emulation/dxvk-bin/Manifest b/app-emulation/dxvk-bin/Manifest index 07d6ee2ed..ed7572ff6 100644 --- a/app-emulation/dxvk-bin/Manifest +++ b/app-emulation/dxvk-bin/Manifest @@ -1,2 +1,3 @@ DIST dxvk-bin-1.8.1.tar.gz 7942210 BLAKE2B 9c27d473037d28eb4999260f871c338e96ed08522ba9497e20eee9d5a951a73e5606ef684f67adad0f7a5ebb9559b43d42c589774666be66369ea6f605f5d8f7 SHA512 485a1fe584aa3607997d4405e61df7b67d87aec47d56bb645901b20ea6cbf2024e8ce135cd5bef6591587dc3d058650f2b6889b5cde321a8a4e4137a68cd541b +DIST dxvk-bin-1.9.1.tar.gz 8130256 BLAKE2B 50e49c69f7f43df09098e9c65089826cc4bb92bab53aeb9e07c2876fa1c07c04b600ca0598c790fb4eab6b076cc61f815e8566f6c0adbd6fc5462862fee19324 SHA512 4ab2be529c295ace85ac5731053e894383f72cb1b601b74a6fcfb581fb61568657a7e7f6842f5af1339a58ab57e33e79209f63e659732bd9774f956be2d88b31 DIST dxvk-bin-1.9.tar.gz 8111449 BLAKE2B 3800f38b26ba72fa22b59ce94f64b5cbdacefcad3515fb0c769f672c6add7d8c040e871ec412d11637bf3cbfcd30930c5a6c47917a00ce8c90e1c1d6a23197d2 SHA512 d8fadd0e88ebc11e281b75b59bb980ac8908ea5ce1c7e5849c557cd7eb257ff125b54351adbc9b04241ff2a72705f3a5fa5a9598bf571503a5808b80708f16c5 diff --git a/app-emulation/dxvk-bin/dxvk-bin-1.9.1.ebuild b/app-emulation/dxvk-bin/dxvk-bin-1.9.1.ebuild new file mode 100644 index 000000000..2db44fbf3 --- /dev/null +++ b/app-emulation/dxvk-bin/dxvk-bin-1.9.1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2021 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." +}