homebrew-core/Formula/cutter.rb

38 lines
1.3 KiB
Ruby

class Cutter < Formula
desc "Unit Testing Framework for C and C++"
homepage "https://cutter.osdn.jp/"
url "https://osdn.mirror.constant.com/cutter/73761/cutter-1.2.8.tar.gz"
sha256 "bd5fcd6486855e48d51f893a1526e3363f9b2a03bac9fc23c157001447bc2a23"
license "LGPL-3.0"
head "https://github.com/clear-code/cutter.git", branch: "master"
bottle do
sha256 arm64_big_sur: "ac45c9987b4d770856db1f5e2c8fc20fb1ed882297c22691fe29fb153f7b9828"
sha256 big_sur: "3ac33f6c41d14b9d1fd3486fe811dda6219d45930b0359f4300b69c50a56572d"
sha256 catalina: "237aebfb6d39c2efcbbc27e550fbac0a6d1477b549416b69aa71c53c06dce231"
sha256 mojave: "70999a7a96da94c5de52da9edb4bf9b3fe5e7b2372d189ccc5a7328f0c21400c"
sha256 high_sierra: "ccff0989fe28eeb233bf0cc1f3681041d1945f6e3b0c2700899b8f02581426b6"
end
depends_on "intltool" => :build
depends_on "pkg-config" => :build
depends_on "gettext"
depends_on "glib"
def install
system "./configure", "--prefix=#{prefix}",
"--disable-glibtest",
"--disable-goffice",
"--disable-gstreamer",
"--disable-libsoup"
system "make"
system "make", "install"
end
test do
touch "1.txt"
touch "2.txt"
system bin/"cut-diff", "1.txt", "2.txt"
end
end