53 lines
1.6 KiB
Ruby
53 lines
1.6 KiB
Ruby
class Aravis < Formula
|
|
desc "Vision library for genicam based cameras"
|
|
homepage "https://wiki.gnome.org/Projects/Aravis"
|
|
url "https://download.gnome.org/sources/aravis/0.8/aravis-0.8.1.tar.xz"
|
|
sha256 "5fab57711f158f2eec19c32c2b1b87f4e3761df456f23bd330050d91e0f664aa"
|
|
license "LGPL-2.1-or-later"
|
|
|
|
livecheck do
|
|
url :stable
|
|
end
|
|
|
|
bottle do
|
|
sha256 "90c41ee46b73d25dba0bff7320bb190946c0725c07adcceaa1f438bb6f15e062" => :catalina
|
|
sha256 "503b363c8582ec6cbd0ebfe940909f3cfd5ef2c5a77fdac7c3c574c77f98f3e5" => :mojave
|
|
sha256 "c29d201d259e362616933f038d2b9b2cc109ede3a90a0821a8318296e9b10d1b" => :high_sierra
|
|
end
|
|
|
|
depends_on "gobject-introspection" => :build
|
|
depends_on "gtk-doc" => :build
|
|
depends_on "meson" => :build
|
|
depends_on "ninja" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "adwaita-icon-theme"
|
|
depends_on "glib"
|
|
depends_on "gst-plugins-bad"
|
|
depends_on "gst-plugins-base"
|
|
depends_on "gst-plugins-good"
|
|
depends_on "gstreamer"
|
|
depends_on "gtk+3"
|
|
depends_on "intltool"
|
|
depends_on "libnotify"
|
|
depends_on "libusb"
|
|
|
|
def install
|
|
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"
|
|
|
|
mkdir "build" do
|
|
system "meson", *std_meson_args, ".."
|
|
system "ninja"
|
|
system "ninja", "install"
|
|
end
|
|
end
|
|
|
|
def post_install
|
|
system "#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache", "-f", "-t", "#{HOMEBREW_PREFIX}/share/icons/hicolor"
|
|
end
|
|
|
|
test do
|
|
output = shell_output("gst-inspect-1.0 #{lib}/gstreamer-1.0/libgstaravis.#{version.major_minor}.dylib")
|
|
assert_match /Description *Aravis Video Source/, output
|
|
end
|
|
end
|