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 7541E1580D3 for ; Fri, 24 Nov 2023 17:20:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4F3932BC0CB; Fri, 24 Nov 2023 17:20:48 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 30C462BC0CB for ; Fri, 24 Nov 2023 17:20:48 +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 DDB4B3408CF for ; Fri, 24 Nov 2023 17:20:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4A0D813E0 for ; Fri, 24 Nov 2023 17:20:44 +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: <1700765375.337f633cb79361d56f5ac81ad49ac0618151e0f6.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.9.1.ebuild media-libs/wivrn/wivrn-9999.ebuild X-VCS-Directories: media-libs/wivrn/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 337f633cb79361d56f5ac81ad49ac0618151e0f6 X-VCS-Branch: master Date: Fri, 24 Nov 2023 17:20:44 +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: 6e339a13-a41f-4b29-8be4-fecbde08bac4 X-Archives-Hash: c101810001f8f1e07b18ad8c0c3d19e7 commit: 337f633cb79361d56f5ac81ad49ac0618151e0f6 Author: Patrick Nicolas laposte net> AuthorDate: Thu Nov 23 18:49:35 2023 +0000 Commit: David Roman gmail com> CommitDate: Thu Nov 23 18:49:35 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=337f633c media-libs/wivrn: new package, add 0.9.1, 9999 Signed-off-by: Patrick Nicolas laposte.net> media-libs/wivrn/Manifest | 4 ++ media-libs/wivrn/wivrn-0.9.1.ebuild | 80 +++++++++++++++++++++++++++++++++++++ media-libs/wivrn/wivrn-9999.ebuild | 80 +++++++++++++++++++++++++++++++++++++ 3 files changed, 164 insertions(+) diff --git a/media-libs/wivrn/Manifest b/media-libs/wivrn/Manifest new file mode 100644 index 0000000000..29b99e1530 --- /dev/null +++ b/media-libs/wivrn/Manifest @@ -0,0 +1,4 @@ +DIST boostpfr_2.0.3.tar.gz 57376 BLAKE2B 447370c88a3241fcd91d5fb4c3ea8a6b5e54e11807f0b0458da8ba26a7a57d54402403d13c951ebdf3638386f01bd721fc50558477802a8aae3012ee6e88cba5 SHA512 ce7a7955066a678cfff3d65068830b60727dc6a0a1c3f29a1b1fcb50c79f718fb06d6767afb74f7e9ce00f33858cd10f627534f29f536e5504f034831c696ca0 +DIST monado-3ca1381be18e4cda516a2c7ac5778706aac89ce4.tar.gz 3216545 BLAKE2B 9d87979665c8a154a00d35a982c8b7245042044fb1c52a5383fff190c91e808fa4fb5942fc5de16954b67a4009dcce3cb2b2b3bfd67fe0c0e04ec193d64648b9 SHA512 fa9447cf43329ce46711fb80e84d3ec6b04bfe40b2eeb25cea4edd1930f97e55cb1c3b74c00bafc26e8e6f85d0477bf6d0409d4dec6bec62007a9e131541c1ba +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.9.1.ebuild b/media-libs/wivrn/wivrn-0.9.1.ebuild new file mode 100644 index 0000000000..be97f65fe6 --- /dev/null +++ b/media-libs/wivrn/wivrn-0.9.1.ebuild @@ -0,0 +1,80 @@ +EAPI=7 + +DESCRIPTION="WiVRn OpenXR streaming" +HOMEPAGE="https://github.com/meumeu/WiVRn" +SLOT="0" + +IUSE="nvenc vaapi x264" + +inherit cmake + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Meumeu/WiVRn.git" + + MONADO_V=3ca1381be18e4cda516a2c7ac5778706aac89ce4 + 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/openxr-loader + net-dns/avahi + sys-apps/systemd +" + +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 + -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON + -DFETCHCONTENT_FULLY_DISCONNECTED=ON + -DFETCHCONTENT_BASE_DIR=${WORKDIR} + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + dosym /usr/share/openxr/1/openxr_wivrn.json /etc/openxr/1/active_runtime.json +} diff --git a/media-libs/wivrn/wivrn-9999.ebuild b/media-libs/wivrn/wivrn-9999.ebuild new file mode 100644 index 0000000000..be97f65fe6 --- /dev/null +++ b/media-libs/wivrn/wivrn-9999.ebuild @@ -0,0 +1,80 @@ +EAPI=7 + +DESCRIPTION="WiVRn OpenXR streaming" +HOMEPAGE="https://github.com/meumeu/WiVRn" +SLOT="0" + +IUSE="nvenc vaapi x264" + +inherit cmake + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Meumeu/WiVRn.git" + + MONADO_V=3ca1381be18e4cda516a2c7ac5778706aac89ce4 + 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/openxr-loader + net-dns/avahi + sys-apps/systemd +" + +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 + -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON + -DFETCHCONTENT_FULLY_DISCONNECTED=ON + -DFETCHCONTENT_BASE_DIR=${WORKDIR} + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + dosym /usr/share/openxr/1/openxr_wivrn.json /etc/openxr/1/active_runtime.json +}