d9ff1a2b08
Closes Homebrew/homebrew#25602. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
27 lines
864 B
Ruby
27 lines
864 B
Ruby
require 'formula'
|
|
|
|
class RakudoStar < Formula
|
|
homepage 'http://rakudo.org/'
|
|
url 'http://rakudo.org/downloads/star/rakudo-star-2013.12.tar.gz'
|
|
sha256 '6a257e5f7879e0a9d7199edcfd47bd5a09dc4d9f5d91f124429af04974a836d3'
|
|
|
|
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
|