a4b443c49a
Closes Homebrew/homebrew#15540. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
32 lines
1 KiB
Ruby
32 lines
1 KiB
Ruby
require 'formula'
|
|
|
|
class RakudoStar < Formula
|
|
homepage 'http://rakudo.org/'
|
|
url 'https://github.com/downloads/rakudo/star/rakudo-star-2012.09.tar.gz'
|
|
sha256 '26246946f5e90982a9c024d0d17ac75a9e073af332b01441e46a46745f9dbb84'
|
|
|
|
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
|
|
Raukdo 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
|