Merge pull request #207012 from Homebrew/bump-tailwindcss-4.0.5
[Homebrew/homebrew-core.git] / Formula / g / gtksourceviewmm3.rb
blob7ddc030b2b65fa588f876c2e82f672ed4efa22a7
1 class Gtksourceviewmm3 < Formula
2   desc "C++ bindings for gtksourceview3"
3   homepage "https://gitlab.gnome.org/GNOME/gtksourceviewmm"
4   url "https://download.gnome.org/sources/gtksourceviewmm/3.18/gtksourceviewmm-3.18.0.tar.xz"
5   sha256 "51081ae3d37975dae33d3f6a40621d85cb68f4b36ae3835eec1513482aacfb39"
6   license "LGPL-2.1-or-later"
7   revision 11
9   livecheck do
10     url :stable
11     regex(/gtksourceviewmm[._-]v?(3\.([0-8]\d*?)?[02468](?:\.\d+)*?)\.t/i)
12   end
14   bottle do
15     sha256 cellar: :any,                 arm64_sequoia:  "8de9f30c9a139c912211e4766370c1b2a3b4f78150a4342f6242f56581ebf3bb"
16     sha256 cellar: :any,                 arm64_sonoma:   "dc3f50e8c5d192b4dc176878e95f4b7bf28d0a19e21c7c47b88f1c5905f64ebb"
17     sha256 cellar: :any,                 arm64_ventura:  "fa886fba1a65986e976859a1c9714b8892695850e6c8325dc534532f31536f0a"
18     sha256 cellar: :any,                 arm64_monterey: "9353790d382f15315725c82eb60364f0533d2cc4d3e7483abbc34ab4962f3688"
19     sha256 cellar: :any,                 sonoma:         "6d967d0889a430e64312a18afbae33554340938c8fae2a90ddd652cd2beb86cd"
20     sha256 cellar: :any,                 ventura:        "599a63e233b2cab4497e4266780a1c4a55616aeb6a8dfbdb7fa92c0f443720c6"
21     sha256 cellar: :any,                 monterey:       "e47d5fa75c9210450660bdd5bbb0ca206e90beba0a0954e49a7b7596e6bc5a42"
22     sha256 cellar: :any_skip_relocation, x86_64_linux:   "b6489e67344895dad8ef93a694a47c49fec20dc0735989355b11489cd85fbccd"
23   end
25   depends_on "pkgconf" => [:build, :test]
27   depends_on "atkmm@2.28"
28   depends_on "cairomm@1.14"
29   depends_on "glib"
30   depends_on "glibmm@2.66"
31   depends_on "gtk+3"
32   depends_on "gtkmm3"
33   depends_on "gtksourceview3"
34   depends_on "libsigc++@2"
35   depends_on "pangomm@2.46"
37   on_macos do
38     depends_on "at-spi2-core"
39     depends_on "cairo"
40     depends_on "gdk-pixbuf"
41     depends_on "gettext"
42     depends_on "harfbuzz"
43     depends_on "pango"
44   end
46   def install
47     ENV.cxx11
48     system "./configure", *std_configure_args
49     system "make", "install"
50   end
52   test do
53     (testpath/"test.cpp").write <<~CPP
54       #include <gtksourceviewmm.h>
56       int main(int argc, char *argv[]) {
57         Gsv::init();
58         return 0;
59       }
60     CPP
62     flags = shell_output("pkgconf --cflags --libs gtksourceviewmm-3.0").chomp.split
63     system ENV.cxx, "-std=c++11", "test.cpp", "-o", "test", *flags
64     system "./test"
65   end
66 end