03b6b8ec59
Includes a test script that checks if `mosquitto -h` quits with code 3. Closes Homebrew/homebrew#9670. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
18 lines
386 B
Ruby
18 lines
386 B
Ruby
require 'formula'
|
|
|
|
class Mosquitto < Formula
|
|
url 'http://mosquitto.org/files/source/mosquitto-0.14.4.tar.gz'
|
|
homepage 'http://mosquitto.org/'
|
|
md5 '88750338c2096671c01cf7e461d5c06d'
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
def install
|
|
system "cmake . #{std_cmake_parameters}"
|
|
system "make install"
|
|
end
|
|
|
|
def test
|
|
system "mosquitto -h > /dev/null ; [ $? -eq 3 ]"
|
|
end
|
|
end
|