aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/clay.rb
blob: 92b035d5aa633ce7ced2ec87e888c276dd03b81e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Clay < Formula
  url 'https://github.com/jckarter/clay/tarball/v0.1.0'
  homepage 'http://claylabs.com/clay/'
  md5 'fa34b4ecc0ab13047f802b9aac6d850b'
  head 'https://github.com/jckarter/clay.git'

  depends_on 'cmake' => :build
  depends_on 'llvm'  => :build

  def install
    system "cmake . #{std_cmake_parameters}"
    system "make install"
  end

  def test
    system "clay -e 'println(\"Hello, Clay!\");'"
  end
end