homebrew-core/Formula/rakudo-star.rb
Brett Koonce d52ae8819b rakudo-star 2013.09
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-10-20 10:06:56 +01:00

27 lines
832 B
Ruby

require 'formula'
class RakudoStar < Formula
homepage 'http://rakudo.org/'
url 'http://rakudo.org/downloads/star/rakudo-star-2013.09.tar.gz'
sha256 '3e777dfc1763a68edc2d879a37122aee0f33c9de65d148c41ad209b95b1aef16'
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