2009-11-12 18:15:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Io < Formula
|
2011-10-11 19:48:44 +00:00
|
|
|
url 'https://github.com/stevedekorte/io/tarball/2011.09.12'
|
|
|
|
md5 'b5c4b4117e43b4bbe571e4e12018535b'
|
2011-09-06 20:02:08 +00:00
|
|
|
head 'https://github.com/stevedekorte/io.git'
|
2011-09-20 03:45:16 +00:00
|
|
|
homepage 'http://iolanguage.com/'
|
2009-12-05 15:42:26 +00:00
|
|
|
|
2011-10-11 19:48:44 +00:00
|
|
|
depends_on 'cmake' => :build
|
2010-03-01 19:04:42 +00:00
|
|
|
depends_on 'libsgml'
|
2011-05-25 02:43:11 +00:00
|
|
|
depends_on 'ossp-uuid'
|
2011-08-26 12:36:28 +00:00
|
|
|
depends_on 'libevent'
|
2011-10-11 19:48:44 +00:00
|
|
|
depends_on 'yajl'
|
2011-09-20 03:45:16 +00:00
|
|
|
|
2009-11-12 18:15:15 +00:00
|
|
|
def install
|
2010-03-01 19:04:42 +00:00
|
|
|
ENV.j1
|
2011-10-11 19:48:44 +00:00
|
|
|
mkdir 'buildroot'
|
|
|
|
Dir.chdir 'buildroot'
|
|
|
|
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}"
|
2011-09-20 03:45:16 +00:00
|
|
|
else
|
2011-10-11 19:48:44 +00:00
|
|
|
ohai "Test suite ran successfully:\n#{output}"
|
2011-09-20 03:45:16 +00:00
|
|
|
end
|
2011-10-11 19:48:44 +00:00
|
|
|
system 'make install'
|
2010-03-01 19:04:42 +00:00
|
|
|
doc.install Dir['docs/*']
|
2009-11-12 18:15:15 +00:00
|
|
|
end
|
2011-11-30 18:56:07 +00:00
|
|
|
end
|