2009-11-12 18:15:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Io <Formula
|
|
|
|
head 'git://github.com/stevedekorte/io.git'
|
|
|
|
homepage 'http://iolanguage.com/'
|
2009-12-05 15:42:26 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'cmake' => :build
|
2010-03-01 19:04:42 +00:00
|
|
|
depends_on 'libsgml'
|
2009-12-05 15:42:26 +00:00
|
|
|
|
2009-11-12 18:15:15 +00:00
|
|
|
def install
|
2010-03-01 19:04:42 +00:00
|
|
|
ENV.j1
|
2010-06-17 23:53:05 +00:00
|
|
|
mkdir 'io-build'
|
2009-12-05 15:42:26 +00:00
|
|
|
|
2010-03-01 19:04:42 +00:00
|
|
|
Dir.chdir 'io-build' do
|
|
|
|
system "cmake .. #{std_cmake_parameters}"
|
|
|
|
system "make install"
|
|
|
|
end
|
2009-12-05 15:42:26 +00:00
|
|
|
|
2010-06-17 23:53:05 +00:00
|
|
|
rm_f Dir['docs/*.pdf']
|
2010-03-01 19:04:42 +00:00
|
|
|
doc.install Dir['docs/*']
|
2010-06-17 23:53:05 +00:00
|
|
|
|
|
|
|
prefix.install 'license/bsd_license.txt' => 'LICENSE'
|
2009-11-12 18:15:15 +00:00
|
|
|
end
|
|
|
|
end
|