style(Homebrew): Update Homebrew formula dependencies and conflicts (#4484)
This commit is contained in:
parent
eb3afd43df
commit
79b4b9f6fb
6 changed files with 54 additions and 26 deletions
|
|
@ -5,7 +5,6 @@ class Sunshine < Formula
|
|||
GCC_FORMULA = "gcc@#{GCC_VERSION}".freeze
|
||||
IS_UPSTREAM_REPO = ENV.fetch("GITHUB_REPOSITORY", "") == "LizardByte/Sunshine"
|
||||
|
||||
# conflicts_with "sunshine", because: "sunshine and sunshine-beta cannot be installed at the same time"
|
||||
desc "@PROJECT_DESCRIPTION@"
|
||||
homepage "@PROJECT_HOMEPAGE_URL@"
|
||||
url "@GITHUB_CLONE_URL@",
|
||||
|
|
@ -36,12 +35,12 @@ class Sunshine < Formula
|
|||
depends_on "node" => :build
|
||||
depends_on "pkgconf" => :build
|
||||
depends_on "gcovr" => :test
|
||||
depends_on "boost"
|
||||
depends_on "curl"
|
||||
depends_on "icu4c@78"
|
||||
depends_on "miniupnpc"
|
||||
depends_on "openssl"
|
||||
depends_on "openssl@3"
|
||||
depends_on "opus"
|
||||
depends_on "boost" => :recommended
|
||||
depends_on "icu4c" => :recommended
|
||||
|
||||
on_macos do
|
||||
depends_on "llvm" => [:build, :test]
|
||||
|
|
@ -49,16 +48,28 @@ class Sunshine < Formula
|
|||
|
||||
on_linux do
|
||||
depends_on GCC_FORMULA => [:build, :test]
|
||||
depends_on "at-spi2-core"
|
||||
depends_on "avahi"
|
||||
depends_on "ayatana-ido"
|
||||
depends_on "cairo"
|
||||
depends_on "gdk-pixbuf"
|
||||
depends_on "glib"
|
||||
depends_on "gnu-which"
|
||||
depends_on "gtk+3"
|
||||
depends_on "harfbuzz"
|
||||
depends_on "libayatana-appindicator"
|
||||
depends_on "libayatana-indicator"
|
||||
depends_on "libcap"
|
||||
depends_on "libdbusmenu"
|
||||
depends_on "libdrm"
|
||||
depends_on "libice"
|
||||
depends_on "libnotify"
|
||||
depends_on "libsm"
|
||||
depends_on "libva"
|
||||
depends_on "libx11"
|
||||
depends_on "libxcb"
|
||||
depends_on "libxcursor"
|
||||
depends_on "libxext"
|
||||
depends_on "libxfixes"
|
||||
depends_on "libxi"
|
||||
depends_on "libxinerama"
|
||||
|
|
@ -66,11 +77,13 @@ class Sunshine < Formula
|
|||
depends_on "libxtst"
|
||||
depends_on "mesa"
|
||||
depends_on "numactl"
|
||||
depends_on "pango"
|
||||
depends_on "pulseaudio"
|
||||
depends_on "systemd"
|
||||
depends_on "wayland"
|
||||
end
|
||||
|
||||
conflicts_with "sunshine-beta", because: "sunshine and sunshine-beta cannot be installed at the same time"
|
||||
fails_with :clang do
|
||||
build 1400
|
||||
cause "Requires C++23 support"
|
||||
|
|
@ -194,7 +207,7 @@ class Sunshine < Formula
|
|||
# test that the binary runs at all
|
||||
system bin/"sunshine", "--version"
|
||||
|
||||
if IS_UPSTREAM_REPO
|
||||
if IS_UPSTREAM_REPO && ENV.fetch("HOMEBREW_BOTTLE_BUILD", "false") != "true"
|
||||
# run the test suite
|
||||
system bin/"test_sunshine", "--gtest_color=yes", "--gtest_output=xml:tests/test_results.xml"
|
||||
assert_path_exists File.join(testpath, "tests", "test_results.xml")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue