From cc25e3f9862fa05d0b8c12db6ec45a71d24db5f5 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Tue, 15 Jan 2013 14:42:51 +0100 Subject: [PATCH] cmocka 0.2.0 The idea of CMocka is that a test application only requires the standard C library and CMocka itself to minimize the conflicts with standard C library headers especially on a lot of different platforms. It is a fork of cmockery (also in homebrew) which is not maintained anymore. Closes #17092. Signed-off-by: Adam Vandenberg --- Library/Formula/cmocka.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Library/Formula/cmocka.rb diff --git a/Library/Formula/cmocka.rb b/Library/Formula/cmocka.rb new file mode 100644 index 000000000000..3627c1770849 --- /dev/null +++ b/Library/Formula/cmocka.rb @@ -0,0 +1,17 @@ +require 'formula' + +class Cmocka < Formula + homepage 'http://cmocka.cryptomilk.org/' + url 'https://open.cryptomilk.org/attachments/download/7/cmocka-0.2.0.tar.gz' + sha1 '6d3aa2c201cb390d6bf5929eba75d9e77bfe4159' + + depends_on 'cmake' => :build + + def install + mkdir 'build' do + system "cmake", "..", "-DUNIT_TESTING=On", *std_cmake_args + system "make" + system "make install" + end + end +end