Skip to content

Commit

Permalink
aravis: migrate to pkgconf
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-m committed Nov 22, 2024
1 parent 5220de0 commit 6dc2599
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Formula/a/aravis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Aravis < Formula
depends_on "gtk-doc" => :build
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "pkgconf" => :build

depends_on "adwaita-icon-theme"
depends_on "glib"
Expand Down Expand Up @@ -68,6 +68,12 @@ def caveats
end

test do
# The initial plugin load takes a long time without extra permissions on
# macOS, which frequently causes the slower Intel macOS runners to time out.
#
# Ref: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1119
ENV["GST_PLUGIN_SYSTEM_PATH"] = testpath if OS.mac? && Hardware::CPU.intel? && ENV["HOMEBREW_GITHUB_ACTIONS"]

lib_ext = OS.mac? ? "dylib" : "so"
output = shell_output("gst-inspect-1.0 #{lib}/gstreamer-1.0/libgstaravis.#{version.major_minor}.#{lib_ext}")
assert_match(/Description *Aravis Video Source/, output)
Expand Down

0 comments on commit 6dc2599

Please sign in to comment.