homebrew-core/Formula/rakudo-star.rb
Rob Hoelz ce7b52bb4c rakudo-star 2013.08
Closes Homebrew/homebrew#22143.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-27 17:26:03 -07:00

27 lines
832 B
Ruby

require 'formula'
class RakudoStar < Formula
homepage 'http://rakudo.org/'
url 'http://rakudo.org/downloads/star/rakudo-star-2013.08.tar.gz'
sha256 '633308e5d9f3f0fc661302810cdc30e55dd4709f2196a8f41e9f59ba336ee48c'
conflicts_with 'parrot'
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
end