homebrew-core/Formula/gradio.rb

52 lines
1.7 KiB
Ruby

class Gradio < Formula
desc "GTK3 app for finding and listening to internet radio stations"
homepage "https://github.com/haecker-felix/Gradio"
url "https://github.com/haecker-felix/Gradio/archive/v7.3.tar.gz"
sha256 "5c5afed83fceb9a9f8bc7414b8a200128b3317ccf1ed50a0e7321ca15cf19412"
license "GPL-3.0-or-later"
revision 1
bottle do
sha256 big_sur: "e6468d6afe0f7e65ebf642bf4a5935464b0e390f6c607f58573221e8a0ff03f4"
sha256 catalina: "80de210e71cbf7bd18f125ed1b74c58939046418905bbbbe03892b1b7d4dc8ca"
sha256 mojave: "afed2590e43bb873751bf147da70228edf518aaa4da9a47a8e74a339385e7407"
sha256 high_sierra: "772bc7cd809b085f9eaf2419ae9ddae50e80cbaaace480fe1f3d23c26bd8f164"
end
deprecate! date: "2019-11-16", because: :repo_archived
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "adwaita-icon-theme"
depends_on "cairo"
depends_on "gettext"
depends_on "glib"
depends_on "gst-libav"
depends_on "gst-plugins-base"
depends_on "gstreamer"
depends_on "gtk+3"
depends_on "hicolor-icon-theme"
depends_on "json-glib"
depends_on "libsoup"
depends_on "python@3.7"
def install
# stop meson_post_install.py from doing what needs to be done in the post_install step
ENV["DESTDIR"] = "/"
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"
system "#{Formula["glib"].opt_bin}/glib-compile-schemas", "#{HOMEBREW_PREFIX}/share/glib-2.0/schemas"
end
test do
system "#{bin}/gradio", "-h"
end
end