homebrew-core/Formula/rakudo-star.rb
Jack Nagel 7c648d9732 Shore up a number of shell quoting issues
When interpolating in strings passed to Formula#system, it should be
done in such a way that if any interpolated variables contain spaces,
they are either (a) passed as part of a list or (b) protected by quotes
if they are part of a long string (which is subject to shell expansion).
Otherwise, they will be split on the space when expanded by the shell
and passed as multiple arguments to whatever process is being executed.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-15 14:03:11 -05:00

24 lines
716 B
Ruby

require 'formula'
class RakudoStar < Formula
homepage 'http://rakudo.org/'
url 'https://github.com/downloads/rakudo/star/rakudo-star-2012.01.tar.gz'
sha256 '2bfa055c6d3b6060917fb45561d1346fef518912aaf69af361f54dd3f9ec903c'
depends_on 'gmp' => :optional
depends_on 'icu4c' => :optional
depends_on 'pcre' => :optional
def install
system "perl", "Configure.pl", "--prefix=#{prefix}", "--gen-parrot"
system "make"
system "make install"
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