homebrew-core/Formula/io.rb
Jack Nagel c7630f5ff4 Use new std_cmake_args method
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-22 22:22:00 -05:00

30 lines
760 B
Ruby

require 'formula'
class Io < Formula
homepage 'http://iolanguage.com/'
url 'https://github.com/stevedekorte/io/tarball/2011.09.12'
md5 'b5c4b4117e43b4bbe571e4e12018535b'
head 'https://github.com/stevedekorte/io.git'
depends_on 'cmake' => :build
depends_on 'ossp-uuid'
depends_on 'libevent'
depends_on 'yajl'
def install
ENV.j1
mkdir 'buildroot' do
system "cmake", "..", *std_cmake_args
system 'make'
output = %x[./_build/binaries/io ../libs/iovm/tests/correctness/run.io]
if $?.exitstatus != 0
opoo "Test suite not 100% successful:\n#{output}"
else
ohai "Test suite ran successfully:\n#{output}"
end
system 'make install'
doc.install Dir['docs/*']
end
end
end