Squash merge move_to_single_file_pkgs into main
This commit is contained in:
@@ -1,5 +1,40 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: cmake
|
||||
## Description: build system for c/c++
|
||||
## Version: system
|
||||
## Methods: system
|
||||
## Helpers: -
|
||||
---
|
||||
- name: Append cmake to pkg_sys
|
||||
- name: Set cmake default facts # {{
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['cmake'] }}"
|
||||
cmake:
|
||||
methods:
|
||||
- system
|
||||
pkgname: cmake
|
||||
# }}
|
||||
- name: Configure cmake
|
||||
when:
|
||||
- "'cmake' not in __configured"
|
||||
block:
|
||||
- name: Set cmake install method
|
||||
when:
|
||||
- cmake_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
cmake_imethod: "{{ imethod if imethod in cmake.methods else cmake.methods[0] }}"
|
||||
|
||||
- name: Configure cmake system install
|
||||
when:
|
||||
- cmake_imethod == "system"
|
||||
block:
|
||||
- name: Append cmake to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [cmake.pkgname] }}"
|
||||
|
||||
- name: Finalise cmake system install
|
||||
ansible.builtin.set_fact:
|
||||
cmake_install: "{{ cmake_imethod }}={{ cmake.pkgname }}"
|
||||
|
||||
- name: Finalize cmake configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'cmake': cmake_install } ) }}"
|
||||
|
||||
Reference in New Issue
Block a user