blob: d9618780fe4b1a9909b8c6f9435d26354ccd4d2d (
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
44
45
|
- name: Install dependencies
apt:
name:
- build-essential
- libncurses5-dev
- git
- gnutls-bin
- pkg-config
- libjansson-dev
- libgnutls28-dev
- libtiff-dev
- libtiff5-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'
|