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"
11 regex(/gtksourceviewmm[._-]v?(3\.([0-8]\d*?)?[02468](?:\.\d+)*?)\.t/i)
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"
25 depends_on "pkgconf" => [:build, :test]
27 depends_on "atkmm@2.28"
28 depends_on "cairomm@1.14"
30 depends_on "glibmm@2.66"
33 depends_on "gtksourceview3"
34 depends_on "libsigc++@2"
35 depends_on "pangomm@2.46"
38 depends_on "at-spi2-core"
40 depends_on "gdk-pixbuf"
48 system "./configure", *std_configure_args
49 system "make", "install"
53 (testpath/"test.cpp").write <<~CPP
54 #include <gtksourceviewmm.h>
56 int main(int argc, char *argv[]) {
62 flags = shell_output("pkgconf --cflags --libs gtksourceviewmm-3.0").chomp.split
63 system ENV.cxx, "-std=c++11", "test.cpp", "-o", "test", *flags