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
@@ -43,14 +44,6 @@ class RakudoStar < Formula
43
44
conflicts_with "parrot"
44
45
conflicts_with "rakudo"
45
46
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
47
# Allow adding arguments via inreplace to unbundle libraries in MoarVM
55
48
patch :DATA
56
49
@@ -90,11 +83,12 @@ def install
90
83
# openssl module's brew --prefix openssl probe fails so set value here
91
84
ENV [ "OPENSSL_PREFIX" ] = Formula [ "openssl@3" ] . opt_prefix
92
85
86
+ rm buildpath . glob ( "src/rakudo-star-modules/**/*.o" )
93
87
system "bin/rstar" , "install" , "-p" , prefix . to_s
94
88
95
89
# 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
90
+ bin . install_symlink ( share /"perl6/vendor/bin" ) . children . select ( & :executable? )
91
+ bin . install_symlink ( share /"perl6/site/bin" ) . children . select ( & :executable? )
98
92
end
99
93
100
94
def post_install
@@ -121,15 +115,6 @@ def post_install
121
115
PERL
122
116
assert_equal "test> brew\n [brew]" , pipe_output ( "#{ bin } /raku readline.raku" , "brew\n " , 0 )
123
117
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
118
# Test DBIish module
134
119
( testpath /"sqlite.raku" ) . write <<~PERL
135
120
use DBIish;
@@ -141,19 +126,6 @@ def post_install
141
126
$dbh.dispose;
142
127
PERL
143
128
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
129
end
158
130
end
159
131
0 commit comments