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