homebrew-core/Formula/mm-common.rb

36 lines
1.1 KiB
Ruby

class MmCommon < Formula
desc "Build utilities for C++ interfaces of GTK+ and GNOME packages"
homepage "https://www.gtkmm.org/"
url "https://download.gnome.org/sources/mm-common/1.0/mm-common-1.0.5.tar.xz"
sha256 "705c6d29f4116a29bde4e36cfc1b046c92b6ef8c6dae4eaec85018747e6da5aa"
license "GPL-2.0-or-later"
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, all: "dcfddd3256b6c5898ca24e794643e64a3cfc7fd634718471680b509fe62553c0"
end
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "python@3.11"
def install
mkdir "build" do
system "meson", *std_meson_args, ".."
system "ninja"
system "ninja", "install"
end
end
test do
mkdir testpath/"test"
touch testpath/"test/a"
system bin/"mm-common-prepare", "-c", testpath/"test/a"
assert_predicate testpath/"test/compile-binding.am", :exist?
assert_predicate testpath/"test/dist-changelog.am", :exist?
assert_predicate testpath/"test/doc-reference.am", :exist?
assert_predicate testpath/"test/generate-binding.am", :exist?
end
end