d6577299a5
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 Homebrew/homebrew#17092. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
17 lines
413 B
Ruby
17 lines
413 B
Ruby
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
|