From efca56beb6bbb9547d49163cac02eac0b5c1f657 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 6 Apr 2023 11:27:38 +0100 Subject: gentoo auto-resync : 06:04:2023 - 11:27:37 --- dev-util/Manifest.gz | Bin 68379 -> 68390 bytes dev-util/glslang/Manifest | 2 + dev-util/glslang/glslang-1.3.243.ebuild | 37 ++++++++++ dev-util/spirv-headers/Manifest | 2 + .../spirv-headers/spirv-headers-1.3.243.ebuild | 16 +++++ dev-util/spirv-tools/Manifest | 2 + dev-util/spirv-tools/spirv-tools-1.3.243.ebuild | 42 +++++++++++ dev-util/vulkan-headers/Manifest | 2 + .../vulkan-headers/vulkan-headers-1.3.243.ebuild | 22 ++++++ dev-util/vulkan-tools/Manifest | 2 + dev-util/vulkan-tools/vulkan-tools-1.3.243.ebuild | 78 +++++++++++++++++++++ 11 files changed, 205 insertions(+) create mode 100644 dev-util/glslang/glslang-1.3.243.ebuild create mode 100644 dev-util/spirv-headers/spirv-headers-1.3.243.ebuild create mode 100644 dev-util/spirv-tools/spirv-tools-1.3.243.ebuild create mode 100644 dev-util/vulkan-headers/vulkan-headers-1.3.243.ebuild create mode 100644 dev-util/vulkan-tools/vulkan-tools-1.3.243.ebuild (limited to 'dev-util') diff --git a/dev-util/Manifest.gz b/dev-util/Manifest.gz index d152a1d4dc62..b315eb3e4945 100644 Binary files a/dev-util/Manifest.gz and b/dev-util/Manifest.gz differ diff --git a/dev-util/glslang/Manifest b/dev-util/glslang/Manifest index 25efc1503009..584dc637624a 100644 --- a/dev-util/glslang/Manifest +++ b/dev-util/glslang/Manifest @@ -1,5 +1,7 @@ AUX glslang-1.3.236-Install-static-libs.patch 1460 BLAKE2B f17b5b7325e112d52a65767166530c9976833a2a893e608fe89c662a2e84feccd8e51b36a620dcf94b269cbeb96307744b4376799821dd4d4e422ad8fd887b14 SHA512 032da16afb9ca98bb0377625fc16458c641836fb3bb63940818c1bf4b068b6fe03b3f14b03cf00e10991236ca20d292293c67d02dbc429b2e3714e6a8bf85b19 DIST glslang-1.3.239.tar.gz 3683945 BLAKE2B ffc690522814d7a28bea7168744d390a5a1c7e34e67f2037c72b2a040c8c48fbb9d46f37d74ea58b2bcf7621b0008498a9dd592da08e9e93037e3f45c5b920d6 SHA512 a7cd35c76dc4f3a4f2f1015e7495b87313472d7c766075256c0d2d0004f395f62d38d715675b49f13f66a12645175c421af4622129aeb588528397e92f51790b +DIST glslang-1.3.243.tar.gz 3688482 BLAKE2B 4346d7a3524f16ef938e9bf2f3c184fb4b915b3adb1facb0297ddb1c4095a6d32dac35d4be0ad18918d80e2106db5bdd037e035efe613ec4b42ff1878f8bc653 SHA512 0febe5d4187970ebea3e28a323bc85da2ad24feee12390410fe817b363847409f00c1b7e8d4e88156443929eb9a616e6064bf73aa5f8914e71c01d985d6fc15c EBUILD glslang-1.3.239.ebuild 973 BLAKE2B b4810ffb64a48c2103345a55b55ce856ec4fd7a0e5be22324e0cdf52cce95816fa2cf7759e1a30d85130e54cd80f81b2fd42598e61aee3ff082ad5da35f984c9 SHA512 197e83ba1850f56f348bbbff6c48e29f091855116c5ce0709b4f3148e6e96ab9718a4511670ef7db802b3cf8836325ca4c8d4b5f07ee4ae88a72c7cbd2fa64c4 +EBUILD glslang-1.3.243.ebuild 979 BLAKE2B 9be4b50d30e27260788c9702f784c61df580b96efa40833d3685edb9774ff119dd72cc9d2859c23264785ea271d2cc94f4a93583f857930bafe4058a0dc0d703 SHA512 cf8af799beee2b6a945fffd89b3cdb8813b51d06985286d109d237347d086cc90ed2a7058b428bf1d9b117109bbc67ad161b714cdb7ffd634c4bd681bf4762b1 EBUILD glslang-9999.ebuild 979 BLAKE2B 9be4b50d30e27260788c9702f784c61df580b96efa40833d3685edb9774ff119dd72cc9d2859c23264785ea271d2cc94f4a93583f857930bafe4058a0dc0d703 SHA512 cf8af799beee2b6a945fffd89b3cdb8813b51d06985286d109d237347d086cc90ed2a7058b428bf1d9b117109bbc67ad161b714cdb7ffd634c4bd681bf4762b1 MISC metadata.xml 330 BLAKE2B c3874bbe807a8dd1a55897feadfc0a89e4cb806441390ee7e7cc317f3b533a08338a669834122ede89cefd9b6532d789aece2c29fcc6cdfc7f76a81bf382192b SHA512 1c591a28214fb76334171e4a49c8ac302b6f174f265749ad005f2503df1312e8303c92a68248775ed3db98d65107471f9cfc8cfb758c89261f283711beaac764 diff --git a/dev-util/glslang/glslang-1.3.243.ebuild b/dev-util/glslang/glslang-1.3.243.ebuild new file mode 100644 index 000000000000..c00807a5549c --- /dev/null +++ b/dev-util/glslang/glslang-1.3.243.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +inherit cmake-multilib python-any-r1 + +if [[ ${PV} == *9999* ]]; then + EGIT_REPO_URI="https://github.com/KhronosGroup/${PN}.git" + inherit git-r3 +else + SNAPSHOT_COMMIT="sdk-${PV}.0" + SRC_URI="https://github.com/KhronosGroup/${PN}/archive/${SNAPSHOT_COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" + S="${WORKDIR}/${PN}-${SNAPSHOT_COMMIT}" +fi + +DESCRIPTION="Khronos reference front-end for GLSL and ESSL, and sample SPIR-V generator" +HOMEPAGE="https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/ https://github.com/KhronosGroup/glslang" + +LICENSE="BSD" +SLOT="0/12" + +# Bug 698850 +RESTRICT="test" + +BDEPEND="${PYTHON_DEPS}" + +PATCHES=( "${FILESDIR}/${PN}-1.3.236-Install-static-libs.patch" ) + +multilib_src_configure() { + local mycmakeargs=( + -DENABLE_PCH=OFF + ) + cmake_src_configure +} diff --git a/dev-util/spirv-headers/Manifest b/dev-util/spirv-headers/Manifest index d26f02389bfd..b721e39b1e64 100644 --- a/dev-util/spirv-headers/Manifest +++ b/dev-util/spirv-headers/Manifest @@ -1,4 +1,6 @@ DIST spirv-headers-1.3.239.tar.gz 446227 BLAKE2B 43c115f2b9661b682455034479a056cbef9cb9d4d9e60be88a1d5e16354dbfc907c1719f0d90cb0a0d243e420b552b150b915baaa9aecf998604197f26ba214b SHA512 f537becf7940cc31bc7b578f33be1ca55264414f205582dff0c569bdbae085e78760ea317a32e6d3fe3510e29554ea1b1a00bf9e4df3e20cd4de6e998a891a5d +DIST spirv-headers-1.3.243.tar.gz 449872 BLAKE2B 15d8607dd14d10559249c0d161342153cd316481bf59ea502d102941a2f4a60f1d27285d46c68b3a0c5b738fff7d2956cf753fc135d282f61b254302df7b1d5a SHA512 04e7ac3d99ad9aa704c0a9fdc1a2126c9593aac855f255a2783d84c1226ce35b0adcd74065b24953dca9c43726e2b723791c64b441fdba1f4f726a5ada172e75 EBUILD spirv-headers-1.3.239.ebuild 489 BLAKE2B 48386f966fcaf7a849a1835fdedf93d61abc5017c62fbf0145e83ec8c9fcf2a58c7b240047dc82ce06075656acb4d0359cb9cf5074a4ba0d51fd0306489d28f6 SHA512 4d7b961f5344ce9ed16004715626e0822d10a8cf46241f910d05deb17542741fbc48f7aa051cbbe1977036522d5ac0b3416ca56aec44bfa6068e1fdc34c75fff +EBUILD spirv-headers-1.3.243.ebuild 495 BLAKE2B 88852d1ccce3b5e3ac8b8339ab0872dd9b377e62fe1b1cfb2394f7ca04706386fc9cf0beed9a8a51107da94c5184471e50b01fbcf9d72ea58a54222ae21fba00 SHA512 32c8646c11acbf07e99b6fe63d08b6e293131794af630a01d70c80b3a74d9f197d980c8595a01968f93d32142ecdcc071e312a318031431a21991ef0499475b8 EBUILD spirv-headers-99999999.ebuild 631 BLAKE2B 3b51ab12672d7f984b1964a4b52ca0b490fec7fc2c6ad4c9c1c30573d9181864a9654d62c95bf6bdc15627285550f40248f55ebf34b648280d311eb190842661 SHA512 293b4f77a53319ac245cfd61c06607f8fddfc88ecf7ed4d38887493527a249ecee56e1722b8582122263847918e026e9badba135bdf461ef356e2c50de6d6114 MISC metadata.xml 431 BLAKE2B c29407612814c966f4134687e901ffff31be3990b771b3584f6517640098ba2cdf131ae84bcdc3da8398d77d1d51e3d6fe0180c564c0e8272406d246a5661578 SHA512 599da456349756e1ec66a1b36d9c05322c5aff088dc4741239a647550ba816333a2dab0e05049215e6d4b08222e06f3aa5a1f76697c7a15eda31b571afa3299a diff --git a/dev-util/spirv-headers/spirv-headers-1.3.243.ebuild b/dev-util/spirv-headers/spirv-headers-1.3.243.ebuild new file mode 100644 index 000000000000..d01ba8ef9a93 --- /dev/null +++ b/dev-util/spirv-headers/spirv-headers-1.3.243.ebuild @@ -0,0 +1,16 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Machine-readable files for the SPIR-V Registry" +HOMEPAGE="https://www.khronos.org/registry/spir-v/" +EGIT_COMMIT="sdk-${PV}" +SRC_URI="https://github.com/KhronosGroup/SPIRV-Headers/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/SPIRV-Headers-${EGIT_COMMIT}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" diff --git a/dev-util/spirv-tools/Manifest b/dev-util/spirv-tools/Manifest index b58226fdc493..0ea082e8ace1 100644 --- a/dev-util/spirv-tools/Manifest +++ b/dev-util/spirv-tools/Manifest @@ -1,4 +1,6 @@ DIST spirv-tools-1.3.239.tar.gz 3088996 BLAKE2B b7900fee1b5fca47802cd168766c3bc2f316fd69380670a8f0241df607c8fb41e8534d699330e38fa33ca1632a63fe54fb6c69def68d5b7a30b4229598fdcd21 SHA512 77c06e9127e9f5ab5c83b2bae181a9e626adc4f37d10122a1ed62904dd7e05f78f5eb75f4213d8d986bc78f60f247ed23ddc2552fcbb8355c0160fb559d32707 +DIST spirv-tools-1.3.243.tar.gz 3102102 BLAKE2B c871a1e152423a1e09d228cc91df86df5c81e62aaecf140c57b95929bec63142384f3908deff51735b520e31261514124c0063c67a80fff688a054b3364f31df SHA512 6a3ad537d74892fb3418bb11dd7bd174b59edfb99029128dddde18a02d677d485a704d11cbdd3a3f1df3a18f8c534ab081b461cc82b5bc00c5a5c0601102bd65 EBUILD spirv-tools-1.3.239.ebuild 1139 BLAKE2B a8254b1a1e26f1f88c930d01d934bc9e4f282969999b8dcd823ff5c697f20a7d7800c0ce1c9da1f8d88089ff923543ca23e6ac4749fbd0284a2668cfa81cb423 SHA512 7ba92485860b9d0ea68b501d2f4e70d422df78649df97a24c96da266d693d2ac2a350de4e6f8783d96b603a6fe774155496247b7eb1d5969b11bef5bf8a8ad38 +EBUILD spirv-tools-1.3.243.ebuild 1145 BLAKE2B 9944035c79eb26bbd6e783d3b199e3bffc5febd8c1cf36aaf5c80920468ebdbb5e955a54889aa5385ff28730e8a7091db48c54f2058f7faec7ef207c85149ecf SHA512 27bd3df64ede70486d23e14d1560bf0a85e0a0173021809d9ef62e15d7d7583a8513e543468b0740e37330c2a2d6b6de123211a92e8667a0357999a44a60cdb3 EBUILD spirv-tools-99999999.ebuild 1147 BLAKE2B 56595323992efb3c2e9a255b3b57af95c38d3a12c59d4d8a3f1afd0b6d3758dbe1f3bf8607ae359591ef3b382c654f1e89b719bd01fe21021c15e4c32a6923eb SHA512 88dc7e115dddedf124c30d3233591a47827f0f6e5c755f67230ed830ba8625e7c6224d97042fc721a0d1b06305ecdfef20c0535074e2dfe75df1a5cad4739727 MISC metadata.xml 429 BLAKE2B 8d9917ace6eaaab8b826f48bc6f38c629efc5245a5356d821632867b8a65246180dcc14927db6ed1e025a32d7bb248aa35e3a7095c79bff5a2e91b3d880de997 SHA512 3f076c95eb788258a2451c3b54a013eeb936fed744b68499f53970590fc846d79b9724198ed54300a57395b1f4f2a657840bf8aa7ff25dcef8cdf28aa7f35ae3 diff --git a/dev-util/spirv-tools/spirv-tools-1.3.243.ebuild b/dev-util/spirv-tools/spirv-tools-1.3.243.ebuild new file mode 100644 index 000000000000..9b7c8253a4ff --- /dev/null +++ b/dev-util/spirv-tools/spirv-tools-1.3.243.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN=SPIRV-Tools +PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_REQ_USE="xml(+)" +inherit cmake-multilib python-any-r1 + +if [[ ${PV} == *9999* ]]; then + EGIT_REPO_URI="https://github.com/KhronosGroup/${MY_PN}.git" + inherit git-r3 +else + EGIT_COMMIT="sdk-${PV}.0" + SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" + S="${WORKDIR}"/${MY_PN}-${EGIT_COMMIT} +fi + +DESCRIPTION="Provides an API and commands for processing SPIR-V modules" +HOMEPAGE="https://github.com/KhronosGroup/SPIRV-Tools" + +LICENSE="Apache-2.0" +SLOT="0" +# Tests fail upon finding symbols that do not match a regular expression +# in the generated library. Easily hit with non-standard compiler flags +RESTRICT="test" + +DEPEND="~dev-util/spirv-headers-${PV}" +RDEPEND="" +BDEPEND="${PYTHON_DEPS}" + +multilib_src_configure() { + local mycmakeargs=( + -DSPIRV-Headers_SOURCE_DIR="${ESYSROOT}"/usr/ + -DSPIRV_WERROR=OFF + -DSPIRV_TOOLS_BUILD_STATIC=OFF + ) + + cmake_src_configure +} diff --git a/dev-util/vulkan-headers/Manifest b/dev-util/vulkan-headers/Manifest index 65bb863da278..9621f69c6354 100644 --- a/dev-util/vulkan-headers/Manifest +++ b/dev-util/vulkan-headers/Manifest @@ -1,4 +1,6 @@ DIST vulkan-headers-1.3.239.tar.gz 1804393 BLAKE2B ea7ab92539aa32a6973bb590b84e4004195eea1f41b3499b33c1f915514243e7d06c603f0dd9feb4d04a455dd732940f512d2acca150372ebf02b007e670b27d SHA512 d7b0bf3f41f0f4a43c89c13cabfeb99401b069e6d0358b03befef465cba7e6a34e1608e62d981d0d905f5cc6327334cdca4e249ebb2305ce1ae81ebcfb62dc20 +DIST vulkan-headers-1.3.243.tar.gz 1841214 BLAKE2B b9361dba611b9719bdaade74084b020bdecbaa68f21fe7cd17ac57fa58f6b05683cc5c7c706014ab52bf604e849e822770c6697330877243aa9ee816ab8f6841 SHA512 d01304ae6b9bc142bd93ee5e0e66aa484d781bb9a6ca2ef6b0f0a367d1549f060a4c8810be13e2672fbea0e37c4c9de87070e56a772c5d6c75a60399d2f6ab53 EBUILD vulkan-headers-1.3.239.ebuild 594 BLAKE2B 6faa9ea68b845b6d6fc5426e4eeeb9fa133a11bb420931496137c9f563005e6be84da1a8b2ab97afc9dfe55443589aa4ddbee028712e964f5bd24d219ab9e8d9 SHA512 6b72e8ccc8a6d85669eea09484848283aaa81b10a09c48c0f5822a94c108d956f4a7f2ca1b2db07965f94bda667c380c9194135eebadcfa7e38294814484be6a +EBUILD vulkan-headers-1.3.243.ebuild 600 BLAKE2B 0daf239aa649fb07a0cf75f53b709fdd45da34d5ab5d03bea21de97dd15871a440859ace5089d7de99665af2b1eac52ab4b312bad809d22ccb5a1ba858828a8b SHA512 c5c5e86b12dec0b97c1dcc1ef5edfa993665f99ff573892e7426ee7533829a72884e8b5eb4b19ec27d289c8cdb0c383299aa41c05f543e6af54455b2ecf06a1c EBUILD vulkan-headers-9999.ebuild 600 BLAKE2B 0daf239aa649fb07a0cf75f53b709fdd45da34d5ab5d03bea21de97dd15871a440859ace5089d7de99665af2b1eac52ab4b312bad809d22ccb5a1ba858828a8b SHA512 c5c5e86b12dec0b97c1dcc1ef5edfa993665f99ff573892e7426ee7533829a72884e8b5eb4b19ec27d289c8cdb0c383299aa41c05f543e6af54455b2ecf06a1c MISC metadata.xml 432 BLAKE2B 04c6e302b541f48dd20c84c7da9e82cad1b53d8040e796034992e8e110e3a815acc76e3067d12ce12fe2d7501d797b1e0340231d7f8216c4bf7576a053f5ffb7 SHA512 89ef7a8b4de02a0726aacaabc87904bd4f5484567d21ec6dcfa15dc7f84a3a3915a3202febf4f779fdc54762b3731cd0384235a7908c46b1adf3cbc38effa5f4 diff --git a/dev-util/vulkan-headers/vulkan-headers-1.3.243.ebuild b/dev-util/vulkan-headers/vulkan-headers-1.3.243.ebuild new file mode 100644 index 000000000000..fdef9654420b --- /dev/null +++ b/dev-util/vulkan-headers/vulkan-headers-1.3.243.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN=Vulkan-Headers +inherit cmake + +if [[ ${PV} == *9999* ]]; then + EGIT_REPO_URI="https://github.com/KhronosGroup/${MY_PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/sdk-${PV}.0.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" + S="${WORKDIR}"/${MY_PN}-sdk-${PV}.0 +fi + +DESCRIPTION="Vulkan Header files and API registry" +HOMEPAGE="https://github.com/KhronosGroup/Vulkan-Headers" + +LICENSE="Apache-2.0" +SLOT="0" diff --git a/dev-util/vulkan-tools/Manifest b/dev-util/vulkan-tools/Manifest index 5d2d2644fcdf..3dc88e239cd2 100644 --- a/dev-util/vulkan-tools/Manifest +++ b/dev-util/vulkan-tools/Manifest @@ -1,4 +1,6 @@ DIST vulkan-tools-1.3.239.tar.gz 775603 BLAKE2B ff2b07454b603a72f0f07c575c09b431f0ec996bab2d5adc66d8d5f1456b0897f3796a33c5658949c92f895b67cbc67ad777975697693cc677db69400549e824 SHA512 9397f71dba2b741dd43c101472ab5961e64b46a7252fca1aa2f3b7c2afbe44b789a25c13536c8eb5dbd6600d0c741330493b73177d805db38ff1542364ef4764 +DIST vulkan-tools-1.3.243.tar.gz 778991 BLAKE2B 4b1e2a1b92ab4b4db7967fa01980b50845e8495c4ba638fe472968ec0069ce3d5207436e081401e7cacfd673002aff681ecd97ef2545a52decbbbb98b9150fd0 SHA512 6ba4c14073006e12615fcf054cd224b6e9f7f60215454349c19f671f4f9f987f38fe3d3dcd610d9a7dc7a39c6fdfcfae61509d31e44c86cb83b8429d1cb0febf EBUILD vulkan-tools-1.3.239.ebuild 1895 BLAKE2B b62ab9d1a808a44ec9b5c756cb914e0807ca043e9515e89320203c39b4d18613cf1c8728eb97a609b1e815e096ac0731dd4061bcc8d224de9bb3198dc2869531 SHA512 11e950158f1ee4dc2c0d4960c4496f8e518f7e02b9ed90ebd643b1270fd2515dd7f1a9cff617d11f3d7bfa850b2832b7a5ba0686aef868ad58c8b02852ab9e70 +EBUILD vulkan-tools-1.3.243.ebuild 1900 BLAKE2B 6599fa23b8bb2e178420e33d7e6d093467a72cd0b04028b92c59d0434458f80f81b6e34eba26143e76c831624f222080cf7cf1811941e36f0addc83139fc2d83 SHA512 c507621b6a5535d02371d4cf3c3bb12edc82b5322ebf47ae9c52af04090c4f0ac292f6fd89244c9fb7592c4d2698c2f2da896f1665222e3235890b128dbf12dc EBUILD vulkan-tools-9999.ebuild 1900 BLAKE2B 6599fa23b8bb2e178420e33d7e6d093467a72cd0b04028b92c59d0434458f80f81b6e34eba26143e76c831624f222080cf7cf1811941e36f0addc83139fc2d83 SHA512 c507621b6a5535d02371d4cf3c3bb12edc82b5322ebf47ae9c52af04090c4f0ac292f6fd89244c9fb7592c4d2698c2f2da896f1665222e3235890b128dbf12dc MISC metadata.xml 500 BLAKE2B 9fb4ff756cb14accac7b9c8e262ba8fc0108f68acaeaad81085ea91939ef683a21dfdb68ac4689e71c6b3b490e758af2711b1c436c65a7aa0e3b030aec982c93 SHA512 03a8e309f115934d5195da8aaa7bcd3e4f95f28269671a2eb8426941bb9bae815bcd3448d2e97006ddb2ab7ec52179117604b6fbf0f293e4285b303da573d435 diff --git a/dev-util/vulkan-tools/vulkan-tools-1.3.243.ebuild b/dev-util/vulkan-tools/vulkan-tools-1.3.243.ebuild new file mode 100644 index 000000000000..ae7ec142589b --- /dev/null +++ b/dev-util/vulkan-tools/vulkan-tools-1.3.243.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN=Vulkan-Tools +PYTHON_COMPAT=( python3_{9..11} ) +inherit cmake-multilib python-any-r1 + +if [[ ${PV} == *9999* ]]; then + EGIT_REPO_URI="https://github.com/KhronosGroup/${MY_PN}.git" + EGIT_SUBMODULES=() + inherit git-r3 +else + SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/sdk-${PV}.0.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv" + S="${WORKDIR}"/${MY_PN}-sdk-${PV}.0 +fi + +DESCRIPTION="Official Vulkan Tools and Utilities for Windows, Linux, Android, and MacOS" +HOMEPAGE="https://github.com/KhronosGroup/Vulkan-Tools" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="cube wayland +X" + +# Cube demo only supports one window system at a time +REQUIRED_USE="cube? ( ^^ ( X wayland ) )" + +BDEPEND="${PYTHON_DEPS} + cube? ( ~dev-util/glslang-${PV}:=[${MULTILIB_USEDEP}] ) +" +RDEPEND=" + ~media-libs/vulkan-loader-${PV}:=[${MULTILIB_USEDEP},wayland?,X?] + wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] ) + X? ( + x11-libs/libX11:=[${MULTILIB_USEDEP}] + x11-libs/libXrandr:=[${MULTILIB_USEDEP}] + ) +" +DEPEND="${RDEPEND} + ~dev-util/vulkan-headers-${PV} +" + +pkg_setup() { + MULTILIB_CHOST_TOOLS=( + /usr/bin/vulkaninfo + ) + + use cube && MULTILIB_CHOST_TOOLS+=( + /usr/bin/vkcube + /usr/bin/vkcubepp + ) + + python-any-r1_pkg_setup +} + +multilib_src_configure() { + local mycmakeargs=( + -DCMAKE_C_FLAGS="${CFLAGS} -DNDEBUG" + -DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG" + -DCMAKE_SKIP_RPATH=ON + -DBUILD_VULKANINFO=ON + -DBUILD_CUBE=$(usex cube) + -DBUILD_WERROR=OFF + -DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland) + -DBUILD_WSI_XCB_SUPPORT=$(usex X) + -DBUILD_WSI_XLIB_SUPPORT=$(usex X) + -DVULKAN_HEADERS_INSTALL_DIR="${ESYSROOT}/usr" + ) + + use cube && mycmakeargs+=( + -DGLSLANG_INSTALL_DIR="${ESYSROOT}/usr" + -DCUBE_WSI_SELECTION=$(usex X XCB WAYLAND) + ) + + cmake_src_configure +} -- cgit v1.2.3