homebrew-core/Formula/gst-plugins-good.rb

59 lines
1.8 KiB
Ruby

class GstPluginsGood < Formula
desc "GStreamer plugins (well-supported, under the LGPL)"
homepage "https://gstreamer.freedesktop.org/"
url "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.18.4.tar.xz"
sha256 "b6e50e3a9bbcd56ee6ec71c33aa8332cc9c926b0c1fae995aac8b3040ebe39b0"
license "LGPL-2.0-or-later"
head "https://gitlab.freedesktop.org/gstreamer/gst-plugins-good.git"
livecheck do
url "https://gstreamer.freedesktop.org/src/gst-plugins-good/"
regex(/href=.*?gst-plugins-good[._-]v?(\d+\.\d*[02468](?:\.\d+)*)\.t/i)
end
bottle do
sha256 arm64_big_sur: "f686a1b5f9281dc17de276578ade425e0e3448f0944e6cdeba82fc55a1bae336"
sha256 big_sur: "0572b3c244f34b8772d7903e5e1c57a615550de15668f431dc306bc50f3af9e8"
sha256 catalina: "3adb6e29fbf82dc68d7e19898ab79757d46d648c6f58626133987d0217b96d1c"
sha256 mojave: "635e23e10b8a6a987ec61f12821bcd619b7d9692f4151ee21f30789c492d7e5d"
sha256 x86_64_linux: "d588cdf476a05bfa64e7a5a56ada9532e695c77688e27d47b4aed6da7fdb10b3"
end
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "cairo"
depends_on "flac"
depends_on "gettext"
depends_on "gst-plugins-base"
depends_on "gtk+3"
depends_on "jpeg"
depends_on "lame"
depends_on "libpng"
depends_on "libshout"
depends_on "libsoup"
depends_on "libvpx"
depends_on "orc"
depends_on "speex"
depends_on "taglib"
def install
args = std_meson_args + %w[
-Dgoom=disabled
-Dximagesrc=disabled
]
mkdir "build" do
system "meson", *args, ".."
system "ninja", "-v"
system "ninja", "install", "-v"
end
end
test do
gst = Formula["gstreamer"].opt_bin/"gst-inspect-1.0"
output = shell_output("#{gst} --plugin cairo")
assert_match version.to_s, output
end
end