Merge pull request #207012 from Homebrew/bump-tailwindcss-4.0.5
[Homebrew/homebrew-core.git] / Formula / g / gtkmm3.rb
blobebc5fd46997ac03831202c309c736301d41d2408
1 class Gtkmm3 < Formula
2   desc "C++ interfaces for GTK+ and GNOME"
3   homepage "https://www.gtkmm.org/"
4   url "https://download.gnome.org/sources/gtkmm/3.24/gtkmm-3.24.9.tar.xz"
5   sha256 "30d5bfe404571ce566a8e938c8bac17576420eb508f1e257837da63f14ad44ce"
6   license "LGPL-2.1-or-later"
8   livecheck do
9     url :stable
10     regex(/gtkmm[._-]v?(3\.([0-8]\d*?)?[02468](?:\.\d+)*?)\.t/i)
11   end
13   bottle do
14     sha256 cellar: :any, arm64_sequoia:  "34f51a1502979c61cb7b92921770e9bf0a388acf0cac71f15c589b9ee583c8ee"
15     sha256 cellar: :any, arm64_sonoma:   "fb81c07b62bf93741751146db60e01d13dd0f2e2f10686286703133e8356668a"
16     sha256 cellar: :any, arm64_ventura:  "a96cef2e81067ac9239b8eeadd95f1e13f33f02058e43a6f2b349b56b5579c2c"
17     sha256 cellar: :any, arm64_monterey: "417c16642451874e4444883262d2850241e35607d87e8bf02c534b041b798f3d"
18     sha256 cellar: :any, sonoma:         "ddebda42ae26f02c468c9fa4d990ec4c6a110c281c90d63f4a6db1ab6eb53ba6"
19     sha256 cellar: :any, ventura:        "94b66c7c5c18c00262020c88f2abed754cbf9e500f1838d2c9e634f99b91ea6b"
20     sha256 cellar: :any, monterey:       "059230eadd967c816ea5c01903c5eb07c39690dbc9c54cdec0cbbcf5760c1a91"
21     sha256               x86_64_linux:   "548ac36e8284ef35d9bb0700f63a50deb54ebfb67b27de3e72b0ab45793b6232"
22   end
24   depends_on "meson" => :build
25   depends_on "ninja" => :build
26   depends_on "pkgconf" => [:build, :test]
28   depends_on "atkmm@2.28"
29   depends_on "cairomm@1.14"
30   depends_on "gdk-pixbuf"
31   depends_on "glib"
32   depends_on "glibmm@2.66"
33   depends_on "gtk+3"
34   depends_on "libsigc++@2"
35   depends_on "pangomm@2.46"
37   def install
38     system "meson", "setup", "build", *std_meson_args
39     system "meson", "compile", "-C", "build", "--verbose"
40     system "meson", "install", "-C", "build"
41   end
43   test do
44     (testpath/"test.cpp").write <<~CPP
45       #include <gtkmm.h>
47       class MyLabel : public Gtk::Label {
48         MyLabel(Glib::ustring text) : Gtk::Label(text) {}
49       };
50       int main(int argc, char *argv[]) {
51         return 0;
52       }
53     CPP
55     flags = shell_output("pkgconf --cflags --libs gtkmm-3.0").chomp.split
56     system ENV.cxx, "-std=c++11", "test.cpp", "-o", "test", *flags
57     system "./test"
58   end
59 end