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

class Rock < Formula
  homepage 'http://ooc-lang.org'
  url 'https://github.com/nddrylliog/rock/archive/v0.9.6.tar.gz'
  sha1 '5d1cc6f194f76a2b0a8c0ed0b48fcd0e26e75c95'

  head 'https://github.com/nddrylliog/rock.git'

  depends_on 'bdw-gc'

  def install
      # make rock using provided bootstrap
      system "make rescue"
      bin.install 'bin/rock'
      man1.install "docs/rock.1"

      # install misc authorship files & rock binary in place
      # copy the sdk, libs and docs
      prefix.install "rock.use", 'README.md', "sdk", "libs", "docs"
  end
end