Skip to content

Commit

Permalink
remove unnecessary dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cubercsl committed Nov 8, 2020
1 parent 5a24d86 commit fc30120
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ retry() {
done
}

head -1 /etc/apk/repositories | sed s'/alpine\/.*$/alpine\/edge\/testing/' >> /etc/apk/repositories
echo "==> Install system packages"
apk --no-cache add \
bash \
Expand All @@ -31,6 +32,15 @@ apk --no-cache add \
graphviz \
openjdk11-jre-headless \
perl \
perl-app-cpanminus \
perl-file-homedir \
perl-log-log4perl \
perl-log-dispatch \
perl-namespace-autoclean \
perl-params-validationcompiler \
perl-specio \
perl-unicode-linebreak \
perl-yaml-tiny
py-pygments \
python2 \
python3 \
Expand Down Expand Up @@ -64,26 +74,6 @@ if [ "$scheme" != "full" ]; then
texliveonfly
fi

# https://latexindentpl.readthedocs.io/en/latest/appendices.html#lst-alpine-install
# Installing incompatible latexindent perl dependencies via apk
apk --no-cache add \
perl-log-log4perl \
perl-log-dispatch \
perl-namespace-autoclean \
perl-specio \
perl-unicode-linebreak

# Installing remaining latexindent perl dependencies via cpan
apk --no-cache add curl wget make
cd /usr/local/bin && \
curl -L https://cpanmin.us/ -o cpanm && \
chmod +x cpanm
cpanm -n App::cpanminus
cpanm -n File::HomeDir
cpanm -n Params::ValidationCompiler
cpanm -n YAML::Tiny
cpanm -n Unicode::GCString

echo "==> Clean up"
rm -rf \
/opt/texlive/texdir/install-tl \
Expand Down

0 comments on commit fc30120

Please sign in to comment.