69 lines
2.4 KiB
Ruby
69 lines
2.4 KiB
Ruby
class GnomeRecipes < Formula
|
|
desc "Formula for GNOME recipes"
|
|
homepage "https://wiki.gnome.org/Apps/Recipes"
|
|
url "https://download.gnome.org/sources/gnome-recipes/2.0/gnome-recipes-2.0.2.tar.xz"
|
|
sha256 "1be9d2fcb7404a97aa029d2409880643f15071c37039247a6a4320e7478cd5fb"
|
|
revision 6
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 "ec344aea10673e323e449140a75ec6b0d1f0e7d2df311a7d1b74ba5d38060e59" => :mojave
|
|
sha256 "4e26ec4a2a2ed06ef948fca74364265d2d02416575e67117000531abe7fef756" => :high_sierra
|
|
sha256 "6c2bdccb10c2fd094cf6a618b57b7361b1a4ff60377aaebe69b9891c60d7e05d" => :sierra
|
|
sha256 "5fba96e2200b9a7763cae02c8998a43422c8a69543f362b058fb92adad950ee8" => :el_capitan
|
|
end
|
|
|
|
depends_on "itstool" => :build
|
|
depends_on "meson" => :build
|
|
depends_on "ninja" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "python" => :build
|
|
depends_on "adwaita-icon-theme"
|
|
depends_on "gnome-autoar"
|
|
depends_on "gnu-tar"
|
|
depends_on "gspell"
|
|
depends_on "gtk+3"
|
|
depends_on "json-glib" # for goa
|
|
depends_on "libcanberra"
|
|
depends_on "librest" # for goa
|
|
depends_on "libsoup"
|
|
depends_on "libxml2"
|
|
|
|
resource "goa" do
|
|
url "https://download.gnome.org/sources/gnome-online-accounts/3.30/gnome-online-accounts-3.30.0.tar.xz"
|
|
sha256 "27d9d88942aa02a1f8d003dfe515483d8483f216ba1e297a8ef67a42cf4bcfc3"
|
|
end
|
|
|
|
def install
|
|
resource("goa").stage do
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{libexec}",
|
|
"--disable-backend"
|
|
system "make", "install"
|
|
end
|
|
|
|
ENV.prepend_path "PKG_CONFIG_PATH", libexec/"lib/pkgconfig"
|
|
|
|
# BSD tar does not support the required options
|
|
inreplace "src/gr-recipe-store.c", "argv[0] = \"tar\";", "argv[0] = \"gtar\";"
|
|
# stop meson_post_install.py from doing what needs to be done in the post_install step
|
|
ENV["DESTDIR"] = ""
|
|
ENV.delete "PYTHONPATH"
|
|
mkdir "build" do
|
|
system "meson", "--prefix=#{prefix}", ".."
|
|
system "ninja"
|
|
system "ninja", "install"
|
|
end
|
|
end
|
|
|
|
def post_install
|
|
system "#{Formula["glib"].opt_bin}/glib-compile-schemas", "#{HOMEBREW_PREFIX}/share/glib-2.0/schemas"
|
|
system "#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache", "-f", "-t", "#{HOMEBREW_PREFIX}/share/icons/hicolor"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/gnome-recipes", "--help"
|
|
end
|
|
end
|