blob: 3944876fa5180318cb100981b3e138df64746ddd (
plain) (
tree)
|
|
- name: Install dependencies
apt:
name:
- build-essential
- libncurses5-dev
- git
- gnutls-bin
- pkg-config
- libjansson-dev
- libgnutls28-dev
- automake
- texinfo
state: present
- name: Install building dependencies
apt:
name:
- emacs
state: build-dep
- name: Create directory
file:
path: "{{ emacs_build_parent }}"
state: directory
- name: Download Emacs
unarchive:
src: https://ftp.gnu.org/gnu/emacs/emacs-{{emacs_version}}.tar.gz
remote_src: yes
dest: "{{ emacs_build_parent }}"
creates: "{{ emacs_build_dir }}"
- name: Configure
command: ./configure
args:
chdir: "{{ emacs_build_dir }}"
creates: '{{ emacs_build_dir }}/Makefile'
- name: Build
command: make -j{{ cpus }}
args:
chdir: "{{ emacs_build_dir }}"
creates: '{{ emacs_build_dir }}/src/emacs'
- name: Install
command: make install
args:
chdir: "{{ emacs_build_dir }}"
creates: '/usr/local/bin/emacs'
|