From e49ef70d7354e6740ec5ca61ab2829de1c17d78b Mon Sep 17 00:00:00 2001 From: Gerben Jan Dijkman Date: Tue, 28 May 2024 20:01:26 +0200 Subject: [PATCH] Updated --- .../gnome-calls/gnome-calls-46.0-r1.ebuild | 112 ++++++++++++++++++ net-voip/gnome-calls/gnome-calls-46.0.ebuild | 68 ----------- 2 files changed, 112 insertions(+), 68 deletions(-) create mode 100755 net-voip/gnome-calls/gnome-calls-46.0-r1.ebuild delete mode 100755 net-voip/gnome-calls/gnome-calls-46.0.ebuild diff --git a/net-voip/gnome-calls/gnome-calls-46.0-r1.ebuild b/net-voip/gnome-calls/gnome-calls-46.0-r1.ebuild new file mode 100755 index 0000000..06c30fb --- /dev/null +++ b/net-voip/gnome-calls/gnome-calls-46.0-r1.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2022 Gentoo Authors +# 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 + +LCU_COMMIT="6798b38d4d66d069751151b3e9a202c6de8d7f3c" +DESCRIPTION="Phone dialer and call handler" +HOMEPAGE="https://gitlab.gnome.org/GNOME/calls" +SRC_URI=" + https://gitlab.gnome.org/GNOME/calls/-/archive/v${PV}/calls-v${PV}.tar.gz + https://gitlab.gnome.org/World/Phosh/libcall-ui/-/archive/${LCU_COMMIT}/libcall-ui-${LCU_COMMIT}.tar.gz +" + +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] + x11-libs/gtk+:3 +" +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 ) +" + +S="${WORKDIR}/calls-v${PV}" + + +src_unpack() { + default + rm -r "${S}"/subprojects/libcall-ui || die + mv "${WORKDIR}"/libcall-ui-"${LCU_COMMIT}" "${S}"/subprojects/libcall-ui || die + +} + +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:ringer + calls:sdp-crypto + calls:settings + calls:srtp + calls:ui-call + calls:util + + # TODO: needs working sound card + #calls:application + + # 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 +} + + diff --git a/net-voip/gnome-calls/gnome-calls-46.0.ebuild b/net-voip/gnome-calls/gnome-calls-46.0.ebuild deleted file mode 100755 index d008bf1..0000000 --- a/net-voip/gnome-calls/gnome-calls-46.0.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -VALA_USE_DEPEND="vapigen" - -inherit vala meson gnome2-utils xdg - -LCU_COMMIT="6798b38d4d66d069751151b3e9a202c6de8d7f3c" -DESCRIPTION="Phone dialer and call handler" -HOMEPAGE="https://gitlab.gnome.org/GNOME/calls" -SRC_URI=" - https://gitlab.gnome.org/GNOME/calls/-/archive/v${PV}/calls-v${PV}.tar.gz - https://gitlab.gnome.org/World/Phosh/libcall-ui/-/archive/${LCU_COMMIT}/libcall-ui-${LCU_COMMIT}.tar.gz -" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~arm64" -IUSE="+introspection +vala" -REQUIRED_USE="vala? ( introspection )" - -DEPEND=" - dev-libs/feedbackd - >=gui-libs/libhandy-1.0.0 - dev-libs/folks - dev-libs/gom - dev-libs/libpeas - >=media-sound/callaudiod-0.1 - gnome-extra/evolution-data-server - app-crypt/libsecret - gui-libs/libadwaita - gnome-extra/gnome-contacts - >=gui-libs/gtk-4.12.5 - gnome-extra/evolution-data-server[phonenumber] - net-libs/sofia-sip - - " -RDEPEND="${DEPEND}" -BDEPEND=" - vala? ( $(vala_depend) ) - dev-build/meson - dev-libs/gobject-introspection - dev-util/wayland-scanner -" - -S="${WORKDIR}/calls-v${PV}" - -src_prepare() { - default - eapply_user - use vala && vala_src_prepare - - rm -r "${S}"/subprojects/libcall-ui || die - mv "${WORKDIR}"/libcall-ui-"${LCU_COMMIT}" "${S}"/subprojects/libcall-ui || die -} - -pkg_postinst() { - xdg_pkg_postinst - gnome2_schemas_update -} - -pkg_postrm() { - xdg_pkg_postrm - gnome2_schemas_update -} - -