This commit is contained in:
2024-07-11 11:19:05 +02:00
parent 7f9de733ce
commit 964028cba6
3 changed files with 19 additions and 129 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -6,13 +6,17 @@ VALA_USE_DEPEND="vapigen"
inherit vala meson gnome2-utils optfeature virtualx xdg
LCU_COMMIT="7ff3e6649a2ef44bc96d3179cd8b1dac2fdd681d"
MY_PN="${PN#gnome-}"
MY_P="${MY_PN}-v${PV}"
LCU_V="0.1.0"
DESCRIPTION="Phone dialer and call handler"
HOMEPAGE="https://gitlab.gnome.org/GNOME/calls"
GITLAB="https://gitlab.gnome.org"
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
${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+"
SLOT="0"
@@ -33,7 +37,7 @@ RDEPEND="
media-sound/callaudiod
net-libs/sofia-sip
net-misc/modemmanager:=[introspection]
gui-libs/gtk
x11-libs/gtk+:3
"
DEPEND="${RDEPEND}
test? ( media-plugins/gst-plugins-srtp:1.0 )
@@ -47,14 +51,12 @@ BDEPEND="
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
cd "${S}" || die
rmdir subprojects/libcall-ui || die
mv "${WORKDIR}"/libcall-ui-v${LCU_V} subprojects/libcall-ui || die
}
src_prepare() {
@@ -81,7 +83,6 @@ src_test() {
calls:origin
calls:plugins
calls:provider
calls:ringer
calls:sdp-crypto
calls:settings
calls:srtp
@@ -91,6 +92,9 @@ src_test() {
# TODO: needs working sound card
#calls:application
# TODO: failure related to feedbackd
#calls:ringer
# TODO: hangs
#calls:sip
)
@@ -108,5 +112,3 @@ pkg_postrm() {
xdg_pkg_postrm
gnome2_schemas_update
}