mirror of
https://github.com/vale981/melpazoid
synced 2025-03-05 09:21:39 -05:00
feat: compile emacs with libxml2 and libjansson (#12)
This commit is contained in:
parent
6a8fb76060
commit
871b10c3b6
1 changed files with 9 additions and 4 deletions
|
@ -1,14 +1,19 @@
|
|||
FROM ubuntu:20.04
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends make tar gzip git curl ca-certificates gcc libgnutls28-dev libncurses-dev \
|
||||
&& apt-get install -y --no-install-recommends make tar gzip git curl ca-certificates gcc libgnutls28-dev libjansson-dev libncurses-dev \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends libxml2-dev \
|
||||
&& curl -O https://ftp.gnu.org/pub/gnu/emacs/emacs-27.1.tar.gz \
|
||||
&& tar -xzf emacs-27.1.tar.gz \
|
||||
&& cd emacs-27.1 \
|
||||
&& LIBGNUTLS_CFLAGS='-I/usr/include' LIBGNUTLS_LIBS='-L/usr/lib/x86_64-linux-gnu -lgnutls' ./configure --without-makeinfo --with-modules \
|
||||
&& JSON_CFLAGS='-I/usr/include' JSON_LIBS='-ljansson' \
|
||||
LIBGNUTLS_CFLAGS='-I/usr/include' LIBGNUTLS_LIBS='-lgnutls' \
|
||||
LIBXML2_CFLAGS='-I/usr/include/libxml2' LIBXML2_LIBS='-lxml2' \
|
||||
./configure --without-makeinfo --with-modules \
|
||||
&& make install \
|
||||
&& apt-get autoremove \
|
||||
&& rm -rf /emacs-27.1 /var/lib/apt/lists/* /root/.cache/*
|
||||
&& apt-get remove -y gcc perl \
|
||||
&& apt-get autoremove -y \
|
||||
&& rm -rf /emacs-27.1.tar.gz /emacs-27.1 /var/lib/apt/lists/* /root/.cache/*
|
||||
|
||||
ENV WORKSPACE "/workspace"
|
||||
ENV ELISP_PATH "${WORKSPACE}/pkg"
|
||||
|
|
Loading…
Add table
Reference in a new issue