2012-03-23 10:13:30 +00:00
|
|
|
class Cutter < Formula
|
2015-08-01 09:35:45 +00:00
|
|
|
desc "Unit Testing Framework for C and C++"
|
2014-06-17 06:48:28 +00:00
|
|
|
homepage "http://cutter.sourceforge.net/"
|
2015-08-03 15:00:44 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/cutter/cutter/1.2.5/cutter-1.2.5.tar.gz"
|
|
|
|
sha256 "e53613445e8fe20173a656db5a70a7eb0c4586be1d9f33dc93e2eddd2f646b20"
|
2015-06-25 14:44:46 +00:00
|
|
|
head "https://github.com/clear-code/cutter.git"
|
2012-03-23 10:13:30 +00:00
|
|
|
|
2015-06-25 16:14:04 +00:00
|
|
|
bottle do
|
2015-08-03 18:45:16 +00:00
|
|
|
sha256 "94d199ff3bd76e593e6f14953c62a1ff9bc11d012a52d825dbfee52813d6be54" => :yosemite
|
|
|
|
sha256 "f4a22bcd3bed4ab5b4d536bd61613a0b526f390376fa614ed67f682f71339def" => :mavericks
|
|
|
|
sha256 "ce4d7aed7be9b99111e4515c617bd3c2e6a2bdcae8bca9c1a52f9d463747fa2a" => :mountain_lion
|
2015-06-25 16:14:04 +00:00
|
|
|
end
|
|
|
|
|
2014-06-17 06:48:28 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "intltool" => :build
|
|
|
|
depends_on "glib"
|
|
|
|
depends_on "gettext"
|
2012-03-23 10:13:30 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--disable-glibtest",
|
|
|
|
"--disable-goffice",
|
|
|
|
"--disable-gstreamer",
|
|
|
|
"--disable-libsoup"
|
|
|
|
system "make"
|
2015-06-25 14:44:46 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
touch "1.txt"
|
|
|
|
touch "2.txt"
|
|
|
|
system bin/"cut-diff", "1.txt", "2.txt"
|
2012-03-23 10:13:30 +00:00
|
|
|
end
|
|
|
|
end
|