32 lines
985 B
YAML
32 lines
985 B
YAML
---
|
|
- ansible.builtin.include_vars:
|
|
file: ghostty.yml
|
|
name: _ghostty
|
|
- ansible.builtin.set_fact:
|
|
pkgconfig_ghostty: "{{ _ghostty | ansible.builtin.combine(pkgconfig.ghostty) }}"
|
|
|
|
- name: ensure dependencies
|
|
block:
|
|
- ansible.builtin.include_tasks:
|
|
file: "pkgs/terra_repo.yml"
|
|
when: terrarepo is undefined
|
|
|
|
- name: append to pkgs
|
|
ansible.builtin.set_fact:
|
|
syspkgs: "{{ syspkgs + [ 'ghostty' ] }}"
|
|
when: ansible_distribution == 'Fedora' or
|
|
not pkgconfig_ghostty.build
|
|
|
|
- name: build ghostty from source
|
|
block:
|
|
- ansible.builtin.set_fact:
|
|
syspkgs: "{{ syspkgs + pkgconfig_ghostty.deps[ansible_os_family] }}"
|
|
srcpkgs: "{{ srcpkgs + ['ghostty'] }}"
|
|
when: (ansible_distribution != 'Fedora' and ansible_system == 'Linux') or
|
|
pkgconfig_ghostty.build
|
|
|
|
- name: append ghostty to caskpkgs
|
|
ansible.builtin.set_fact:
|
|
caskpkgs: "{{ caskpkgs + [ 'ghostty' ] }}"
|
|
when: ansible_distribution == 'MacOSX'
|