aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNader Hadji Ghanbari2014-04-14 22:45:39 +0800
committerAdam Vandenberg2014-04-22 21:14:27 -0700
commit24cc097d27661169e5b96da8ddb4b8cfebbc5086 (patch)
treeae0b863f19d38d295c29828140ada3aed12139d7
parentec524148c920d6a988264887d4fe707b43ae45da (diff)
downloadhomebrew-24cc097d27661169e5b96da8ddb4b8cfebbc5086.tar.bz2
rakudo-star: add jvm option
Closes #28408. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/rakudo-star.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Formula/rakudo-star.rb b/Library/Formula/rakudo-star.rb
index 2ff9a529f..22ae592c3 100644
--- a/Library/Formula/rakudo-star.rb
+++ b/Library/Formula/rakudo-star.rb
@@ -11,6 +11,8 @@ class RakudoStar < Formula
sha1 "ad7b50e1e85f2552f89f1e5fbdf2741659b8763b" => :lion
end
+ option 'with-jvm', 'Build also for jvm as an alternate backend.'
+
conflicts_with 'parrot'
depends_on 'gmp' => :optional
@@ -24,7 +26,11 @@ class RakudoStar < Formula
ENV.prepend 'CPPFLAGS', "-I#{libffi.lib}/libffi-#{libffi.version}/include"
ENV.j1 # An intermittent race condition causes random build failures.
- system "perl", "Configure.pl", "--prefix=#{prefix}", "--backends=parrot", "--gen-parrot"
+ 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"
+ end
system "make"
system "make install"
# move the man pages out of the top level into share.