summaryrefslogtreecommitdiff
path: root/app-emulation/dxvk-bin
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-07-28 09:41:37 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-07-28 09:41:37 -0400
commitd241ee7943383a8ad8aacd70d5e301a6acf22c38 (patch)
tree5aaddca6d5744a9e3565da0846cbda2e1a34be3b /app-emulation/dxvk-bin
downloadgentoo-overlay-d241ee7943383a8ad8aacd70d5e301a6acf22c38.tar.xz
gentoo-overlay-d241ee7943383a8ad8aacd70d5e301a6acf22c38.zip
Initial commit
Diffstat (limited to 'app-emulation/dxvk-bin')
-rw-r--r--app-emulation/dxvk-bin/Manifest1
-rw-r--r--app-emulation/dxvk-bin/dxvk-bin-1.7.ebuild39
-rw-r--r--app-emulation/dxvk-bin/metadata.xml8
3 files changed, 48 insertions, 0 deletions
diff --git a/app-emulation/dxvk-bin/Manifest b/app-emulation/dxvk-bin/Manifest
new file mode 100644
index 0000000..d6a4439
--- /dev/null
+++ b/app-emulation/dxvk-bin/Manifest
@@ -0,0 +1 @@
+DIST dxvk-bin-1.7.tar.gz 7734725 BLAKE2B f608a4f228f62b3240a796c2a7fcf514208a1bb421a912405374b4d3a36b17e4172e61bee0722b072f606861325ae988f5ef660ee987c34c9319c1fa1ccf25fe SHA512 c0456c5106ef4a58e7ee1e093557a5769a56430a3907381bccccbaccf17b0af0791b052c41deb2bc7505337d56ef33ba0cfbbfdbb579263ff63ddbf4fbaf1eec
diff --git a/app-emulation/dxvk-bin/dxvk-bin-1.7.ebuild b/app-emulation/dxvk-bin/dxvk-bin-1.7.ebuild
new file mode 100644
index 0000000..bc0b42a
--- /dev/null
+++ b/app-emulation/dxvk-bin/dxvk-bin-1.7.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Vulkan-based D3D11 and D3D10 implementation for Linux / Wine"
+HOMEPAGE="https://github.com/doitsujin/dxvk"
+SRC_URI="https://github.com/doitsujin/dxvk/releases/download/v${PV}/dxvk-${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+# x86 is fine except for the stupid vulkan package.use.mask...
+KEYWORDS="-* ~amd64"
+IUSE="+abi_x86_32 +abi_x86_64"
+
+RDEPEND="
+ !app-emulation/dxvk
+ || (
+ app-emulation/wine-vanilla[abi_x86_32?,abi_x86_64?,vulkan]
+ app-emulation/wine-staging[abi_x86_32?,abi_x86_64?,vulkan]
+ )
+"
+
+REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )"
+
+S=${WORKDIR}/dxvk-${PV}
+
+src_compile() {
+ sed -i -e 's#"x32"#"../'$(ABI=x86 get_libdir)/dxvk'"#' setup_dxvk.sh || die
+ sed -i -e 's#"x64"#"../'$(ABI=amd64 get_libdir)/dxvk'"#' setup_dxvk.sh || die
+}
+
+src_install() {
+ dobin setup_dxvk.sh
+ dodir usr/$(ABI=x86 get_libdir)
+ dodir usr/$(ABI=amd64 get_libdir)
+ mv x32 "${ED}"/usr/$(ABI=x86 get_libdir)/dxvk || die
+ mv x64 "${ED}"/usr/$(ABI=amd64 get_libdir)/dxvk || die
+}
diff --git a/app-emulation/dxvk-bin/metadata.xml b/app-emulation/dxvk-bin/metadata.xml
new file mode 100644
index 0000000..004555a
--- /dev/null
+++ b/app-emulation/dxvk-bin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alex_y_xu@yahoo.ca</email>
+ <name>Alex Xu (Hello71)</name>
+ </maintainer>
+</pkgmetadata>