Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/directx-headers/
Date: Tue, 06 Sep 2022 16:03:33
Message-Id: 1662480203.5731299155df8c5e614383a356813f04fd6bc082.mattst88@gentoo
1 commit: 5731299155df8c5e614383a356813f04fd6bc082
2 Author: Mike Lothian <mike <AT> fireburn <DOT> co <DOT> uk>
3 AuthorDate: Fri Aug 5 12:45:39 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 6 16:03:23 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57312991
7
8 dev-util/directx-headers: Add new ebuild
9
10 This is required to enable the d3d12 and dozen drivers in mesa
11
12 This enables OpenGL and Vulkan support within WSL
13
14 Signed-off-by: Mike Lothian <mike <AT> fireburn.co.uk>
15 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
16
17 dev-util/directx-headers/Manifest | 1 +
18 .../directx-headers/directx-headers-1.606.4.ebuild | 30 ++++++++++++++++++++++
19 .../directx-headers/directx-headers-9999.ebuild | 30 ++++++++++++++++++++++
20 dev-util/directx-headers/metadata.xml | 11 ++++++++
21 4 files changed, 72 insertions(+)
22
23 diff --git a/dev-util/directx-headers/Manifest b/dev-util/directx-headers/Manifest
24 new file mode 100644
25 index 000000000000..5decfb8a8c84
26 --- /dev/null
27 +++ b/dev-util/directx-headers/Manifest
28 @@ -0,0 +1 @@
29 +DIST directx-headers-1.606.4.tar.gz 352341 BLAKE2B 5b79e5fb0f807c7766708ac3467f0f8bbf82aa68e3aa71abc84c6791742ffe625a5fed4c36dceded9b372af5349e41e431266cadf21b173e4a659b39f840b41c SHA512 3fb4142f8ceedd8484f5f7dae5804a7a0012951de344936fbf22991d6ae659d4e5093e1627bfe51c3cb0859340b13171c4f6aa68377ec26ac05038acaad8c540
30
31 diff --git a/dev-util/directx-headers/directx-headers-1.606.4.ebuild b/dev-util/directx-headers/directx-headers-1.606.4.ebuild
32 new file mode 100644
33 index 000000000000..e0d36de615c0
34 --- /dev/null
35 +++ b/dev-util/directx-headers/directx-headers-1.606.4.ebuild
36 @@ -0,0 +1,30 @@
37 +# Copyright 1999-2022 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=8
41 +
42 +MY_PN=DirectX-Headers
43 +inherit meson-multilib
44 +
45 +if [[ ${PV} == *9999* ]]; then
46 + EGIT_REPO_URI="https://github.com/microsoft/${MY_PN}.git"
47 + inherit git-r3
48 +else
49 + SRC_URI="https://github.com/microsoft/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
50 + KEYWORDS="~amd64 ~x86"
51 + S="${WORKDIR}"/${MY_PN}-${PV}
52 +fi
53 +
54 +DESCRIPTION="DirectX header files and WSL stubs"
55 +HOMEPAGE="https://github.com/microsoft/DirectX-Headers"
56 +
57 +LICENSE="MIT"
58 +SLOT="0"
59 +
60 +multilib_src_configure() {
61 + local emesonargs=(
62 + -Dbuild-test=false
63 + )
64 +
65 + meson_src_configure
66 +}
67
68 diff --git a/dev-util/directx-headers/directx-headers-9999.ebuild b/dev-util/directx-headers/directx-headers-9999.ebuild
69 new file mode 100644
70 index 000000000000..e0d36de615c0
71 --- /dev/null
72 +++ b/dev-util/directx-headers/directx-headers-9999.ebuild
73 @@ -0,0 +1,30 @@
74 +# Copyright 1999-2022 Gentoo Authors
75 +# Distributed under the terms of the GNU General Public License v2
76 +
77 +EAPI=8
78 +
79 +MY_PN=DirectX-Headers
80 +inherit meson-multilib
81 +
82 +if [[ ${PV} == *9999* ]]; then
83 + EGIT_REPO_URI="https://github.com/microsoft/${MY_PN}.git"
84 + inherit git-r3
85 +else
86 + SRC_URI="https://github.com/microsoft/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
87 + KEYWORDS="~amd64 ~x86"
88 + S="${WORKDIR}"/${MY_PN}-${PV}
89 +fi
90 +
91 +DESCRIPTION="DirectX header files and WSL stubs"
92 +HOMEPAGE="https://github.com/microsoft/DirectX-Headers"
93 +
94 +LICENSE="MIT"
95 +SLOT="0"
96 +
97 +multilib_src_configure() {
98 + local emesonargs=(
99 + -Dbuild-test=false
100 + )
101 +
102 + meson_src_configure
103 +}
104
105 diff --git a/dev-util/directx-headers/metadata.xml b/dev-util/directx-headers/metadata.xml
106 new file mode 100644
107 index 000000000000..06575fa191e1
108 --- /dev/null
109 +++ b/dev-util/directx-headers/metadata.xml
110 @@ -0,0 +1,11 @@
111 +<?xml version="1.0" encoding="UTF-8"?>
112 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
113 +<pkgmetadata>
114 + <maintainer type="project">
115 + <email>x11@g.o</email>
116 + <name>X11</name>
117 + </maintainer>
118 + <upstream>
119 + <remote-id type="github">microsoft/DirectX-Headers</remote-id>
120 + </upstream>
121 +</pkgmetadata>