imfreedom/teamcity-ansible

Install libhandy everywhere
draft
2021-05-25, Gary Kramlich
aa0ccab2a24d
Parents 139fc85f9136
Children f3c6c1e0ef9a
Install libhandy everywhere
--- a/roles/pidgin3-dependencies/tasks/debian.yml Fri Feb 12 22:03:35 2021 -0600
+++ b/roles/pidgin3-dependencies/tasks/debian.yml Tue May 25 03:03:30 2021 -0500
@@ -59,4 +59,14 @@
- xvfb
state: present
force_apt_get: true
+- name: install libhandy-1 from apt
+ apt:
+ name:
+ - libhandy-1-dev
+ state: present
+ force_apt_get: true
+ when: ansible_lsb.id != "Raspbian"
+- name: install libhandy-1 from source
+ include_tasks: "libhandy-1.yml"
+ when: ansible_lsb.id == "Raspbian"
--- a/roles/pidgin3-dependencies/tasks/freebsd.yml Fri Feb 12 22:03:35 2021 -0600
+++ b/roles/pidgin3-dependencies/tasks/freebsd.yml Tue May 25 03:03:30 2021 -0500
@@ -12,6 +12,7 @@
- help2man
- json-glib
- libcanberra
+ - libhandy-1.0.3
- libidn
- libsoup
- lua52
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/roles/pidgin3-dependencies/tasks/libhandy-1.yml Tue May 25 03:03:30 2021 -0500
@@ -0,0 +1,18 @@
+- name: "set libhandy-1 version"
+ set_fact:
+ libhandy_version: "1.0.3"
+- name: "download libhandy-1"
+ unarchive:
+ src: "https://gitlab.gnome.org/GNOME/libhandy/-/archive/{{ libhandy_version }}/libhandy-{{ libhandy_version }}.tar.bz2"
+ dest: "/usr/src/"
+ remote_src: "yes"
+- name: "build and install libhandy-1"
+ shell: |
+ set -ex
+ rm -rf build
+ meson -Dintrospection=disabled build
+ ninja -C build install
+ ldconfig /usr/local/lib/
+ args:
+ chdir: "/usr/src/libhandy-{{ libhandy_version }}"
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/roles/pidgin3-dependencies/tasks/libnice.yml Tue May 25 03:03:30 2021 -0500
@@ -0,0 +1,16 @@
+- name: "set libnice version"
+ set_fact:
+ libnice_version: "0.1.18"
+- name: "download libnice"
+ unarchive:
+ src: "https://libnice.freedesktop.org/releases/libnice-{{ libnice_version }}.tar.gz"
+ dest: "/usr/src/"
+ remote_src: "yes"
+- name: "build and install libnice"
+ shell: |
+ meson build
+ ninja -C build install
+ ldconfig /usr/local/lib/
+ args:
+ chdir: "/usr/src/libnice-{{ libnice_version }}"
+
--- a/roles/pidgin3-dependencies/tasks/main.yml Fri Feb 12 22:03:35 2021 -0600
+++ b/roles/pidgin3-dependencies/tasks/main.yml Tue May 25 03:03:30 2021 -0500
@@ -1,4 +1,6 @@
---
+#- include_tasks: darwin.yml
+# when: ansible_system == "Darwin"
- include_tasks: debian.yml
when: ansible_facts['os_family'] == "Debian"
- include_tasks: freebsd.yml
--- a/roles/pidgin3-dependencies/tasks/openbsd-libnice.yml Fri Feb 12 22:03:35 2021 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-- name: "set libnice version"
- set_fact:
- libnice_version: "0.1.18"
-- name: "install gtar"
- openbsd_pkg:
- name: "gtar--"
- state: "present"
-- name: "download libnice"
- unarchive:
- src: "https://libnice.freedesktop.org/releases/libnice-{{ libnice_version }}.tar.gz"
- dest: "/usr/src/"
- remote_src: "yes"
-- name: "build and install libnice"
- shell: |
- meson build
- ninja -C build install
- ldconfig /usr/local/lib/
- args:
- chdir: "/usr/src/libnice-{{ libnice_version }}"
-
--- a/roles/pidgin3-dependencies/tasks/openbsd.yml Fri Feb 12 22:03:35 2021 -0600
+++ b/roles/pidgin3-dependencies/tasks/openbsd.yml Tue May 25 03:03:30 2021 -0500
@@ -10,6 +10,7 @@
- gumbo
- help2man
- json-glib
+ - freetype
- gstreamer1
- libcanberra
- libidn
@@ -22,9 +23,15 @@
- pkgconf
- py-gobject3-common
- py3-gobject3
- - python-3.7.9p0
+ - python-3.7.10
- vala
state: present
+- name: "install gtar"
+ openbsd_pkg:
+ name: "gtar--"
+ state: "present"
- name: "install libnice"
- include_tasks: "openbsd-libnice.yml"
+ include_tasks: "libnice.yml"
+- name: "install libhandy"
+ include_tasks: "libhandy-1.yml"