diff options
| author | Aris Adamantiadis | 2013-01-15 14:42:51 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2013-01-15 07:25:21 -0800 |
| commit | cc25e3f9862fa05d0b8c12db6ec45a71d24db5f5 (patch) | |
| tree | 8794d12d776edc74943eb02797f462c949315ab7 /Library/Formula | |
| parent | 27eebef74044b8ab6fb5e4b1c6a9f7b336e7c55b (diff) | |
| download | homebrew-cc25e3f9862fa05d0b8c12db6ec45a71d24db5f5.tar.bz2 | |
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 <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/cmocka.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/cmocka.rb b/Library/Formula/cmocka.rb new file mode 100644 index 000000000..3627c1770 --- /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 |
