Skip to content

Commit 2ca599c

Browse files
authored
Merge pull request #246967 from Homebrew/rakudo-star-2025.08.1
rakudo-star 2025.08.1
2 parents 9a901b3 + 89a4dc0 commit 2ca599c

File tree

1 file changed

+12
-42
lines changed

1 file changed

+12
-42
lines changed

Formula/r/rakudo-star.rb

Lines changed: 12 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
class RakudoStar < Formula
22
desc "Rakudo compiler and commonly used packages"
33
homepage "https://rakudo.org/"
4-
url "https://github.com/rakudo/star/releases/download/2025.05/rakudo-star-2025.05.tar.gz"
5-
sha256 "b5f6b5135599db0a18baf1ec660e78dddc8d8ca46d80576407bd5dcf70a4d574"
4+
url "https://github.com/rakudo/star/releases/download/2025.08.1/rakudo-star-2025.08.tar.gz"
5+
version "2025.08.1"
6+
sha256 "97abb0b5e748e6bdb69ef741b4bc11122b974588a376487813b706adc3d413b8"
67
license "Artistic-2.0"
78

89
livecheck do
@@ -11,14 +12,12 @@ class RakudoStar < Formula
1112
end
1213

1314
bottle do
14-
sha256 arm64_tahoe: "fe7095fb78f4608486e3451253abbf1dfb2def4665d1248d45b74114489b3742"
15-
sha256 arm64_sequoia: "7a895bdf00ddf27ce11aa6efb3ab0bb6d75fca0a5434741504f663f647b1a906"
16-
sha256 arm64_sonoma: "45729625f5031385c361cf6c4f90fc9666605428da1b04e1268bdaff3af20143"
17-
sha256 arm64_ventura: "55e28472b5488f597e09a23ea81f990d56f4e796879b261d4460be8374158907"
18-
sha256 sonoma: "2cdeb1c478e4da7097659e9c5ddf405e0499638343b6d2392d798404c6b7f0fb"
19-
sha256 ventura: "d48e786a4ee839ec4b3ac52169816f41bccb525ab0a70a9ea9ef3fa755c647ba"
20-
sha256 arm64_linux: "dd91e8d891e1b584f9ee9954a0d7d8956d21da8052144a13c876c095b63ddb91"
21-
sha256 x86_64_linux: "d29b7a6848a5fb3295166adc2b1fdbbc77c85bc5480048f644c79241431b51d9"
15+
sha256 arm64_tahoe: "5c45c6ddcb1fe6781647e0d85648d4f7476288d39dd4b292f8cd6349473e6ef6"
16+
sha256 arm64_sequoia: "b36a1424d136c6f359e752e09b56ff142ce55eba295ed73775cf03a9596fbe77"
17+
sha256 arm64_sonoma: "9a78f8b3f9612c5414f8e2805389a963a4612b06d007761539e32da25af3702e"
18+
sha256 sonoma: "fcb8209a4f01321773ac9a967b325f88d601e1864e7e8f16a3452a82ea722daf"
19+
sha256 arm64_linux: "83b99fcb4f693cefe74785f0521dbb73e58820ff610590b3c252e8fdaff7e526"
20+
sha256 x86_64_linux: "9aad1e735c8c084daa3a7ed7d58bf23f734f4b62aa3899c1d88d51aaf0d73e43"
2221
end
2322

2423
depends_on "bash" => :build
@@ -43,14 +42,6 @@ class RakudoStar < Formula
4342
conflicts_with "parrot"
4443
conflicts_with "rakudo"
4544

46-
# Apply open Config::Parser::json PR to fix unittests run during install
47-
# Ref: https://github.com/arjancwidlak/p6-Config-Parser-json/pull/1
48-
patch do
49-
url "https://github.com/arjancwidlak/p6-Config-Parser-json/commit/ca1a355c95178034b08ff9ebd1516a2e9d5bc067.patch?full_index=1"
50-
sha256 "d13230dc7d8ec0b72c21bd17e99a62d959fb3559d483eb43ce6be7ded8a0492a"
51-
directory "src/rakudo-star-modules/Config-Parser-json"
52-
end
53-
5445
# Allow adding arguments via inreplace to unbundle libraries in MoarVM
5546
patch :DATA
5647

@@ -90,11 +81,12 @@ def install
9081
# openssl module's brew --prefix openssl probe fails so set value here
9182
ENV["OPENSSL_PREFIX"] = Formula["openssl@3"].opt_prefix
9283

84+
rm buildpath.glob("src/rakudo-star-modules/**/*.o")
9385
system "bin/rstar", "install", "-p", prefix.to_s
9486

9587
# Installed scripts are now in share/perl/{site|vendor}/bin, so we need to symlink it too.
96-
bin.install_symlink (share/"perl6/vendor/bin").children
97-
bin.install_symlink (share/"perl6/site/bin").children
88+
bin.install_symlink (share/"perl6/vendor/bin").children.select(&:executable?)
89+
bin.install_symlink (share/"perl6/site/bin").children.select(&:executable?)
9890
end
9991

10092
def post_install
@@ -121,15 +113,6 @@ def post_install
121113
PERL
122114
assert_equal "test> brew\n[brew]", pipe_output("#{bin}/raku readline.raku", "brew\n", 0)
123115

124-
# Test LibXML module
125-
(testpath/"libxml.raku").write <<~PERL
126-
use LibXML::Document;
127-
my LibXML::Document $doc .= parse: :string('<Hello/>');
128-
$doc.root.nodeValue = 'World!';
129-
print $doc<Hello>;
130-
PERL
131-
assert_equal "<Hello>World!</Hello>", shell_output("#{bin}/raku libxml.raku")
132-
133116
# Test DBIish module
134117
(testpath/"sqlite.raku").write <<~PERL
135118
use DBIish;
@@ -141,19 +124,6 @@ def post_install
141124
$dbh.dispose;
142125
PERL
143126
assert_equal "([Sue] [Bob])\n", shell_output("#{bin}/raku sqlite.raku")
144-
145-
# Test Config::Parser::json module
146-
(testpath/"test.json").write <<~JSON
147-
{ "foo": { "bar": [0, 1] } }
148-
JSON
149-
(testpath/"parser.raku").write <<~PERL
150-
use Config;
151-
use Config::Parser::json;
152-
my $config = Config.new();
153-
$config.=read("test.json");
154-
print $config.get('foo.bar');
155-
PERL
156-
assert_equal "0 1", shell_output("#{bin}/raku parser.raku")
157127
end
158128
end
159129

0 commit comments

Comments
 (0)