2010-06-30 21:51:03 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Clay < Formula
|
2011-12-02 14:34:02 +00:00
|
|
|
homepage 'http://claylabs.com/clay/'
|
2012-08-02 18:32:46 +00:00
|
|
|
url 'https://github.com/jckarter/clay/tarball/v0.1.2'
|
|
|
|
sha1 '1c7de85a36b4516c0cf5ba7f413d748d1c37c9b4'
|
2012-02-22 05:12:27 +00:00
|
|
|
|
2012-01-18 03:19:45 +00:00
|
|
|
head 'https://github.com/jckarter/clay.git'
|
|
|
|
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
depends_on 'llvm' => :build
|
2010-06-30 21:51:03 +00:00
|
|
|
|
|
|
|
def install
|
2012-05-22 21:37:04 +00:00
|
|
|
system "cmake", ".", *std_cmake_args
|
2012-01-18 03:19:45 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-15 18:31:21 +00:00
|
|
|
system "#{bin}/clay", "-e", "println(\"Hello, Clay!\");"
|
2010-06-30 21:51:03 +00:00
|
|
|
end
|
|
|
|
end
|