1
1
class RakudoStar < Formula
2
2
desc "Rakudo compiler and commonly used packages"
3
3
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"
6
7
license "Artistic-2.0"
7
8
8
9
livecheck do
@@ -11,14 +12,12 @@ class RakudoStar < Formula
11
12
end
12
13
13
14
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"
22
21
end
23
22
24
23
depends_on "bash" => :build
@@ -43,14 +42,6 @@ class RakudoStar < Formula
43
42
conflicts_with "parrot"
44
43
conflicts_with "rakudo"
45
44
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
-
54
45
# Allow adding arguments via inreplace to unbundle libraries in MoarVM
55
46
patch :DATA
56
47
@@ -90,11 +81,12 @@ def install
90
81
# openssl module's brew --prefix openssl probe fails so set value here
91
82
ENV [ "OPENSSL_PREFIX" ] = Formula [ "openssl@3" ] . opt_prefix
92
83
84
+ rm buildpath . glob ( "src/rakudo-star-modules/**/*.o" )
93
85
system "bin/rstar" , "install" , "-p" , prefix . to_s
94
86
95
87
# 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? )
98
90
end
99
91
100
92
def post_install
@@ -121,15 +113,6 @@ def post_install
121
113
PERL
122
114
assert_equal "test> brew\n [brew]" , pipe_output ( "#{ bin } /raku readline.raku" , "brew\n " , 0 )
123
115
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
-
133
116
# Test DBIish module
134
117
( testpath /"sqlite.raku" ) . write <<~PERL
135
118
use DBIish;
@@ -141,19 +124,6 @@ def post_install
141
124
$dbh.dispose;
142
125
PERL
143
126
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" )
157
127
end
158
128
end
159
129
0 commit comments