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/'
|
2012-06-29 06:14:21 +00:00
|
|
|
url 'https://github.com/downloads/rakudo/star/rakudo-star-2012.05.tar.gz'
|
|
|
|
sha256 '4bb1cee56e28e2c26948eefe1ae141373191b9b8cff334baa5aa295382e02b9a'
|
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
|
|
|
|
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
|
2010-08-09 21:42:55 +00:00
|
|
|
end
|
|
|
|
end
|