commit: f08dc671bbd3efd64c8c8b243be85a8db7b70390
Author: Patrick Nicolas <patricknicolas <AT> laposte <DOT> net>
AuthorDate: Fri Jun 14 15:44:34 2024 +0000
Commit: Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Fri Jun 14 15:44:34 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f08dc671
media-libs/wivrn: add pkg_postinst
Signed-off-by: Patrick Nicolas <patricknicolas <AT> laposte.net>
media-libs/wivrn/wivrn-0.15.ebuild | 10 ++++++++++
media-libs/wivrn/wivrn-0.16.ebuild | 10 ++++++++++
media-libs/wivrn/wivrn-9999.ebuild | 10 ++++++++++
3 files changed, 30 insertions(+)
diff --git a/media-libs/wivrn/wivrn-0.15.ebuild
b/media-libs/wivrn/wivrn-0.15.ebuild
index d08e16e92..d0cab50c0 100644
--- a/media-libs/wivrn/wivrn-0.15.ebuild
+++ b/media-libs/wivrn/wivrn-0.15.ebuild
@@ -108,3 +108,13 @@ src_install() {
dosym /usr/share/openxr/1/openxr_wivrn.json
/etc/openxr/1/active_runtime.json
}
+
+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/Meumeu/WiVRn/actions/workflows/Build.yml"
+ else
+ elog "For most headsets it can be downloaded on
https://github.com/Meumeu/WiVRn/releases/tag/v${PV}"
+ fi
+}
diff --git a/media-libs/wivrn/wivrn-0.16.ebuild
b/media-libs/wivrn/wivrn-0.16.ebuild
index 21e51a57d..d495d1299 100644
--- a/media-libs/wivrn/wivrn-0.16.ebuild
+++ b/media-libs/wivrn/wivrn-0.16.ebuild
@@ -108,3 +108,13 @@ src_install() {
dosym /usr/share/openxr/1/openxr_wivrn.json
/etc/openxr/1/active_runtime.json
}
+
+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/Meumeu/WiVRn/actions/workflows/Build.yml"
+ else
+ elog "For most headsets it can be downloaded on
https://github.com/Meumeu/WiVRn/releases/tag/v${PV}"
+ fi
+}
diff --git a/media-libs/wivrn/wivrn-9999.ebuild
b/media-libs/wivrn/wivrn-9999.ebuild
index 21e51a57d..d495d1299 100644
--- a/media-libs/wivrn/wivrn-9999.ebuild
+++ b/media-libs/wivrn/wivrn-9999.ebuild
@@ -108,3 +108,13 @@ src_install() {
dosym /usr/share/openxr/1/openxr_wivrn.json
/etc/openxr/1/active_runtime.json
}
+
+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/Meumeu/WiVRn/actions/workflows/Build.yml"
+ else
+ elog "For most headsets it can be downloaded on
https://github.com/Meumeu/WiVRn/releases/tag/v${PV}"
+ fi
+}