Updated
This commit is contained in:
@@ -1,64 +1,56 @@
|
|||||||
# Copyright 1999-2024 Gentoo Authors
|
# Copyright 2021-2025 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
VALA_USE_DEPEND="vapigen"
|
|
||||||
|
|
||||||
inherit vala meson gnome2-utils optfeature virtualx xdg
|
GNOME_ORG_MODULE="calls"
|
||||||
|
inherit vala meson gnome.org gnome2-utils optfeature systemd virtualx xdg
|
||||||
|
|
||||||
MY_PN="${PN#gnome-}"
|
|
||||||
MY_P="${MY_PN}-v${PV}"
|
|
||||||
LCU_V="0.1.5"
|
|
||||||
DESCRIPTION="Phone dialer and call handler"
|
DESCRIPTION="Phone dialer and call handler"
|
||||||
HOMEPAGE="https://gitlab.gnome.org/GNOME/calls"
|
HOMEPAGE="https://gitlab.gnome.org/GNOME/calls"
|
||||||
GITLAB="https://gitlab.gnome.org"
|
|
||||||
SRC_URI="
|
|
||||||
${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
|
|
||||||
"
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
LICENSE="CC0-1.0 CC-BY-SA-4.0 GPL-3+ LGPL-2+ LGPL-2.1+"
|
LICENSE="CC0-1.0 CC-BY-SA-4.0 GPL-3+ LGPL-2+ LGPL-2.1+"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64 ~arm64"
|
KEYWORDS="~amd64 ~arm64"
|
||||||
IUSE="gtk-doc man"
|
IUSE="gtk-doc man"
|
||||||
|
|
||||||
RDEPEND="
|
COMMON_DEPEND="
|
||||||
app-crypt/libsecret[introspection,vala]
|
app-crypt/libsecret
|
||||||
dev-libs/feedbackd[introspection,vala]
|
dev-libs/feedbackd
|
||||||
dev-libs/folks:=
|
dev-libs/folks:=
|
||||||
dev-libs/glib:2
|
>=dev-libs/glib-2.74:2
|
||||||
dev-libs/gom[introspection]
|
dev-libs/gom
|
||||||
dev-libs/libgee:0.8=[introspection]
|
dev-libs/libgee:0.8=
|
||||||
>=dev-libs/libpeas-2.0.0
|
dev-libs/libpeas:2
|
||||||
gnome-extra/evolution-data-server:=[vala]
|
gnome-extra/evolution-data-server:=[vala]
|
||||||
gui-libs/libhandy:1[introspection,vala]
|
>=gui-libs/gtk-4.12:4
|
||||||
media-libs/gstreamer:1.0[introspection]
|
>=gui-libs/libadwaita-1.6:1
|
||||||
|
media-libs/gstreamer:1.0
|
||||||
media-sound/callaudiod
|
media-sound/callaudiod
|
||||||
net-libs/sofia-sip
|
net-libs/sofia-sip[glib]
|
||||||
net-misc/modemmanager:=[introspection]
|
net-misc/modemmanager:=
|
||||||
x11-libs/gtk+:3
|
|
||||||
"
|
"
|
||||||
DEPEND="${RDEPEND}
|
RDEPEND="${COMMON_DEPEND}
|
||||||
test? ( media-plugins/gst-plugins-srtp:1.0 )
|
gnome-base/librsvg:2
|
||||||
|
"
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
test? (
|
||||||
|
media-libs/gst-plugins-base:1.0
|
||||||
|
media-libs/gst-plugins-good:1.0
|
||||||
|
media-plugins/gst-plugins-srtp:1.0
|
||||||
|
)
|
||||||
"
|
"
|
||||||
BDEPEND="
|
BDEPEND="
|
||||||
$(vala_depend)
|
$(vala_depend)
|
||||||
dev-libs/gobject-introspection
|
dev-libs/glib:2
|
||||||
dev-libs/protobuf
|
dev-libs/libxml2
|
||||||
dev-util/wayland-scanner
|
dev-util/gdbus-codegen
|
||||||
|
dev-util/glib-utils
|
||||||
|
sys-devel/gettext
|
||||||
gtk-doc? ( dev-util/gtk-doc )
|
gtk-doc? ( dev-util/gtk-doc )
|
||||||
man? ( dev-python/docutils )
|
man? ( dev-python/docutils )
|
||||||
"
|
"
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
default
|
|
||||||
|
|
||||||
cd "${S}" || die
|
|
||||||
rmdir subprojects/libcall-ui || die
|
|
||||||
mv "${WORKDIR}"/libcall-ui-v${LCU_V} subprojects/libcall-ui || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
vala_setup
|
vala_setup
|
||||||
@@ -69,14 +61,17 @@ src_configure() {
|
|||||||
$(meson_use gtk-doc gtk_doc)
|
$(meson_use gtk-doc gtk_doc)
|
||||||
$(meson_use man manpages)
|
$(meson_use man manpages)
|
||||||
$(meson_use test tests)
|
$(meson_use test tests)
|
||||||
|
-Dsystemd_user_unit_dir="$(systemd_get_userunitdir)"
|
||||||
)
|
)
|
||||||
meson_src_configure
|
meson_src_configure
|
||||||
}
|
}
|
||||||
|
|
||||||
src_test() {
|
src_test() {
|
||||||
local tests=(
|
local tests=(
|
||||||
|
calls:application
|
||||||
calls:call
|
calls:call
|
||||||
calls:contacts
|
calls:contacts
|
||||||
|
calls:emergency-call-types
|
||||||
calls:dbus
|
calls:dbus
|
||||||
calls:manager
|
calls:manager
|
||||||
calls:media
|
calls:media
|
||||||
@@ -89,15 +84,18 @@ src_test() {
|
|||||||
calls:ui-call
|
calls:ui-call
|
||||||
calls:util
|
calls:util
|
||||||
|
|
||||||
# TODO: needs working sound card
|
# TODO:
|
||||||
#calls:application
|
# not ok /Calls/Ringer/accept_call
|
||||||
|
# GLib-GObject-FATAL-CRITICAL: cannot register existing type 'LfbEvent'
|
||||||
# TODO: failure related to feedbackd
|
# https://gitlab.gnome.org/GNOME/calls/-/issues/622
|
||||||
#calls:ringer
|
#calls:ringer
|
||||||
|
|
||||||
# TODO: hangs
|
# TODO:
|
||||||
|
# hangs at /Calls/SIP/calls_direct_call
|
||||||
|
# https://gitlab.gnome.org/GNOME/calls/-/issues/695
|
||||||
#calls:sip
|
#calls:sip
|
||||||
)
|
)
|
||||||
|
|
||||||
virtx meson_src_test "${tests[@]}"
|
virtx meson_src_test "${tests[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -105,7 +103,11 @@ pkg_postinst() {
|
|||||||
xdg_pkg_postinst
|
xdg_pkg_postinst
|
||||||
gnome2_schemas_update
|
gnome2_schemas_update
|
||||||
|
|
||||||
optfeature "SRTP support" media-plugins/gst-plugins-srtp
|
optfeature "SIP support" "\
|
||||||
|
media-libs/gst-plugins-base:1.0 \
|
||||||
|
media-libs/gst-plugins-good:1.0 \
|
||||||
|
media-plugins/gst-plugins-srtp:1.0 \
|
||||||
|
"
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postrm() {
|
pkg_postrm() {
|
||||||
|
|||||||
@@ -1,63 +1,56 @@
|
|||||||
# Copyright 1999-2024 Gentoo Authors
|
# Copyright 2021-2025 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
VALA_USE_DEPEND="vapigen"
|
|
||||||
|
|
||||||
inherit vala meson gnome2-utils optfeature virtualx xdg
|
GNOME_ORG_MODULE="calls"
|
||||||
|
inherit vala meson gnome.org gnome2-utils optfeature systemd virtualx xdg
|
||||||
|
|
||||||
MY_PN="${PN#gnome-}"
|
|
||||||
MY_P="${MY_PN}-v${PV}"
|
|
||||||
LCU_V="0.1.5"
|
|
||||||
DESCRIPTION="Phone dialer and call handler"
|
DESCRIPTION="Phone dialer and call handler"
|
||||||
HOMEPAGE="https://gitlab.gnome.org/GNOME/calls"
|
HOMEPAGE="https://gitlab.gnome.org/GNOME/calls"
|
||||||
GITLAB="https://gitlab.gnome.org"
|
|
||||||
SRC_URI="
|
|
||||||
${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
|
|
||||||
"
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
LICENSE="CC0-1.0 CC-BY-SA-4.0 GPL-3+ LGPL-2+ LGPL-2.1+"
|
LICENSE="CC0-1.0 CC-BY-SA-4.0 GPL-3+ LGPL-2+ LGPL-2.1+"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64 ~arm64"
|
KEYWORDS="~amd64 ~arm64"
|
||||||
IUSE="gtk-doc man"
|
IUSE="gtk-doc man"
|
||||||
|
|
||||||
RDEPEND="
|
COMMON_DEPEND="
|
||||||
app-crypt/libsecret[introspection,vala]
|
app-crypt/libsecret
|
||||||
dev-libs/feedbackd[introspection,vala]
|
dev-libs/feedbackd
|
||||||
dev-libs/folks:=
|
dev-libs/folks:=
|
||||||
dev-libs/glib
|
>=dev-libs/glib-2.74:2
|
||||||
dev-libs/gom[introspection]
|
dev-libs/gom
|
||||||
dev-libs/libgee:0.8=[introspection]
|
dev-libs/libgee:0.8=
|
||||||
>=dev-libs/libpeas-2.0.0
|
dev-libs/libpeas:2
|
||||||
gnome-extra/evolution-data-server:=[vala]
|
gnome-extra/evolution-data-server:=[vala]
|
||||||
gui-libs/libhandy:1[introspection,vala]
|
>=gui-libs/gtk-4.12:4
|
||||||
media-libs/gstreamer:1.0[introspection]
|
>=gui-libs/libadwaita-1.6:1
|
||||||
|
media-libs/gstreamer:1.0
|
||||||
media-sound/callaudiod
|
media-sound/callaudiod
|
||||||
net-libs/sofia-sip
|
net-libs/sofia-sip[glib]
|
||||||
net-misc/modemmanager:=[introspection]
|
net-misc/modemmanager:=
|
||||||
x11-libs/gtk+:3
|
|
||||||
"
|
"
|
||||||
DEPEND="${RDEPEND}
|
RDEPEND="${COMMON_DEPEND}
|
||||||
test? ( media-plugins/gst-plugins-srtp:1.0 )
|
gnome-base/librsvg:2
|
||||||
|
"
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
test? (
|
||||||
|
media-libs/gst-plugins-base:1.0
|
||||||
|
media-libs/gst-plugins-good:1.0
|
||||||
|
media-plugins/gst-plugins-srtp:1.0
|
||||||
|
)
|
||||||
"
|
"
|
||||||
BDEPEND="
|
BDEPEND="
|
||||||
$(vala_depend)
|
$(vala_depend)
|
||||||
dev-libs/gobject-introspection
|
dev-libs/glib:2
|
||||||
dev-libs/protobuf
|
dev-libs/libxml2
|
||||||
dev-util/wayland-scanner
|
dev-util/gdbus-codegen
|
||||||
|
dev-util/glib-utils
|
||||||
|
sys-devel/gettext
|
||||||
gtk-doc? ( dev-util/gtk-doc )
|
gtk-doc? ( dev-util/gtk-doc )
|
||||||
man? ( dev-python/docutils )
|
man? ( dev-python/docutils )
|
||||||
"
|
"
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
default
|
|
||||||
|
|
||||||
cd "${S}" || die
|
|
||||||
mv "${WORKDIR}"/libcall-ui-v${LCU_V} subprojects/libcall-ui || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
vala_setup
|
vala_setup
|
||||||
@@ -68,14 +61,17 @@ src_configure() {
|
|||||||
$(meson_use gtk-doc gtk_doc)
|
$(meson_use gtk-doc gtk_doc)
|
||||||
$(meson_use man manpages)
|
$(meson_use man manpages)
|
||||||
$(meson_use test tests)
|
$(meson_use test tests)
|
||||||
|
-Dsystemd_user_unit_dir="$(systemd_get_userunitdir)"
|
||||||
)
|
)
|
||||||
meson_src_configure
|
meson_src_configure
|
||||||
}
|
}
|
||||||
|
|
||||||
src_test() {
|
src_test() {
|
||||||
local tests=(
|
local tests=(
|
||||||
|
calls:application
|
||||||
calls:call
|
calls:call
|
||||||
calls:contacts
|
calls:contacts
|
||||||
|
calls:emergency-call-types
|
||||||
calls:dbus
|
calls:dbus
|
||||||
calls:manager
|
calls:manager
|
||||||
calls:media
|
calls:media
|
||||||
@@ -88,15 +84,18 @@ src_test() {
|
|||||||
calls:ui-call
|
calls:ui-call
|
||||||
calls:util
|
calls:util
|
||||||
|
|
||||||
# TODO: needs working sound card
|
# TODO:
|
||||||
#calls:application
|
# not ok /Calls/Ringer/accept_call
|
||||||
|
# GLib-GObject-FATAL-CRITICAL: cannot register existing type 'LfbEvent'
|
||||||
# TODO: failure related to feedbackd
|
# https://gitlab.gnome.org/GNOME/calls/-/issues/622
|
||||||
#calls:ringer
|
#calls:ringer
|
||||||
|
|
||||||
# TODO: hangs
|
# TODO:
|
||||||
|
# hangs at /Calls/SIP/calls_direct_call
|
||||||
|
# https://gitlab.gnome.org/GNOME/calls/-/issues/695
|
||||||
#calls:sip
|
#calls:sip
|
||||||
)
|
)
|
||||||
|
|
||||||
virtx meson_src_test "${tests[@]}"
|
virtx meson_src_test "${tests[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -104,7 +103,11 @@ pkg_postinst() {
|
|||||||
xdg_pkg_postinst
|
xdg_pkg_postinst
|
||||||
gnome2_schemas_update
|
gnome2_schemas_update
|
||||||
|
|
||||||
optfeature "SRTP support" media-plugins/gst-plugins-srtp
|
optfeature "SIP support" "\
|
||||||
|
media-libs/gst-plugins-base:1.0 \
|
||||||
|
media-libs/gst-plugins-good:1.0 \
|
||||||
|
media-plugins/gst-plugins-srtp:1.0 \
|
||||||
|
"
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postrm() {
|
pkg_postrm() {
|
||||||
|
|||||||
Reference in New Issue
Block a user