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

56 lines
1.7 KiB
Ruby

class GstPluginsUgly < Formula
desc "Library for constructing graphs of media-handling components"
homepage "https://gstreamer.freedesktop.org/"
url "https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-1.18.1.tar.xz"
sha256 "18cd6cb829eb9611ca63cbcbf46aca0f0de1dd28b2df18caa2834326a75ff725"
license "LGPL-2.0-or-later"
revision 2
head "https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly.git"
livecheck do
url "https://gstreamer.freedesktop.org/src/gst-plugins-ugly/"
regex(/href=.*?gst-plugins-ugly[._-]v?(\d+\.\d*[02468](?:\.\d+)*)\.t/i)
end
bottle do
sha256 "4ff206b09d896b9c65eac3fd862d4bd8cd182d77c5c5a35680f2fa9cd6e79826" => :big_sur
sha256 "4032c9ed8efa621f8fc3440eeb358e46cdc5b4b0e23cabaddc0c3991dfb4eda1" => :catalina
sha256 "85c3029a955a488531e476a01c830cda703ff28cc96afc1c01680c147e0b5991" => :mojave
end
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "flac"
depends_on "gettext"
depends_on "gst-plugins-base"
depends_on "jpeg"
depends_on "libmms"
depends_on "libshout"
depends_on "libvorbis"
depends_on "pango"
depends_on "theora"
depends_on "x264"
def install
args = std_meson_args + %w[
-Damrnb=disabled
-Damwrbdec=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 dvdsub")
assert_match version.to_s, output
output = shell_output("#{gst} --plugin x264")
assert_match version.to_s, output
end
end