commit: 4e42bb38c47de6d42828bf080028c362cdefe646
Author: Marco Scardovi <marco <AT> scardovi <DOT> com>
AuthorDate: Tue Jun 22 13:56:25 2021 +0000
Commit: Marco Scardovi <marco <AT> scardovi <DOT> com>
CommitDate: Tue Jun 22 13:56:25 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4e42bb38
dev-libs/feedbackd: add package for phosh
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Marco Scardovi <marco <AT> scardovi.com>
dev-libs/feedbackd/Manifest | 2 +
dev-libs/feedbackd/feedbackd-0.0.0-r9.ebuild | 57 ++++++++
dev-libs/feedbackd/files/55.patch | 25 ++++
dev-libs/feedbackd/files/pine64.pinephone.json | 175 +++++++++++++++++++++++++
dev-libs/feedbackd/files/purism.librem5.json | 174 ++++++++++++++++++++++++
dev-libs/feedbackd/metadata.xml | 11 ++
6 files changed, 444 insertions(+)
diff --git a/dev-libs/feedbackd/Manifest b/dev-libs/feedbackd/Manifest
new file mode 100644
index 000000000..3c583209d
--- /dev/null
+++ b/dev-libs/feedbackd/Manifest
@@ -0,0 +1,2 @@
+DIST b45468080eee851da500613ecedd709639b6d769.tar.gz 80860 BLAKE2B
a80829b496e314fd04f17024a3e5415e02852b217df5f9bcbca6159b4bded5220cd6cc9d39a66c24de500bbe91c111ca1e4d05669b53decc07ca0adb91b851da
SHA512
7e869c127059d2f070d368ca894808f2fb78fd04048662dabd303a45d86a3b53bf3646f64e088cd720c6f54777a86673156d3cf782fdd663dc25fae65bd04e6e
+DIST feedbackd-device-themes-1602d415aed30b1a67c0ff270551230725b8ef92.tar.gz
13832 BLAKE2B
87c1ccd52dec982e4e1651e11598b60daa8380f2de4c371e0abc70e2840abd1e62fa9fd70cbe8a5860942c282cac54ea11b548066cd01be5b49ba939b488ec3a
SHA512
0e6ece5deddc3df3824aa01b6bbc2ad7fc9ab96db6afe9e4aa84652a005eb860c5552e52aeb17329dde84e8d2bccc33c7e603ab04eb2ca41ed19bbe331ce6933
diff --git a/dev-libs/feedbackd/feedbackd-0.0.0-r9.ebuild
b/dev-libs/feedbackd/feedbackd-0.0.0-r9.ebuild
new file mode 100644
index 000000000..e7cff78b1
--- /dev/null
+++ b/dev-libs/feedbackd/feedbackd-0.0.0-r9.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+VALA_USE_DEPEND="vapigen"
+
+inherit vala meson udev
+
+IUSE="+introspection +vala"
+REQUIRED_USE="vala? ( introspection )"
+
+MY_PV="${PV}+git20210426"
+MY_P="${PN}-${MY_PV}"
+MY_COMMIT="b45468080eee851da500613ecedd709639b6d769"
+MY_THEME_COMMIT="1602d415aed30b1a67c0ff270551230725b8ef92"
+
+DESCRIPTION="A daemon to provide haptic feedback on events"
+HOMEPAGE="https://source.puri.sm/Librem5/feedbackd"
+SRC_URI="
+
https://source.puri.sm/Librem5/feedbackd/-/archive/${MY_COMMIT}/${MY_COMMIT}.tar.gz
+
https://source.puri.sm/Librem5/feedbackd-device-themes/-/archive/${MY_THEME_COMMIT}/feedbackd-device-themes-${MY_THEME_COMMIT}.tar.gz
+"
+
+S="${WORKDIR}/${PN}-${MY_COMMIT}"
+
+LICENSE="LGPL-3"
+KEYWORDS="~amd64 ~arm64"
+SLOT="0"
+
+DEPEND="
+ gnome-base/dconf
+ media-libs/gsound
+ dev-libs/json-glib
+ dev-libs/libgudev
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ dev-libs/gobject-introspection
+ dev-util/meson
+ virtual/pkgconfig
+ vala? ( $(vala_depend) )
+"
+
+src_prepare() {
+ default
+ eapply_user
+ use vala && vala_src_prepare
+ sed -i 's/-G feedbackd/-G video/g' "${S}"/debian/feedbackd.udev || die
+}
+
+src_install() {
+ default
+ meson_src_install
+ insinto /usr/share/feedbackd/themes
+ doins
"${WORKDIR}"/feedbackd-device-themes-"${MY_THEME_COMMIT}"/data/"{pine64.pinephone,purism.librem5}.json"
+ udev_newrules "${S}"/debian/feedbackd.udev 90-feedbackd.rules
+}
diff --git a/dev-libs/feedbackd/files/55.patch
b/dev-libs/feedbackd/files/55.patch
new file mode 100644
index 000000000..6946b6d14
--- /dev/null
+++ b/dev-libs/feedbackd/files/55.patch
@@ -0,0 +1,25 @@
+From b0ef14bb5f73e0a1f5345f0ddd3b3992205daebf Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Philip=20M=C3=BCller?= <[email protected]>
+Date: Tue, 4 May 2021 08:53:30 +0000
+Subject: [PATCH] fbd-feedback-manager: fix device-specific themes path
+
+---
+ src/fbd-feedback-manager.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/fbd-feedback-manager.c b/src/fbd-feedback-manager.c
+index 39c27eb..ac6cdfa 100644
+--- a/src/fbd-feedback-manager.c
++++ b/src/fbd-feedback-manager.c
+@@ -455,7 +455,7 @@ find_themefile (void)
+ for (i = 0; i < g_strv_length (xdg_data_dirs); i++) {
+ g_autofree gchar *config_path = NULL;
+
+- config_path = g_strconcat (xdg_data_dirs[i], "feedbackd/themes/",
comp, ".json", NULL);
++ config_path = g_strconcat (xdg_data_dirs[i], "/feedbackd/themes/",
comp, ".json", NULL);
+ g_debug ("Searching for device specific themefile in %s",
config_path);
+
+ // Check if file exist
+--
+GitLab
+
diff --git a/dev-libs/feedbackd/files/pine64.pinephone.json
b/dev-libs/feedbackd/files/pine64.pinephone.json
new file mode 100644
index 000000000..2b628454c
--- /dev/null
+++ b/dev-libs/feedbackd/files/pine64.pinephone.json
@@ -0,0 +1,175 @@
+{
+ "name" : "default",
+ "profiles" : [
+ {
+ "name" : "full",
+ "feedbacks" : [
+ {
+ "event-name" : "alarm-clock-elapsed",
+ "type" : "Sound",
+ "effect" : "alarm-clock-elapsed"
+ },
+ {
+ "event-name" : "button-pressed",
+ "type" : "Sound",
+ "effect" : "button-pressed"
+ },
+ {
+ "event-name" : "button-released",
+ "type" : "Sound",
+ "effect" : "button-released"
+ },
+ {
+ "event-name" : "message-new-email",
+ "type" : "Sound",
+ "effect" : "message-new-email"
+ },
+ {
+ "event-name" : "message-new-instant",
+ "type" : "Sound",
+ "effect" : "message-new-instant"
+ },
+ {
+ "event-name" : "message-new-sms",
+ "type" : "Sound",
+ "effect" : "message-new-instant"
+ },
+ {
+ "event-name" : "phone-incoming-call",
+ "type" : "Sound",
+ "effect" : "phone-incoming-call"
+ },
+ {
+ "event-name" : "timeout-completed",
+ "type" : "Sound",
+ "effect" : "complete"
+ },
+ {
+ "event-name" : "theme-demo",
+ "type" : "Sound",
+ "effect" : "theme-demo"
+ },
+ {
+ "event-name" : "window-close",
+ "type" : "Sound",
+ "effect" : "theme-demo"
+ }
+ ]
+ },
+ {
+ "name" : "quiet",
+ "feedbacks" : [
+ {
+ "event-name" : "alarm-clock-elapsed",
+ "type" : "VibraPeriodic",
+ "magnitude" : 32767,
+ "duration" : 10000,
+ "fade-in-time" : 10000,
+ "fade-in-level": 4096
+ },
+ {
+ "event-name" : "bell-terminal",
+ "type" : "VibraRumble",
+ "duration" : 100
+ },
+ {
+ "event-name" : "button-pressed",
+ "type" : "VibraRumble",
+ "duration" : 80
+ },
+ {
+ "event-name" : "button-released",
+ "type" : "VibraRumble",
+ "duration" : 40
+ },
+ {
+ "event-name" : "message-new-email",
+ "type" : "VibraRumble",
+ "duration" : 750,
+ "count" : 3,
+ "pause" : 100
+ },
+ {
+ "event-name" : "message-new-instant",
+ "type" : "VibraRumble",
+ "duration" : 750
+ },
+ {
+ "event-name" : "message-new-sms",
+ "type" : "VibraRumble",
+ "duration" : 1250,
+ "count" : 2,
+ "pause" : 250
+ },
+ {
+ "event-name" : "message-sent-instant",
+ "type" : "VibraRumble",
+ "duration" : 250
+ },
+ {
+ "event-name" : "phone-incoming-call",
+ "type" : "VibraPeriodic",
+ "duration" : 10000
+ },
+ {
+ "event-name" : "timeout-completed",
+ "type" : "VibraRumble",
+ "duration" : 500
+ },
+ {
+ "event-name" : "theme-demo",
+ "type" : "VibraPeriodic",
+ "magnitude" : 32767,
+ "duration" : 5000
+ },
+ {
+ "event-name" : "window-close",
+ "type" : "VibraRumble",
+ "duration" : 75
+ }
+ ]
+ },
+ {
+ "name" : "silent",
+ "feedbacks" : [
+ {
+ "event-name" : "battery-caution",
+ "type" : "Led",
+ "color" : "red",
+ "frequency" : 5000
+ },
+ {
+ "event-name" : "phone-missed-call",
+ "type" : "Led",
+ "color" : "blue",
+ "frequency" : 3000
+ },
+ {
+ "event-name" : "message-missed-email",
+ "type" : "Led",
+ "color" : "blue",
+ "frequency" : 2000
+ },
+ {
+ "event-name" : "message-missed-instant",
+ "type" : "Led",
+ "color" : "blue",
+ "frequency" : 1000
+ },
+ {
+ "event-name" : "message-missed-notification",
+ "type" : "Led",
+ "color" : "blue",
+ "frequency" : 500
+ },
+ {
+ "event-name" : "message-missed-sms",
+ "type" : "Led",
+ "color" : "blue",
+ "frequency" : 2000
+ }
+ ]
+ }
+ ]
+}
+
diff --git a/dev-libs/feedbackd/files/purism.librem5.json
b/dev-libs/feedbackd/files/purism.librem5.json
new file mode 100644
index 000000000..043e7263f
--- /dev/null
+++ b/dev-libs/feedbackd/files/purism.librem5.json
@@ -0,0 +1,174 @@
+{
+ "name" : "default",
+ "profiles" : [
+ {
+ "name" : "full",
+ "feedbacks" : [
+ {
+ "event-name" : "alarm-clock-elapsed",
+ "type" : "Sound",
+ "effect" : "alarm-clock-elapsed"
+ },
+ {
+ "event-name" : "button-pressed",
+ "type" : "Sound",
+ "effect" : "button-pressed"
+ },
+ {
+ "event-name" : "button-released",
+ "type" : "Sound",
+ "effect" : "button-released"
+ },
+ {
+ "event-name" : "message-new-email",
+ "type" : "Sound",
+ "effect" : "message-new-email"
+ },
+ {
+ "event-name" : "message-new-instant",
+ "type" : "Sound",
+ "effect" : "message-new-instant"
+ },
+ {
+ "event-name" : "message-new-sms",
+ "type" : "Sound",
+ "effect" : "message-new-instant"
+ },
+ {
+ "event-name" : "phone-incoming-call",
+ "type" : "Sound",
+ "effect" : "phone-incoming-call"
+ },
+ {
+ "event-name" : "timeout-completed",
+ "type" : "Sound",
+ "effect" : "complete"
+ },
+ {
+ "event-name" : "theme-demo",
+ "type" : "Sound",
+ "effect" : "theme-demo"
+ },
+ {
+ "event-name" : "window-close",
+ "type" : "Sound",
+ "effect" : "theme-demo"
+ }
+ ]
+ },
+ {
+ "name" : "quiet",
+ "feedbacks" : [
+ {
+ "event-name" : "alarm-clock-elapsed",
+ "type" : "VibraPeriodic",
+ "magnitude" : 32767,
+ "duration" : 10000,
+ "fade-in-time" : 10000,
+ "fade-in-level": 4096
+ },
+ {
+ "event-name" : "bell-terminal",
+ "type" : "VibraRumble",
+ "duration" : 100
+ },
+ {
+ "event-name" : "button-pressed",
+ "type" : "VibraRumble",
+ "duration" : 15
+ },
+ {
+ "event-name" : "button-released",
+ "type" : "VibraRumble",
+ "duration" : 12
+ },
+ {
+ "event-name" : "message-new-email",
+ "type" : "VibraRumble",
+ "duration" : 750,
+ "count" : 3,
+ "pause" : 100
+ },
+ {
+ "event-name" : "message-new-instant",
+ "type" : "VibraRumble",
+ "duration" : 150
+ },
+ {
+ "event-name" : "message-new-sms",
+ "type" : "VibraRumble",
+ "duration" : 500,
+ "count" : 2,
+ "pause" : 100
+ },
+ {
+ "event-name" : "message-sent-instant",
+ "type" : "VibraRumble",
+ "duration" : 150
+ },
+ {
+ "event-name" : "phone-incoming-call",
+ "type" : "VibraPeriodic",
+ "duration" : 10000
+ },
+ {
+ "event-name" : "timeout-completed",
+ "type" : "VibraRumble",
+ "duration" : 100
+ },
+ {
+ "event-name" : "theme-demo",
+ "type" : "VibraPeriodic",
+ "magnitude" : 32767,
+ "duration" : 5000
+ },
+ {
+ "event-name" : "window-close",
+ "type" : "VibraRumble",
+ "duration" : 25
+ }
+ ]
+ },
+ {
+ "name" : "silent",
+ "feedbacks" : [
+ {
+ "event-name" : "battery-caution",
+ "type" : "Led",
+ "color" : "red",
+ "frequency" : 5000
+ },
+ {
+ "event-name" : "phone-missed-call",
+ "type" : "Led",
+ "color" : "blue",
+ "frequency" : 3000
+ },
+ {
+ "event-name" : "message-missed-email",
+ "type" : "Led",
+ "color" : "blue",
+ "frequency" : 2000
+ },
+ {
+ "event-name" : "message-missed-instant",
+ "type" : "Led",
+ "color" : "blue",
+ "frequency" : 1000
+ },
+ {
+ "event-name" : "message-missed-notification",
+ "type" : "Led",
+ "color" : "blue",
+ "frequency" : 500
+ },
+ {
+ "event-name" : "message-missed-sms",
+ "type" : "Led",
+ "color" : "blue",
+ "frequency" : 2000
+ }
+ ]
+ }
+ ]
+}
diff --git a/dev-libs/feedbackd/metadata.xml b/dev-libs/feedbackd/metadata.xml
new file mode 100644
index 000000000..a0b29038e
--- /dev/null
+++ b/dev-libs/feedbackd/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>[email protected]</email>
+ <name>Marco Scardovi</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">atom/atom</remote-id>
+ </upstream>
+</pkgmetadata>