1 |
commit: dca7e001b955252a4789de502eccbe65540bff2c |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 17 10:49:15 2022 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 18 07:56:09 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dca7e001 |
7 |
|
8 |
media-libs/shaderc: drop 2022.1-r1 |
9 |
|
10 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
11 |
|
12 |
media-libs/shaderc/shaderc-2022.1-r1.ebuild | 92 ----------------------------- |
13 |
1 file changed, 92 deletions(-) |
14 |
|
15 |
diff --git a/media-libs/shaderc/shaderc-2022.1-r1.ebuild b/media-libs/shaderc/shaderc-2022.1-r1.ebuild |
16 |
deleted file mode 100644 |
17 |
index bd74f502102a..000000000000 |
18 |
--- a/media-libs/shaderc/shaderc-2022.1-r1.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,92 +0,0 @@ |
21 |
-# Copyright 1999-2022 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=7 |
25 |
- |
26 |
-PYTHON_COMPAT=( python3_{8..10} ) |
27 |
- |
28 |
-CMAKE_ECLASS=cmake |
29 |
- |
30 |
-inherit cmake-multilib python-any-r1 |
31 |
- |
32 |
-DESCRIPTION="Collection of tools, libraries and tests for shader compilation" |
33 |
-HOMEPAGE="https://github.com/google/shaderc" |
34 |
-EGIT_COMMIT="${PV}" |
35 |
-SRC_URI="https://github.com/google/${PN}/archive/v${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
36 |
-S="${WORKDIR}/${PN}-${EGIT_COMMIT}" |
37 |
- |
38 |
-LICENSE="Apache-2.0" |
39 |
-SLOT="0" |
40 |
-KEYWORDS="amd64 ppc64 x86" |
41 |
-IUSE="doc test" |
42 |
- |
43 |
-RDEPEND=" |
44 |
- >=dev-util/glslang-1.3.204[${MULTILIB_USEDEP}] |
45 |
- >=dev-util/spirv-tools-1.3.204[${MULTILIB_USEDEP}] |
46 |
-" |
47 |
-DEPEND="${RDEPEND} |
48 |
- ${PYTHON_DEPS} |
49 |
- >=dev-util/spirv-headers-1.3.204 |
50 |
- doc? ( dev-ruby/asciidoctor ) |
51 |
- test? ( |
52 |
- dev-cpp/gtest |
53 |
- $(python_gen_any_dep 'dev-python/nose[${PYTHON_USEDEP}]') |
54 |
- ) |
55 |
-" |
56 |
- |
57 |
-PATCHES=( |
58 |
- "${FILESDIR}"/${PN}-2020.4-fix-build.patch |
59 |
-) |
60 |
- |
61 |
-# https://github.com/google/shaderc/issues/470 |
62 |
-RESTRICT=test |
63 |
- |
64 |
-python_check_deps() { |
65 |
- if use test; then |
66 |
- has_version --host-root "dev-python/nose[${PYTHON_USEDEP}]" |
67 |
- fi |
68 |
-} |
69 |
- |
70 |
-src_prepare() { |
71 |
- cmake_comment_add_subdirectory examples |
72 |
- |
73 |
- # Unbundle glslang, spirv-headers, spirv-tools |
74 |
- cmake_comment_add_subdirectory third_party |
75 |
- sed -i \ |
76 |
- -e "s|\$<TARGET_FILE:spirv-dis>|${EPREFIX}/usr/bin/spirv-dis|" \ |
77 |
- glslc/test/CMakeLists.txt || die |
78 |
- |
79 |
- # Disable git versioning |
80 |
- sed -i -e '/build-version/d' glslc/CMakeLists.txt || die |
81 |
- |
82 |
- # Manually create build-version.inc as we disabled git versioning |
83 |
- cat <<- EOF > glslc/src/build-version.inc || die |
84 |
- "${P}\n" |
85 |
- "$(best_version dev-util/spirv-tools)\n" |
86 |
- "$(best_version dev-util/glslang)\n" |
87 |
- EOF |
88 |
- |
89 |
- cmake_src_prepare |
90 |
-} |
91 |
- |
92 |
-multilib_src_configure() { |
93 |
- local mycmakeargs=( |
94 |
- -DSHADERC_SKIP_TESTS="$(usex !test)" |
95 |
- -DSHADERC_ENABLE_WERROR_COMPILE="false" |
96 |
- ) |
97 |
- cmake_src_configure |
98 |
-} |
99 |
- |
100 |
-multilib_src_compile() { |
101 |
- if multilib_is_native_abi && use doc; then |
102 |
- cmake_src_compile glslc_doc_README |
103 |
- fi |
104 |
- cmake_src_compile |
105 |
-} |
106 |
- |
107 |
-multilib_src_install() { |
108 |
- if multilib_is_native_abi; then |
109 |
- use doc && local HTML_DOCS=( "${BUILD_DIR}/glslc/README.html" ) |
110 |
- fi |
111 |
- cmake_src_install |
112 |
-} |