aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMartin Gruner2015-02-01 20:47:47 +0100
committerMike McQuaid2015-02-03 16:21:07 +0000
commitfe140668f9e8d59a6ede07bfead2324d4e83bd0c (patch)
tree61975b4a90180b5ea1e547a689f75232d71e61d4 /Library
parenta1274f07faaefe4762831cc6903194a18e022c55 (diff)
downloadhomebrew-fe140668f9e8d59a6ede07bfead2324d4e83bd0c.tar.bz2
rakudo-star 2014.12.2
Closes #36456. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/rakudo-star.rb28
1 files changed, 20 insertions, 8 deletions
diff --git a/Library/Formula/rakudo-star.rb b/Library/Formula/rakudo-star.rb
index 58cf2ba49..8e4b76dff 100644
--- a/Library/Formula/rakudo-star.rb
+++ b/Library/Formula/rakudo-star.rb
@@ -2,9 +2,8 @@ require "formula"
class RakudoStar < Formula
homepage "http://rakudo.org/"
- url "http://rakudo.org/downloads/star/rakudo-star-2014.09.tar.gz"
- sha256 "e7cfc6f4d92d9841f03246d68d51ed54d48df08736b0bd73626fe45196498649"
- revision 1
+ url "http://rakudo.org/downloads/star/rakudo-star-2014.12.2.tar.gz"
+ sha256 "55d47b0e36c9c21036fc0de8d195ef39e3fd589b1d88d9959932d0cc104d92a1"
bottle do
revision 1
@@ -14,6 +13,7 @@ class RakudoStar < Formula
end
option "with-jvm", "Build also for jvm as an alternate backend."
+ option "with-parrot", "Build also for parrot as an alternate backend."
conflicts_with "parrot"
@@ -28,15 +28,27 @@ class RakudoStar < Formula
ENV.prepend "CPPFLAGS", "-I#{libffi.lib}/libffi-#{libffi.version}/include"
ENV.j1 # An intermittent race condition causes random build failures.
+
+ backends = ["moar"]
+ generate = ["--gen-moar"]
+
if build.with? "jvm"
- system "perl", "Configure.pl", "--prefix=#{prefix}", "--backends=parrot,jvm", "--gen-parrot"
- else
- system "perl", "Configure.pl", "--prefix=#{prefix}", "--backends=parrot", "--gen-parrot"
+ backends << "jvm"
+ end
+ if build.with? "parrot"
+ backends << "parrot"
+ generate << "--gen-parrot"
end
+ system "perl", "Configure.pl", "--prefix=#{prefix}", "--backends=" + backends.join(","), *generate
system "make"
system "make install"
- # move the man pages out of the top level into share.
- mv "#{prefix}/man", share
+
+ # Move the man pages out of the top level into share.
+ # Not all backends seem to generate man pages at this point (moar does not, parrot does),
+ # so we need to check if the directory exists first.
+ if File.directory?("#{prefix}/man")
+ mv "#{prefix}/man", share
+ end
end
test do