From abe9073e962969c34fbac9e00af9d69885a07138 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 20 Apr 2020 13:49:24 +0200 Subject: [PATCH] app-emulation/dxvk: Version bump 1.6.1. --- app-emulation/dxvk/Manifest | 10 +-- app-emulation/dxvk/dxvk-1.6.1.ebuild | 102 +++++++++++++++++++++++++++ 2 files changed, 108 insertions(+), 4 deletions(-) create mode 100644 app-emulation/dxvk/dxvk-1.6.1.ebuild diff --git a/app-emulation/dxvk/Manifest b/app-emulation/dxvk/Manifest index 2c771ee..62e03a7 100644 --- a/app-emulation/dxvk/Manifest +++ b/app-emulation/dxvk/Manifest @@ -4,15 +4,17 @@ Hash: SHA512 AUX 1.6-fix-setEvent-error.patch 621 BLAKE2B c751a08dcd4a7bf14c5f049dbc0787b373f7de6f79379f4993459b9b0762f6a13334bae2b25e802d0013f943f449f24145d58ebee342694943489bb24e6e2d96 SHA512 01f0c0458b72e433988445be80f7f8e4407a8cffe9c79f7a21c7657de2b775949a8d11b6a9f4197fc2d59ef79b8fe431bb653ef3467fc451fa5c8a161b223908 AUX flags.patch 1400 BLAKE2B c69951eddea7b94836e9d64b39870395c4eb54dcfff31fb9ff9eafa801d989acddcf738802bbc3600a871053546dc5f641726f7e75cfdb9f101973aebd2b3571 SHA512 fd4a053775a4ab7b4df24da38ba602a5e8d43a75676bf3e870a82dd4f4e3bcf228e043139604c95941b09086ecd21887a8eaf81f2229d00abb47fdc83419284c DIST dxvk-1.5.5.tar.gz 889000 BLAKE2B 52878a5fdd060e8a6f771a9247f141a10f11d33633240cb7aebd8421a16b0d7456989412c6b80a49e037721c12b4737a9f02949a432b2b0ea22613a47ba8bd5b SHA512 b0a71dc6383aadfe55d30d73c3aefa63785882056d53d484e6d81b4bd85d40a1cf1840b61ecb03e21a3e8ed4e9a2c2d3d8ccbbadb956752f0356fe7e1a59ab10 +DIST dxvk-1.6.1.tar.gz 894553 BLAKE2B a45f905f33b255beed65daebbb946b36c28d00dc4d3830e46de342f16d95541361a31243e6ce3e8cde3b2c7297dd2b1044aa61955f1803b8bfb34ec83367c2a9 SHA512 0f3cb7096643d1bcb1db51696824c8ca16720adfe6894392122b21f400cfa416e79eb74cdcc46d1a63a276697d324324d7657afb70b9490e22e6792643fc5805 DIST dxvk-1.6.tar.gz 892463 BLAKE2B 84d1ca0b42b9b63c5efa15d284ffedd76d4f5c09a1ca3e51971d36d68f0a5346f4bf3e5ee119a90fdbf489a3e21137e9d981710cb2b33b4b6a195f941baefa15 SHA512 5b1ba21515e5f7a75baba1e182a0b15285712c2a6e8946fcc0eadb82b64d43122e1c211304af2c890e368098fd2a69d174f86c05f9b0de0b417b0f2390d4a0ca EBUILD dxvk-1.5.5.ebuild 2303 BLAKE2B 39fc82ff1920d036669f4c11337f68746c77ceac92c3cd1a1150ce682deccb8178e40be285079b297969a81ca5da2ba367188ab7e821b94a37342d85f12864d9 SHA512 f5abd9a6d5c76402830718715e37db5817a7a4224729388e20e471cdaa6a134fd37f8006b94fd8534adf6e50855d7fe3e62515265b8b3e304f0fed2cf1d90f61 +EBUILD dxvk-1.6.1.ebuild 2381 BLAKE2B c77d62c0dc71ec4f78fe7d5dc15435b123bfd97073dd05d1fbfadf69c84bec940bbe7fcdba2cfff9a841f00a5079f9ddc5651991893828072ea76ea9554b2a8d SHA512 b36a83d0065d8216a01ec6a1b50bc842acbac9f25b0315bbf250df2cb6413dca709464ef9e081ea4fa7c0ce41cf357abc19793c9925db16a319ecc4387fdd844 EBUILD dxvk-1.6.ebuild 2381 BLAKE2B c77d62c0dc71ec4f78fe7d5dc15435b123bfd97073dd05d1fbfadf69c84bec940bbe7fcdba2cfff9a841f00a5079f9ddc5651991893828072ea76ea9554b2a8d SHA512 b36a83d0065d8216a01ec6a1b50bc842acbac9f25b0315bbf250df2cb6413dca709464ef9e081ea4fa7c0ce41cf357abc19793c9925db16a319ecc4387fdd844 EBUILD dxvk-9999-r3.ebuild 2996 BLAKE2B 85d6d7b1794ab281b382bc59ac1c5a5443f61116e1b9ccd18b599bb4b486830010406a53e14c266d60cca4d0ad90b32669e2cfb3e9ba6f1087f65c64f67e6717 SHA512 dcf51ec07f8c4ca489185467e40cbad995fa87d090062621325eed674e47cd6a598942c390839eddc5dc2f9312d6682d1fefb95d3614a7ac8125fa94d6719410 MISC metadata.xml 500 BLAKE2B f52f73c13f36ee4ad4006cd73c7bbea3e05c750f638c29c13ece73874a2980d2c62d74ceae4b2785ea862f27db19db4c79c179e7d546c02bb21bf871e859cda2 SHA512 f3c874cf60ae01bf03ed422229ca66326f7962e7bb9e2605f0f7ae906c3c3799ddd87d41110af875fd6a0cc95b2992c6adcace9fbc0baf97aba23e4e54591f66 -----BEGIN PGP SIGNATURE----- -iHUEAREKAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXpz3+QAKCRDPw5SX8bJu -BzqlAP47mf2j2v7gFpNRf+9O4stCLj0lRJgCb1jKSXxnyObvRwD7BbAcgrdkAiKZ -TVABOH8tJIUlh1VnZ2QS04CrtHYaxrg= -=9hRi +iHUEAREKAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXp2MRQAKCRDPw5SX8bJu +Bx8sAPsHrqDZx/Pvg3FZhLhhnL5TQ/aU4oDwyKwQ6bWxk7kHAgD/VQkpbhgEw3Ox +58a963dttwxYkOqK2iHy2gDLLv9o/no= +=QBR1 -----END PGP SIGNATURE----- diff --git a/app-emulation/dxvk/dxvk-1.6.1.ebuild b/app-emulation/dxvk/dxvk-1.6.1.ebuild new file mode 100644 index 0000000..8837b7b --- /dev/null +++ b/app-emulation/dxvk/dxvk-1.6.1.ebuild @@ -0,0 +1,102 @@ +# 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 meson multilib-minimal ninja-utils +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 +fi + +DESCRIPTION="Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine" +HOMEPAGE="https://github.com/doitsujin/dxvk" +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/doitsujin/dxvk.git" +else + SRC_URI="https://github.com/doitsujin/dxvk/archive/v${PV}.tar.gz -> ${P}.tar.gz" +fi + +LICENSE="ZLIB" +SLOT="0" +if [[ "${PV}" == "9999" ]]; then + KEYWORDS="" +else + KEYWORDS="~amd64 ~x86" +fi +IUSE="video_cards_nvidia" + +DEPEND=" + dev-util/vulkan-headers + dev-util/glslang +" +BDEPEND=" + || ( + >=app-emulation/wine-staging-4.5[${MULTILIB_USEDEP}] + >=app-emulation/wine-vanilla-4.5[${MULTILIB_USEDEP}] + ) +" +RDEPEND=" + media-libs/vulkan-loader[${MULTILIB_USEDEP}] + || ( + video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-440.31 ) + >=media-libs/mesa-19.2 + ) +" + +PATCHES=( + "${FILESDIR}/1.6-fix-setEvent-error.patch" +) + +pkg_pretend () { + if ! use abi_x86_64 && ! use abi_x86_32; then + eerror "You need to enable at least one of abi_x86_32 and abi_x86_64." + die + fi +} + +src_prepare() { + default + sed -i "s|^basedir=.*$|basedir=\"${EPREFIX}\"|" setup_dxvk.sh || die + sed -i "s|\"x64\"|\"usr/${LIBDIR_amd64}/dxvk\"|" setup_dxvk.sh || die + sed -i "s|\"x32\"|\"usr/${LIBDIR_x86}/dxvk\"|" setup_dxvk.sh || die + + 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 +} + +multilib_src_configure() { + local bit="${MULTILIB_ABI_FLAG:8:2}" + + local emesonargs=( + --libdir=$(get_libdir)/dxvk + --bindir=$(get_libdir)/dxvk/bin + --cross-file=../${P}/build-wine${bit}.txt + ) + meson_src_configure || die +} + +multilib_src_compile() { + EMESON_SOURCE="${S}" + meson_src_compile || die +} + +multilib_src_install() { + meson_src_install +} + +multilib_src_install_all() { + dobin setup_dxvk.sh || die +} + +pkg_postinst() { + elog "dxvk 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.sh install --symlink." + + elog "D9VK is part of DXVK since 1.5. If use symlinks, don't forget to link the new libraries." +}