gjdwebserver-overlay/net-voip/gnome-calls/gnome-calls-46.3.ebuild

115 lines
2.2 KiB
Bash
Raw Normal View History

2024-07-11 11:19:05 +02:00
# Copyright 1999-2024 Gentoo Authors
2024-07-11 11:10:30 +02:00
# Distributed under the terms of the GNU General Public License v2
EAPI=8
VALA_USE_DEPEND="vapigen"
inherit vala meson gnome2-utils optfeature virtualx xdg
2024-07-11 11:19:05 +02:00
MY_PN="${PN#gnome-}"
MY_P="${MY_PN}-v${PV}"
LCU_V="0.1.0"
2024-07-11 11:10:30 +02:00
DESCRIPTION="Phone dialer and call handler"
HOMEPAGE="https://gitlab.gnome.org/GNOME/calls"
2024-07-11 11:19:05 +02:00
GITLAB="https://gitlab.gnome.org"
2024-07-11 11:10:30 +02:00
SRC_URI="
2024-07-11 11:19:05 +02:00
${GITLAB}/GNOME/${MY_PN}/-/archive/v${PV}/${MY_P}.tar.bz2
${GITLAB}/World/Phosh/libcall-ui/-/archive/v${LCU_V}/libcall-ui-v${LCU_V}.tar.bz2
2024-07-11 11:10:30 +02:00
"
2024-07-11 11:19:05 +02:00
S="${WORKDIR}/${MY_P}"
2024-07-11 11:10:30 +02:00
LICENSE="CC0-1.0 CC-BY-SA-4.0 GPL-3+ LGPL-2+ LGPL-2.1+"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="gtk-doc man"
RDEPEND="
app-crypt/libsecret[introspection,vala]
dev-libs/feedbackd[introspection,vala]
dev-libs/folks:=
dev-libs/glib:2
dev-libs/gom[introspection]
dev-libs/libgee:0.8=[introspection]
dev-libs/libpeas
gnome-extra/evolution-data-server:=[vala]
gui-libs/libhandy:1[introspection,vala]
media-libs/gstreamer:1.0[introspection]
media-sound/callaudiod
net-libs/sofia-sip
net-misc/modemmanager:=[introspection]
2024-07-11 11:19:05 +02:00
x11-libs/gtk+:3
2024-07-11 11:10:30 +02:00
"
DEPEND="${RDEPEND}
test? ( media-plugins/gst-plugins-srtp:1.0 )
"
BDEPEND="
$(vala_depend)
dev-libs/gobject-introspection
dev-libs/protobuf
dev-util/wayland-scanner
gtk-doc? ( dev-util/gtk-doc )
man? ( dev-python/docutils )
"
src_unpack() {
default
2024-07-11 11:19:05 +02:00
cd "${S}" || die
rmdir subprojects/libcall-ui || die
mv "${WORKDIR}"/libcall-ui-v${LCU_V} subprojects/libcall-ui || die
2024-07-11 11:10:30 +02:00
}
src_prepare() {
default
vala_setup
}
src_configure() {
local emesonargs=(
$(meson_use gtk-doc gtk_doc)
$(meson_use man manpages)
$(meson_use test tests)
)
meson_src_configure
}
src_test() {
local tests=(
calls:call
calls:contacts
calls:dbus
calls:manager
calls:media
calls:origin
calls:plugins
calls:provider
calls:sdp-crypto
calls:settings
calls:srtp
calls:ui-call
calls:util
# TODO: needs working sound card
#calls:application
2024-07-11 11:19:05 +02:00
# TODO: failure related to feedbackd
#calls:ringer
2024-07-11 11:10:30 +02:00
# TODO: hangs
#calls:sip
)
virtx meson_src_test "${tests[@]}"
}
pkg_postinst() {
xdg_pkg_postinst
gnome2_schemas_update
optfeature "SRTP support" media-plugins/gst-plugins-srtp
}
pkg_postrm() {
xdg_pkg_postrm
gnome2_schemas_update
}