Install perl6 instead of the painful-to-install python3+fstrings

This commit is contained in:
Suzanne Dupéron 2020-03-04 14:51:13 +01:00
parent 20a51381bc
commit ab8274eae2
5 changed files with 7 additions and 17 deletions

View File

@ -22,8 +22,7 @@ echo "Installing dependencies.."
if [ -n "`uname -a | grep -i arch`" ] if [ -n "`uname -a | grep -i arch`" ]
then then
sudo pacman -Sy --noconfirm \ sudo pacman -Sy --noconfirm \
python \ rakudo \
python-pip \
make \ make \
m4 \ m4 \
gcc \ gcc \
@ -36,8 +35,7 @@ fi
if [ -n "`uname -a | grep -i ubuntu`" ] if [ -n "`uname -a | grep -i ubuntu`" ]
then then
sudo apt-get install -y make \ sudo apt-get install -y make \
python3 \ perl6 \
python3-pip \
make \ make \
m4 \ m4 \
gcc \ gcc \
@ -47,8 +45,6 @@ sudo apt-get install -y make \
curl curl
fi fi
pip3 install future-fstrings
if [ -n "`uname -a | grep -i ubuntu`" ] if [ -n "`uname -a | grep -i ubuntu`" ]
then then
echo "ubuntu" echo "ubuntu"

View File

@ -7,8 +7,7 @@ if [ $ID = arch ]
then then
pacman -Sy pacman -Sy
sudo pacman -S --noconfirm \ sudo pacman -S --noconfirm \
python \ rakudo \
python-pip \
libevdev \ libevdev \
perl \ perl \
pkg-config \ pkg-config \
@ -23,8 +22,7 @@ then
else else
apt-get update -qq apt-get update -qq
apt-get -y -qq install \ apt-get -y -qq install \
python3 \ perl6 \
python3-pip \
libev-dev \ libev-dev \
perl \ perl \
pkg-config \ pkg-config \
@ -36,5 +34,3 @@ else
rsync \ rsync \
git git
fi fi
pip3 install future-fstrings

View File

@ -4,4 +4,4 @@ Build & test with:
Run with Run with
python3 ./generator.py perl6 ./generator.raku amodule.ml

View File

@ -1,7 +1,6 @@
#!/usr/bin/env perl6 #!/usr/bin/env perl6
use strict;
use v6;
use v6.c; use v6.c;
use strict;
use worries; use worries;
my $moduleName = @*ARGS[0].subst(/\.ml$/, '').samecase("A_"); my $moduleName = @*ARGS[0].subst(/\.ml$/, '').samecase("A_");

View File

@ -21,8 +21,7 @@ FROM node:12-buster
WORKDIR /app WORKDIR /app
RUN apt-get update && apt-get -y install python3 python3-pip libev-dev perl pkg-config libgmp-dev libhidapi-dev m4 libcap-dev bubblewrap rsync RUN apt-get update && apt-get -y install perl6 libev-dev perl pkg-config libgmp-dev libhidapi-dev m4 libcap-dev bubblewrap rsync
RUN pip3 install future-fstrings
COPY ligo_deb10.deb /tmp/ligo_deb10.deb COPY ligo_deb10.deb /tmp/ligo_deb10.deb
RUN dpkg -i /tmp/ligo_deb10.deb && rm /tmp/ligo_deb10.deb RUN dpkg -i /tmp/ligo_deb10.deb && rm /tmp/ligo_deb10.deb