media-libs/wivrn: fix DEPEND and update EAPI

Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono 2024-10-06 17:27:08 +09:00
parent aeb5d63b2d
commit b6bd0dcc82
No known key found for this signature in database
GPG Key ID: 91CA2604719DDA61

View File

@ -1,9 +1,9 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit cmake fcaps
inherit cmake fcaps xdg
DESCRIPTION="WiVRn OpenXR streaming"
HOMEPAGE="https://github.com/WiVRn/WiVRn"
@ -52,15 +52,17 @@ RDEPEND="
net-analyzer/wireshark
)
gui? (
dev-qt/qtbase
dev-qt/qtbase:6
)
"
BDEPEND="
DEPEND="
${RDEPEND}
dev-cpp/cli11
dev-cpp/eigen
dev-cpp/nlohmann_json
dev-libs/boost
"
BDEPEND="
dev-util/glslang
"
@ -121,14 +123,13 @@ src_configure() {
src_install() {
cmake_src_install
dosym /usr/share/openxr/1/openxr_wivrn.json /etc/openxr/1/active_runtime.json
dosym -r /usr/share/openxr/1/openxr_wivrn.json /etc/openxr/1/active_runtime.json
}
pkg_postinst()
{
fcaps cap_sys_nice bin/wivrn-server
xdg_icon_cache_update
xdg_desktop_database_update
xdg_pkg_postinst
elog "WiVRn requires a compatible client on VR headset to run."
if [[ ${PV} == 9999 ]]; then
elog "For most headsets it can be downloaded from CI artifacts on https://github.com/WiVRn/WiVRn/actions/workflows/Build.yml"
@ -136,9 +137,3 @@ pkg_postinst()
elog "For most headsets it can be downloaded on https://github.com/WiVRn/WiVRn/releases/tag/v${PV}"
fi
}
pkg_postrm()
{
xdg_icon_cache_update
xdg_desktop_database_update
}