homebrew-core/Formula/mongoose.rb
2015-05-09 14:07:34 +08:00

23 lines
856 B
Ruby

class Mongoose < Formula
homepage "https://github.com/cesanta/mongoose"
url "https://github.com/cesanta/mongoose/archive/5.6.tar.gz"
sha256 "cc2557c7cf9f15e1e691f285a4c6c705cc7e56cb70c64cb49703a428a0677065"
bottle do
cellar :any
sha256 "cae6f9e1973da003d68af8dab42b2d4d1da490ba137d48dabab90d7c26b55a73" => :yosemite
sha256 "e2b62277ee6e88bed911c825c12d09763b7b6c449c235c175da9add4a65966e1" => :mavericks
sha256 "0ec26e8125679d0b2464a186b5d204035879804ca6ff814e50cc0eaad658fabd" => :mountain_lion
end
def install
system ENV.cc, "-dynamiclib", "mongoose.c", "-o", "libmongoose.dylib"
include.install "mongoose.h"
lib.install "libmongoose.dylib"
share.install "examples", "docs", "jni"
end
test do
system ENV.cc, "#{share}/examples/hello_world/hello_world.c", "-o", "hello_world", "-lmongoose"
end
end