homebrew-core/Formula/mosquitto.rb

19 lines
393 B
Ruby
Raw Normal View History

require 'formula'
class Mosquitto < Formula
homepage 'http://mosquitto.org/'
2012-02-22 05:12:27 +00:00
url 'http://mosquitto.org/files/source/mosquitto-0.14.4.tar.gz'
md5 '88750338c2096671c01cf7e461d5c06d'
depends_on 'cmake' => :build
def install
2012-02-22 05:12:27 +00:00
system "cmake #{std_cmake_parameters} ."
system "make install"
end
def test
2012-02-22 05:12:27 +00:00
system "#{bin}/mosquitto -h > /dev/null ; [ $? -eq 3 ]"
end
end