58 lines
1.7 KiB
Ruby
58 lines
1.7 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.1.tar.xz"
|
|
sha256 "e210e91a5590ecb6accc9d06c949a58ca6897d8edb3b3d55828e424c624f626c"
|
|
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 "f9f6a8c6ef9f3eb025cfed021a8846c41675b910b6da5475145140b017f24440" => :big_sur
|
|
sha256 "714470c41a6a5517af5dce2256cccc3ae6ecd3a4cb523ffddd196b6510e2cef7" => :catalina
|
|
sha256 "8e0503deecd581d0a9a83ce98a65f470f987d51944bbe0b50b46b169de176791" => :mojave
|
|
sha256 "b93a5373da97936d47469a48ac10457167c1f4115cb10208ab243af2562e2972" => :high_sierra
|
|
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
|