Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Clean up default INC paths and install CORE distribution
We install the modules that come with rakudo itself as a CORE distribution into a CompUnit::Repository::Installation. No more need to manually precompile modules in the Makefile
- Loading branch information
Showing
4 changed files
with
35 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| use lib "inst#repo"; | ||
| my $v = run("git", "describe", :out).out.lines[0]; | ||
| $v //= $*PERL6.version; | ||
|
|
||
| my %provides = | ||
| "Test" => "lib/Test.pm", | ||
| "NativeCall" => "lib/NativeCall.pm", | ||
| "NativeCall::Types" => "lib/NativeCall/Types.pm", | ||
| "NativeCall::Compiler::GNU" => "lib/NativeCall/Compiler/GNU.pm", | ||
| "NativeCall::Compiler::MSVC" => "lib/NativeCall/Compiler/MSVC.pm", | ||
| "Pod::To::Text" => "lib/Pod/To/Text.pm", | ||
| ; | ||
|
|
||
| $*REPO.repo-chain[* - 1].install( | ||
| dist => class :: { | ||
| method metainfo() { | ||
| { | ||
| name => "CORE", | ||
| auth => "perl", | ||
| ver => $v.Str, | ||
| provides => %provides, | ||
| } | ||
| } | ||
| }.new, | ||
| |%provides.values, | ||
| ); | ||
|
|
||
| note "installed!"; | ||
|
|
||
| # vim: ft=perl6 |