cmockery2 1.3.8
This commit is contained in:
parent
5060a3a80f
commit
4e34fcd515
1 changed files with 26 additions and 0 deletions
26
Formula/cmockery2.rb
Normal file
26
Formula/cmockery2.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue