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

class RakudoStar < Formula
  homepage 'http://rakudo.org/'
  url 'https://github.com/downloads/rakudo/star/rakudo-star-2012.01.tar.gz'
  sha256 '2bfa055c6d3b6060917fb45561d1346fef518912aaf69af361f54dd3f9ec903c'

  depends_on 'gmp' => :optional
  depends_on 'icu4c' => :optional
  depends_on 'pcre' => :optional

  def install
    system "perl", "Configure.pl", "--prefix=#{prefix}", "--gen-parrot"
    system "make"
    system "make install"
  end

  def caveats; <<-EOS
    Raukdo Star comes with its own specific version of Parrot. Installing the
    Parrot formula along side the Rakudo Star formula will override a number
    of the binaries (eg. parrot, nqp, winxed, etc.).
    EOS
  end
end