53 lines
2.0 KiB
Ruby
53 lines
2.0 KiB
Ruby
class GsettingsDesktopSchemas < Formula
|
|
desc "GSettings schemas for desktop components"
|
|
homepage "https://download.gnome.org/sources/gsettings-desktop-schemas/"
|
|
url "https://download.gnome.org/sources/gsettings-desktop-schemas/42/gsettings-desktop-schemas-42.0.tar.xz"
|
|
sha256 "6686335a9ed623f7ae2276fefa50a410d4e71d4231880824714070cb317323d2"
|
|
license "LGPL-2.1-or-later"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "20d3476344356c605545eb88740d06692e630cb59c90561a43ec15e8cc775ec9"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "20d3476344356c605545eb88740d06692e630cb59c90561a43ec15e8cc775ec9"
|
|
sha256 cellar: :any_skip_relocation, monterey: "20d3476344356c605545eb88740d06692e630cb59c90561a43ec15e8cc775ec9"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "20d3476344356c605545eb88740d06692e630cb59c90561a43ec15e8cc775ec9"
|
|
sha256 cellar: :any_skip_relocation, catalina: "20d3476344356c605545eb88740d06692e630cb59c90561a43ec15e8cc775ec9"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "ff08511c0988eec4bbe0c5a37bbbcbc7070ead8581d9e7ffa49fbe842d6bd562"
|
|
end
|
|
|
|
depends_on "gobject-introspection" => :build
|
|
depends_on "meson" => :build
|
|
depends_on "ninja" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "python@3.10" => :build
|
|
depends_on "glib"
|
|
|
|
uses_from_macos "expat"
|
|
|
|
def install
|
|
ENV["DESTDIR"] = "/"
|
|
|
|
mkdir "build" do
|
|
system "meson", *std_meson_args, ".."
|
|
system "ninja", "-v"
|
|
system "ninja", "install", "-v"
|
|
end
|
|
end
|
|
|
|
def post_install
|
|
# manual schema compile step
|
|
system "#{Formula["glib"].opt_bin}/glib-compile-schemas", "#{HOMEBREW_PREFIX}/share/glib-2.0/schemas"
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.c").write <<~EOS
|
|
#include <gdesktop-enums.h>
|
|
|
|
int main(int argc, char *argv[]) {
|
|
return 0;
|
|
}
|
|
EOS
|
|
system ENV.cc, "-I#{HOMEBREW_PREFIX}/include/gsettings-desktop-schemas", "test.c", "-o", "test"
|
|
system "./test"
|
|
end
|
|
end
|