summaryrefslogtreecommitdiffstats
path: root/roles/wiki-publish/tasks/emacs.yml
blob: 8d75979b55f92cfb706a551497f7110960eb5168 (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
- name: Install dependencies
  apt:
    name:
      - build-essential
      - libncurses5-dev
      - git
      - gnutls-bin
      - pkg-config
      - libjansson-dev
      - libgnutls28-dev
      - automake
      - texinfo
    state: present
- 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 --with-x-toolkit=no 
  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'