37 lines
1.2 KiB
Ruby
37 lines
1.2 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"
|
|
|
|
bottle do
|
|
sha256 "3ac33f6c41d14b9d1fd3486fe811dda6219d45930b0359f4300b69c50a56572d" => :big_sur
|
|
sha256 "237aebfb6d39c2efcbbc27e550fbac0a6d1477b549416b69aa71c53c06dce231" => :catalina
|
|
sha256 "70999a7a96da94c5de52da9edb4bf9b3fe5e7b2372d189ccc5a7328f0c21400c" => :mojave
|
|
sha256 "ccff0989fe28eeb233bf0cc1f3681041d1945f6e3b0c2700899b8f02581426b6" => :high_sierra
|
|
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
|