blob: 3944876fa5180318cb100981b3e138df64746ddd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
- 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'
|