Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Commit b92bacb

Browse files
Change to Fedora packaged ldoc.
More or less the same size footprint, and there should be less maintenance involved.
1 parent e50e4b9 commit b92bacb

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
### v1.5.13
1212
Add LaTeX packages for generating the devmanual PDF for `naev-docs`
13+
Change to Fedora packaged ldoc for `naev-docs`
14+
(More or less the same size footprint, and there should be less maintenance involved.)
1315

1416
### v1.5.12
1517
Move to the `ffmpeg-free` package in favour of the `ffmpeg` package provided by RPMFusion in `naev-linux-latest`

naev-docs/Dockerfile.amd64

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,10 @@
22
FROM registry.fedoraproject.org/fedora-minimal:latest AS build
33

44
# Install luarocks and ruby deps
5-
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install findutils gcc git gzip compat-lua \
6-
compat-lua-devel make ncurses-devel libevent-devel openssl openssl-devel readline-devel tar unzip automake findutils g++ zlib-devel && \
5+
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install findutils gcc git gzip \
6+
make openssl openssl-devel tar unzip automake findutils g++ zlib-devel && \
77
microdnf clean all
88

9-
# Build luarocks
10-
RUN curl -L -O https://luarocks.org/releases/luarocks-3.8.0.tar.gz && \
11-
tar zxpf luarocks-3.8.0.tar.gz && \
12-
cd luarocks-3.8.0 && \
13-
./configure --prefix=/opt/luarocks --lua-version=5.1 --lua-suffix=-5.1 --versioned-rocks-dir && \
14-
make -j"$(nproc --all)" && \
15-
make install
16-
17-
# Add luarocks to PATH and install luacheck
18-
ENV PATH "$PATH:/opt/luarocks/bin"
19-
RUN luarocks install ldoc
209

2110
# Build Ruby
2211
RUN curl -L -O https://cache.ruby-lang.org/pub/ruby/snapshot/snapshot-ruby_3_1.tar.gz && \
@@ -48,20 +37,16 @@ LABEL org.opencontainers.image.description "Used for building website and docs."
4837
ENV IMAGE_NAME "naev-docs"
4938

5039
WORKDIR /
51-
COPY --from=build /opt/luarocks /opt/luarocks
5240
COPY --from=build /opt/ruby /opt/ruby
5341

54-
# Add luarocks to PATH
55-
ENV PATH "$PATH:/opt/luarocks/bin"
56-
5742
# Add ruby to PATH
5843
ENV PATH "$PATH:/opt/ruby/bin"
5944

6045
# Install utilities
6146
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install make meson ninja-build gcc git GraphicsMagick openssl optipng zlib \
6247
python3-pyyaml rsync tidy tar unzip xz zip \
63-
# Install luarocks deps
64-
compat-lua ncurses libevent readline \
48+
# Install ldoc
49+
lua-ldoc \
6550
# Install LaTeX packages
6651
latexmk texlive-luahbtex texlive-roboto texlive-preprint texlive-parskip texlive-sfmath \
6752
texlive-markdown texlive-csvsimple texlive-gobble texlive-microtype texlive-minted texlive-newunicodechar && \

0 commit comments

Comments
 (0)