A small Bash application to install the Rakudo Star Perl 6 distribution.
LoneStar is available in the AUR, and can be installed from there.
cd -- "$(mktemp -d)"
git clone https://aur.archlinux.org/lonestar.git .
makepkg -csiapt install build-essential git curl sudo
cd -- "$(mktemp -d)"
git clone https://github.com/tyil/lonestar.git .
sudo make installLoneStar is included in the Scriptkitties Overlay, which should work for any distribution using Portage. There are overlay installation instructions available at the README in the overlay repository.
Once the overlay has been set up, you can install LoneStar using emerge:
emerge dev-util/lonestarTo install the application from the plain sources, run the following commands.
|
Note
|
You’ll need the following dependencies to be available: |
cd -- "$(mktemp -d)"
git clone https://github.com/tyil/lonestar.git .
make installThis will install the application into /usr. make can take a DESTDIR to
change the installation path if desired.
|
Tip
|
TL;DR: |
For information on how to use the application, you can use the help command.
lonestar helpTo install the latest Rakudo Star distribution you can use install.
lonestar installOptionally, you can give it a year.month release name, for example 2018.01.
This will install the given version. If the version does not exist, an error
will be returned.
To get the path to the directory containing the highest version of Rakudo Star
you have installed, use the path command.
lonestar pathYou can also have LoneStar update the PATH for you to include the bin
directory (with the perl6 executable) with the init command.
eval $(lonestar init)Both path and init will use the latest available Rakudo Star you have
installed. Optionally, they can use a year.month release name. This will then
use the given version for the paths. If the given version is not available, an
error will be returned.
To add these paths to your PATH for new shells as well, add it to your
shell’s configuration file. Using most shells, you can use the magic line ps
-p $$|tail -n1|awk '{print $NF}' to inject your current shell’s name.
echo 'eval $(lonestar init)' \
>> "$HOME/.$(ps -p $$|tail -n1|awk '{print $NF}')rc"Configuration is done using a bash script with export statements. This is
done to keep the application simple. The configuration file should exist at
${XDG_CONFIG_HOME}/lonestar/config.sh. If $XDG_CONFIG_HOME is not set,
$HOME/.config will be assumed.
The following configuration options can be set:
-
RAKUDO_ROOT- The path where the Rakudo Star distributions will be installed.
The defaults are specified in etc/lonestar/user.sh, which can serve as an
example config file as well if you’re unsure of how to use it.