From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 987EC158015 for ; Wed, 20 Dec 2023 09:10:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5BD8A2BC03D; Wed, 20 Dec 2023 09:10:07 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4389E2BC03D for ; Wed, 20 Dec 2023 09:10:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8C8B2340943 for ; Wed, 20 Dec 2023 09:10:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4AB5113A0 for ; Wed, 20 Dec 2023 09:10:02 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1703007963.cc3330c0c05409fe50d84db6bd6d0b5617372f20.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: media-libs/wivrn/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-libs/wivrn/Manifest media-libs/wivrn/wivrn-0.10.1.ebuild X-VCS-Directories: media-libs/wivrn/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: cc3330c0c05409fe50d84db6bd6d0b5617372f20 X-VCS-Branch: master Date: Wed, 20 Dec 2023 09:10:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b319a711-c509-4511-a6e5-07d947a99e1e X-Archives-Hash: d24201b953e02fc7b66ef1a4fafb18da commit: cc3330c0c05409fe50d84db6bd6d0b5617372f20 Author: Patrick Nicolas laposte net> AuthorDate: Tue Dec 19 17:46:03 2023 +0000 Commit: David Roman gmail com> CommitDate: Tue Dec 19 17:46:03 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cc3330c0 media-libs/wivrn: add 0.10.1 Signed-off-by: Patrick Nicolas laposte.net> media-libs/wivrn/Manifest | 2 + media-libs/wivrn/wivrn-0.10.1.ebuild | 100 +++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) diff --git a/media-libs/wivrn/Manifest b/media-libs/wivrn/Manifest index ad88671fe0..c7d0035602 100644 --- a/media-libs/wivrn/Manifest +++ b/media-libs/wivrn/Manifest @@ -1,4 +1,6 @@ DIST boostpfr_2.0.3.tar.gz 57376 BLAKE2B 447370c88a3241fcd91d5fb4c3ea8a6b5e54e11807f0b0458da8ba26a7a57d54402403d13c951ebdf3638386f01bd721fc50558477802a8aae3012ee6e88cba5 SHA512 ce7a7955066a678cfff3d65068830b60727dc6a0a1c3f29a1b1fcb50c79f718fb06d6767afb74f7e9ce00f33858cd10f627534f29f536e5504f034831c696ca0 DIST monado-79bf8eb8fa168f65f4e5505e0525ee74aa88783e.tar.gz 3295316 BLAKE2B 8f52e770999c0dfef2082e55edb0a08bcbce06fc2dbeb70627cd820921c1006e39b5d8498b1c4442ecac900ca6cf2c27dde58f3d8dccd0dd2c52cbed01aca297 SHA512 736e186f17f03601064512d1f1a54aa7a9453c416e213c8014b932a6182ee2b773a1994f6980632a1ce043e35f092307f575005ef230988c5e2f23dd6df4a134 +DIST wivrn-0.10.1-server-build-deps.tar.xz 16181364 BLAKE2B ef0f9855fc454d7258846bcc1c4a94f5d15570c2e092dc7913c93935cd2c343cfeaf2b585dcde32344781c2e03e91fa4a506708729f1032bc883ae2cc17f840e SHA512 629e47ef07280f0048ae8c534bf3a503a142d6ba878bf2cf2aeb77fd58027c85add2796fa2cac871baa0c0feb51d402362728335e3c9ebb2943e1f5e59abef19 +DIST wivrn-0.10.1.tar.gz 393044 BLAKE2B a452d78a7a1a25e33a7fa4c75b32c3b1c05a3118d56db140f3ffb27698511c3bd2dd6e910826eb745aa77f3acc1caddaec083c08605f98fd8cb0a5e195384b87 SHA512 3448f35b6820afb184cf078379fe090fe73749cddab4d907bb7e5560c5d2117813a6290e47313ca12db215402039097cb51d5fc7c73baac77ad61e8ef5607b1a DIST wivrn-0.9.1-server-build-deps.tar.xz 15574764 BLAKE2B 1fa80fa057c73f8bfe31752f0f6e86e932f092fb5e73d94d58a0b327417f73d0299484dfba9d0b95c729228fee29b1fe7f66c0a836d33eede31fe1f39b49e7ae SHA512 66729f45e3650274ac2cf24e55e04d5ea77474f874fb0d4f1ad7561f6ee40d0abbef347904112c7fac22413e14b23788f207f0fbbd901a6f218b720e36cda6be DIST wivrn-0.9.1.tar.gz 398632 BLAKE2B 2c76dfc648a535e1c2d9edebbed6f514b1e3fc7510f5af1a988995fff737166034cbccc8d7c407f4f9a28b67bceee17acf3ccbb8991e6f48ec396219482a8815 SHA512 fe69f1473a8e8d5617a18d56ef63a1f11b7cf32e64268f43d6efebb00184cc28c94b251b8ecccc1f95f6064fa2152566a3a001665b82ee3b6479bd009d63aee3 diff --git a/media-libs/wivrn/wivrn-0.10.1.ebuild b/media-libs/wivrn/wivrn-0.10.1.ebuild new file mode 100644 index 0000000000..8c36dca30a --- /dev/null +++ b/media-libs/wivrn/wivrn-0.10.1.ebuild @@ -0,0 +1,100 @@ +EAPI=7 + +DESCRIPTION="WiVRn OpenXR streaming" +HOMEPAGE="https://github.com/meumeu/WiVRn" +SLOT="0" +LICENSE="GPL-3 Apache-2.0 MIT" + +IUSE="nvenc systemd vaapi x264" +REQUIRED_USE="|| ( nvenc vaapi x264 )" + +inherit cmake + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Meumeu/WiVRn.git" + + MONADO_V=79bf8eb8fa168f65f4e5505e0525ee74aa88783e + PFR_V=2.0.3 + SRC_URI=" + https://github.com/boostorg/pfr/archive/refs/tags/${PFR_V}.tar.gz -> boostpfr_${PFR_V}.tar.gz + https://gitlab.freedesktop.org/monado/monado/-/archive/${MONADO_V}/monado-${MONADO_V}.tar.gz" +else + SRC_URI=" + https://github.com/Meumeu/WiVRn/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/Meumeu/WiVRn/releases/download/v${PV}/server-build-deps.tar.xz -> ${P}-server-build-deps.tar.xz" + KEYWORDS="~amd64" +fi + +RDEPEND=" + nvenc? ( + x11-drivers/nvidia-drivers + ) + vaapi? ( + media-video/ffmpeg[vulkan,vaapi] + ) + x264? ( + media-libs/x264 + ) + dev-libs/libbsd + media-libs/libpulse + media-libs/openxr-loader + net-dns/avahi + systemd? ( + sys-apps/systemd + ) +" + +BDEPEND=" + ${RDEPEND} + nvenc? ( + dev-util/nvidia-cuda-toolkit + ) + dev-cpp/eigen + dev-cpp/nlohmann_json + dev-util/glslang +" + +if [[ ${PV} == 9999 ]]; then + src_unpack() { + git-r3_src_unpack + default_src_unpack + cd "${WORKDIR}" + mv "monado-${MONADO_V}" "monado-src" + mv "pfr-${PFR_V}" "boostpfr-src" + } +else + src_unpack() { + default_src_unpack + cd "${WORKDIR}" + mv "WiVRn-${PV}" "${P}" + } +fi + +src_configure() { + if [[ ${PV} == 9999 ]]; then + GIT_DESC=$(git describe) + else + GIT_DESC=${PV} + fi + local mycmakeargs=( + -DGIT_DESC=${GIT_DESC} + -DWIVRN_BUILD_CLIENT=OFF + -DWIVRN_USE_NVENC=$(usex nvenc) + -DWIVRN_USE_VAAPI=$(usex vaapi) + -DWIVRN_USE_X264=$(usex x264) + -DWIVRN_USE_SYSTEMD=$(usex systemd) + -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON + -DFETCHCONTENT_FULLY_DISCONNECTED=ON + -DFETCHCONTENT_BASE_DIR=${WORKDIR} + -DENABLE_COLOURED_OUTPUT=OFF + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + dosym /usr/share/openxr/1/openxr_wivrn.json /etc/openxr/1/active_runtime.json +}