gjdwebserver-overlay/dev-libs/feedbackd/feedbackd-0.4.0.ebuild

81 lines
1.7 KiB
Bash
Raw Permalink Normal View History

2024-05-21 14:32:25 +02:00
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
VALA_USE_DEPEND="vapigen"
2024-06-24 13:32:48 +02:00
inherit meson udev vala verify-sig
2024-05-21 14:32:25 +02:00
DESCRIPTION="A daemon to provide haptic feedback on events"
HOMEPAGE="https://source.puri.sm/Librem5/feedbackd"
2024-06-24 13:32:48 +02:00
SRC_URI="https://sources.phosh.mobi/releases/${PN}/${P}.tar.xz
verify-sig? ( https://sources.phosh.mobi/releases/${PN}/${P}.tar.xz.asc )"
2024-05-21 14:32:25 +02:00
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="+daemon gtk-doc +introspection man test +vala"
2024-06-24 13:32:48 +02:00
2024-05-21 14:32:25 +02:00
REQUIRED_USE="vala? ( introspection )"
RESTRICT="!test? ( test )"
DEPEND="
dev-libs/glib:2
2024-06-24 13:32:48 +02:00
dev-libs/gmobile
2024-05-21 14:32:25 +02:00
daemon? (
dev-libs/json-glib
dev-libs/libgudev
media-libs/gsound
)
introspection? ( dev-libs/gobject-introspection )
"
RDEPEND="${DEPEND}
dev-libs/feedbackd-device-themes
"
BDEPEND="
dev-util/gdbus-codegen
gtk-doc? ( dev-util/gi-docgen )
man? ( dev-python/docutils )
vala? ( $(vala_depend) )
2024-06-24 13:32:48 +02:00
verify-sig? ( sec-keys/openpgp-keys-phosh )
2024-05-21 14:32:25 +02:00
"
2024-06-24 13:32:48 +02:00
VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/phosh.asc"
2024-05-21 14:32:25 +02:00
src_prepare() {
default
use vala && vala_setup
sed -i 's/-G feedbackd/-G video/g' debian/feedbackd.udev || die
}
src_configure() {
local emesonargs=(
$(meson_feature introspection)
$(meson_use daemon)
$(meson_use gtk-doc gtk_doc)
$(meson_use man)
$(meson_use test tests)
$(meson_use vala vapi)
)
meson_src_configure
}
src_install() {
meson_src_install
udev_newrules debian/feedbackd.udev 90-feedbackd
if use gtk-doc; then
mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die
mv "${ED}"/usr/share/doc/libfeedback-${SLOT} "${ED}"/usr/share/gtk-doc/html/ || die
fi
}
pkg_postinst() {
udev_reload
}
pkg_postrm() {
udev_reload
}