homebrew-core/Formula/rakudo-star.rb
Rob Hoelz d259a45c4a Rakudo Star 2013.02
Closes Homebrew/homebrew#18079.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-02-25 09:05:58 -08:00

32 lines
1 KiB
Ruby

require 'formula'
class RakudoStar < Formula
homepage 'http://rakudo.org/'
url 'http://rakudo.org/downloads/star/rakudo-star-2013.02.tar.gz'
sha256 '99c9b033065c2f8e4e847182677b71cbc1f7ba5f509069d3c4c5edf606e9d92a'
depends_on 'gmp' => :optional
depends_on 'icu4c' => :optional
depends_on 'pcre' => :optional
depends_on 'libffi'
def install
libffi = Formula.factory("libffi")
ENV.remove 'CPPFLAGS', "-I#{libffi.include}"
ENV.prepend 'CPPFLAGS', "-I#{libffi.lib}/libffi-3.0.11/include"
ENV.j1 # An intermittent race condition causes random build failures.
system "perl", "Configure.pl", "--prefix=#{prefix}", "--gen-parrot"
system "make"
system "make install"
# move the man pages out of the top level into share.
mv "#{prefix}/man", share
end
def caveats; <<-EOS
Rakudo 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