2010-08-09 21:42:55 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class RakudoStar < Formula
|
2010-08-09 21:42:55 +00:00
|
|
|
homepage 'http://rakudo.org/'
|
2013-02-25 16:58:00 +00:00
|
|
|
url 'http://rakudo.org/downloads/star/rakudo-star-2013.02.tar.gz'
|
|
|
|
sha256 '99c9b033065c2f8e4e847182677b71cbc1f7ba5f509069d3c4c5edf606e9d92a'
|
2010-08-09 21:42:55 +00:00
|
|
|
|
2012-02-01 17:21:23 +00:00
|
|
|
depends_on 'gmp' => :optional
|
|
|
|
depends_on 'icu4c' => :optional
|
|
|
|
depends_on 'pcre' => :optional
|
2012-06-29 06:14:21 +00:00
|
|
|
depends_on 'libffi'
|
2010-08-09 21:42:55 +00:00
|
|
|
|
|
|
|
def install
|
2012-06-29 06:14:21 +00:00
|
|
|
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.
|
2012-05-15 18:31:21 +00:00
|
|
|
system "perl", "Configure.pl", "--prefix=#{prefix}", "--gen-parrot"
|
2010-08-09 21:42:55 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
2012-06-29 06:14:21 +00:00
|
|
|
# move the man pages out of the top level into share.
|
|
|
|
mv "#{prefix}/man", share
|
2012-02-01 17:21:23 +00:00
|
|
|
end
|
2010-08-09 21:42:55 +00:00
|
|
|
|
2012-02-01 17:21:23 +00:00
|
|
|
def caveats; <<-EOS
|
2013-02-07 03:10:17 +00:00
|
|
|
Rakudo Star comes with its own specific version of Parrot. Installing the
|
2012-02-01 17:21:23 +00:00
|
|
|
Parrot formula along side the Rakudo Star formula will override a number
|
|
|
|
of the binaries (eg. parrot, nqp, winxed, etc.).
|
|
|
|
EOS
|
2010-08-09 21:42:55 +00:00
|
|
|
end
|
|
|
|
end
|