homebrew-core/Formula/rakudo-star.rb

28 lines
864 B
Ruby

require 'formula'
class RakudoStar < Formula
homepage 'http://rakudo.org/'
url 'http://rakudo.org/downloads/star/rakudo-star-2013.11.tar.gz'
sha256 '7f867f0e4ce7fee7c0f8ecf207d8cb118c334bc71b1a849c0dfa6aa11fd8b4fe'
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-#{libffi.version}/include"
ENV.j1 # An intermittent race condition causes random build failures.
system "perl", "Configure.pl", "--prefix=#{prefix}", "--backends=parrot", "--gen-parrot"
system "make"
system "make install"
# move the man pages out of the top level into share.
mv "#{prefix}/man", share
end
end