diff options
| author | Justin Clift | 2014-08-12 10:01:41 -0400 |
|---|---|---|
| committer | Mike McQuaid | 2014-08-14 10:36:00 +0100 |
| commit | 01a6bd5e2c27dfe48d5e78e86a6287ce93462931 (patch) | |
| tree | b9b972279c78fdd2d5e4a2ce73c22dd8e2a24a8b /Library/Formula | |
| parent | 109e029a020fd48ed92c747763dcf4068bc4cf2d (diff) | |
| download | homebrew-01a6bd5e2c27dfe48d5e78e86a6287ce93462931.tar.bz2 | |
cmockery2 1.3.8
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/cmockery2.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/cmockery2.rb b/Library/Formula/cmockery2.rb new file mode 100644 index 000000000..62b298a70 --- /dev/null +++ b/Library/Formula/cmockery2.rb @@ -0,0 +1,26 @@ +require "formula" + +class Cmockery2 < Formula + homepage "https://github.com/lpabon/cmockery2" + head "https://github.com/lpabon/cmockery2.git" + url "https://github.com/lpabon/cmockery2/archive/v1.3.8.tar.gz" + sha1 "5b5633c9f32b40451b2b94fa47495029f9fad919" + + depends_on "automake" => :build + depends_on "autoconf" => :build + depends_on "libtool" => :build + depends_on "pkg-config" => :build + + def install + system "./autogen.sh" + system "./configure", "--prefix=#{prefix}" + system "make" + system "make", "install" + (share+"example").install "src/example/calculator.c" + end + + test do + system ENV.cc, share+"example/calculator.c", "-lcmockery", "-o", "calculator" + system "./calculator" + end +end |
