2009-10-22 15:09:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Cppunit < Formula
|
2009-10-22 15:09:34 +00:00
|
|
|
homepage 'http://sourceforge.net/apps/mediawiki/cppunit/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/cppunit/cppunit/1.12.1/cppunit-1.12.1.tar.gz'
|
2012-07-30 19:15:01 +00:00
|
|
|
sha1 'f1ab8986af7a1ffa6760f4bacf5622924639bf4a'
|
2009-10-22 15:09:34 +00:00
|
|
|
|
2014-03-24 12:51:03 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "2454890509b3b673e6a2bc7f53d755df7d5abb8f" => :mavericks
|
|
|
|
sha1 "07ace28a30f222a55adc2cd351524e5c8d8783a1" => :mountain_lion
|
|
|
|
sha1 "fcc7a7f99e35235a8cee728a3165d0db4da5dd5c" => :lion
|
|
|
|
end
|
|
|
|
|
2012-07-30 19:15:01 +00:00
|
|
|
option :universal
|
2011-08-16 02:33:04 +00:00
|
|
|
|
2014-03-18 17:13:31 +00:00
|
|
|
patch :DATA
|
2012-09-03 21:27:19 +00:00
|
|
|
|
2009-10-22 15:09:34 +00:00
|
|
|
def install
|
2012-07-30 19:15:01 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2011-08-16 02:33:04 +00:00
|
|
|
|
2012-07-30 19:15:01 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2009-10-22 15:09:34 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2012-09-03 21:27:19 +00:00
|
|
|
|
|
|
|
# configure script is broken, the final rm -f fails because it tries to file
|
|
|
|
# delete a directory. superenv exposes this bug for some reason, but std-env
|
|
|
|
# does not. Weird.
|
|
|
|
__END__
|
|
|
|
diff --git a/configure b/configure
|
|
|
|
index 424eea6..11e73ad 100755
|
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
|
|
|
@@ -23318,5 +23318,5 @@ echo X/* automatically generated */ |
|
|
|
|
echo "$as_me: error: input file $ac_prefix_conf_IN does not exist, skip generating $ac_prefix_conf_OUT" >&2;}
|
|
|
|
{ (exit 1); exit 1; }; }
|
|
|
|
fi
|
|
|
|
- rm -f conftest.*
|
|
|
|
+ rm -f conftest.* || true
|
|
|
|
fi
|