homebrew-core/Formula/io.rb

31 lines
764 B
Ruby
Raw Normal View History

2009-11-12 18:15:15 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Io < Formula
2012-02-22 04:48:36 +00:00
homepage 'http://iolanguage.com/'
url 'https://github.com/stevedekorte/io/tarball/2011.09.12'
md5 'b5c4b4117e43b4bbe571e4e12018535b'
2012-02-22 04:48:36 +00:00
head 'https://github.com/stevedekorte/io.git'
depends_on 'cmake' => :build
depends_on 'ossp-uuid'
depends_on 'libevent'
depends_on 'yajl'
2009-11-12 18:15:15 +00:00
def install
ENV.j1
2012-02-22 04:48:36 +00:00
mkdir 'buildroot' do
system "cmake #{std_cmake_parameters} .."
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
2009-11-12 18:15:15 +00:00
end
end