From 19a719f92429012551e7bbf3192ed23cf92bb1e5 Mon Sep 17 00:00:00 2001 From: Gerben Jan Dijkman Date: Fri, 26 Feb 2021 23:37:03 +0100 Subject: [PATCH] Added feedbackd --- dev-libs/feedbackd/Manifest | 1 + dev-libs/feedbackd/feedbackd-0.0.0-r6.ebuild | 60 ++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 dev-libs/feedbackd/Manifest create mode 100644 dev-libs/feedbackd/feedbackd-0.0.0-r6.ebuild diff --git a/dev-libs/feedbackd/Manifest b/dev-libs/feedbackd/Manifest new file mode 100644 index 0000000..9bdc134 --- /dev/null +++ b/dev-libs/feedbackd/Manifest @@ -0,0 +1 @@ +DIST feedbackd-v0.0.0+git20210125.tar.gz 77368 BLAKE2B 882d9078db7d12a66c8eca6214e1a8ea6f9c5a34b55e5299234fbbd6f4c0adeb81911427b4d53bba8a6f8ac12fb8ff2618f6e8ecae67806877ec3fc67d86e5ea SHA512 1f0397052e0eb7815ed4f922065b3b283288a5aeceeb03feb9de0c303182c37526bbbcefdfbb7aac6116c29b6672c4e92fa7a022a9e02bb750931de93354ebd1 diff --git a/dev-libs/feedbackd/feedbackd-0.0.0-r6.ebuild b/dev-libs/feedbackd/feedbackd-0.0.0-r6.ebuild new file mode 100644 index 0000000..ebe2909 --- /dev/null +++ b/dev-libs/feedbackd/feedbackd-0.0.0-r6.ebuild @@ -0,0 +1,60 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +#GNOME2_LA_PUNT="yes" +VALA_USE_DEPEND="vapigen" + +inherit vala meson udev + +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +IUSE="+introspection +vala" +REQUIRED_USE="vala? ( introspection )" + +if [[ ${PV} == "0.0.0" ]]; then + MY_PV="v${PV}+git20210125" + MY_P="${PN}-${MY_PV}" +fi + +DESCRIPTION="A daemon to provide haptic feedback on events" +HOMEPAGE="https://source.puri.sm/Librem5/feedbackd" +if [[ ${PV} == 9999 ]]; then + inherit vala meson udev git-r3 + EGIT_REPO_URI="https://source.puri.sm/Librem5/feedbackd.git" + SRC_URI="" +else + EGIT_REPO_URI="" + SRC_URI="https://source.puri.sm/Librem5/feedbackd/-/archive/${MY_PV}/${MY_P}.tar.gz" + S=${WORKDIR}/${MY_P} +fi +LICENSE="LGPL-3" +SLOT="0" + +DEPEND=" + gnome-base/dconf + media-libs/gsound + dev-libs/json-glib + virtual/libudev +" +RDEPEND="${DEPEND}" +BDEPEND=" + dev-libs/gobject-introspection + dev-util/meson + dev-util/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 +} + +src_install() { + default + meson_src_install + insinto /usr/share/feedbackd/themes + doins ${FILESDIR}/*.json + udev_newrules ${S}/debian/feedbackd.udev 90-feedbackd.rules +}