···11+# Documentation: https://docs.brew.sh/Formula-Cookbook
22+# https://rubydoc.brew.sh/Formula
33+# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
44+class WivrnServer < Formula
55+ desc "The Linux OpenXR streaming application to standalone headsets"
66+ homepage "https://github.com/WiVRn/WiVRn"
77+ url "https://github.com/WiVRn/WiVRn/archive/refs/tags/v25.8.tar.gz"
88+ sha256 "7bfb0c270cab8bb95a1cab1402f8bc320398e7fcfd2be70ef1a5d4f4a9451a71"
99+ license "GPL-3.0"
1010+1111+ depends_on "cmake" => :build
1212+ depends_on "eigen" => :build
1313+ depends_on "avahi" => :build
1414+ depends_on "gettext" => :build
1515+ depends_on "pulseaudio" => :build
1616+ depends_on "cli11" => :build
1717+ depends_on "librsvg" => :build
1818+ depends_on "libnotify" => :build
1919+ depends_on "nlohmann-json" => :build
2020+ depends_on "ffmpeg" => :build
2121+ depends_on "x264" => :build
2222+ depends_on "x265" => :build
2323+2424+ def install
2525+ args = %w[
2626+ -GNinja
2727+ -DWIVRN_BUILD_CLIENT=OFF
2828+ -DCMAKE_BUILD_TYPE=RelWithDebInfo
2929+ ]
3030+3131+ system "cmake", "-B", "build-server", ".", *args, *std_cmake_args
3232+ end
3333+3434+ def caveats
3535+ "AtomicXR's wivrn-server formula is in development. Report issues at: https://tangled.sh/@matrixfurry.com/homebrew-atomicxr/issues"
3636+ end
3737+3838+ test do
3939+ # `test do` will create, run in and delete a temporary directory.
4040+ #
4141+ # This test will fail and we won't accept that! For Homebrew/homebrew-core
4242+ # this will need to be a test that verifies the functionality of the
4343+ # software. Run the test with `brew test wivrn-server`. Options passed
4444+ # to `brew install` such as `--HEAD` also need to be provided to `brew test`.
4545+ #
4646+ # The installed folder is not in the path, so use the entire path to any
4747+ # executables being tested: `system bin/"program", "do", "something"`.
4848+ system "false"
4949+ end
5050+end