commit:     d7b9ce2b9a6dcb2a413110664de1d08bbf4f3bfe
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Thu May  9 19:42:10 2024 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Thu May  9 19:42:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d7b9ce2b

net-libs/sofia-sip: new package, add 1.13.17

Removed from ::gentoo but we need it here for GNOME Calls.

SeeAlso: https://github.com/gentoo/gentoo/pull/35243
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 net-libs/sofia-sip/Manifest                 |   1 +
 net-libs/sofia-sip/metadata.xml             |  17 +++++
 net-libs/sofia-sip/sofia-sip-1.13.17.ebuild | 114 ++++++++++++++++++++++++++++
 profiles/package.mask                       |   4 -
 4 files changed, 132 insertions(+), 4 deletions(-)

diff --git a/net-libs/sofia-sip/Manifest b/net-libs/sofia-sip/Manifest
new file mode 100644
index 0000000000..3c4c7f036a
--- /dev/null
+++ b/net-libs/sofia-sip/Manifest
@@ -0,0 +1 @@
+DIST sofia-sip-1.13.17.tar.gz 2553674 BLAKE2B 
4a59ac3be32b9d22d930ab98f5079d18edf3cae62095f11efebefc84ca22c15a0f02d0a436a62db6292c796b51c661e988b60f55cbd5084c7682b1f8cd34891a
 SHA512 
356577d415d6dc4191f0f49f7fa1d6f33fafdb9e455556f83e091159055a215fc1ebfa9c7dc23b5f5e533b85e23afa7b1444170419fdf137aeb2ea048de77e08

diff --git a/net-libs/sofia-sip/metadata.xml b/net-libs/sofia-sip/metadata.xml
new file mode 100644
index 0000000000..b88e46e076
--- /dev/null
+++ b/net-libs/sofia-sip/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>cyber+gen...@sysrq.in</email>
+               <name>Anna</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">freeswitch/sofia-sip</remote-id>
+       </upstream>
+       <use>
+               <flag name="glib">
+                       Add support to <pkg>dev-libs/glib</pkg>-based mainloop, 
to allow
+                       using Sofia-SIP on glib-based programs.
+               </flag>
+       </use>
+</pkgmetadata>

diff --git a/net-libs/sofia-sip/sofia-sip-1.13.17.ebuild 
b/net-libs/sofia-sip/sofia-sip-1.13.17.ebuild
new file mode 100644
index 0000000000..d0bcba438a
--- /dev/null
+++ b/net-libs/sofia-sip/sofia-sip-1.13.17.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="RFC3261 compliant SIP User-Agent library"
+HOMEPAGE="https://github.com/freeswitch/sofia-sip";
+SRC_URI="https://github.com/freeswitch/${PN}/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1+ BSD public-domain" # See COPYRIGHT
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-linux"
+IUSE="debug doc +glib test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       dev-libs/openssl:=
+       sys-libs/zlib:=
+       glib? ( dev-libs/glib:2 )
+"
+DEPEND="${RDEPEND}
+       test? ( dev-libs/check )
+"
+BDEPEND="
+       virtual/pkgconfig
+       doc? ( app-text/doxygen[dot] )
+"
+
+DOCS=(
+       AUTHORS
+       ChangeLog{,.ext-trees}
+       README{,.developers}
+       RELEASE
+       SECURITY.md
+       TODO
+       docs/.
+)
+
+src_prepare() {
+       local -a TESTS_DESELECT=(
+               # Avoid tests that make too many assumptions about the
+               # networking environment, bug 915904
+               libsofia-sip-ua/sresolv:run_test_sresolv
+               libsofia-sip-ua/nta:run_test_nta
+               libsofia-sip-ua/nta:run_check_nta
+               libsofia-sip-ua/nua:check_nua
+               libsofia-sip-ua-glib/su-glib:torture_su_glib_timer
+               libsofia-sip-ua-glib/su-glib:su_source_test
+               tests:check_sofia
+               tests:test_nua
+       )
+
+       local testname filename
+       for deselect in "${TESTS_DESELECT[@]}"; do
+               filename="${deselect%%:*}/Makefile.am"
+               testname=${deselect#*:}
+               sed -i -e "/TESTS/,$ s/\<${testname:?}\>//" "${filename:?}" || 
die
+       done
+
+       default
+       eautoreconf
+}
+
+src_configure() {
+       local myeconfargs=(
+               # Makes otherwise working tests fail.
+               ac_cv_tagstack=no
+
+               # 'nth' depends on openssl (bug 851546, 880451) and can't be 
flipped off
+               # without breaking API and ABI, so it should always be enabled.
+               --enable-nth
+               --with-openssl
+
+               # ABI-breaking, cannot be controlled via USE-flags
+               --disable-experimental
+               --disable-sctp
+
+               $(use_enable !debug ndebug)
+               $(use_with doc doxygen)
+               $(use_with glib)
+       )
+       econf "${myeconfargs[@]}"
+
+       SOFIA_MAKEARGS=(
+               # Make build logs verbose
+               SOFIA_SILENT=
+               VERBOSE=1
+               # Prevent "/bin/sh /bin/sh" (bug 920903)
+               TESTS_ENVIRONMENT=
+       )
+}
+
+src_compile() {
+       emake "${SOFIA_MAKEARGS[@]}"
+
+       if use doc; then
+               emake -C libsofia-sip-ua "${SOFIA_MAKEARGS[@]}" doxygen
+               HTML_DOCS=( libsofia-sip-ua/docs/html/. )
+       fi
+}
+
+src_test() {
+       local -x SOFIA_DEBUG=9
+       emake "${SOFIA_MAKEARGS[@]}" check
+}
+
+src_install() {
+       emake DESTDIR="${D}" "${SOFIA_MAKEARGS[@]}" install
+       einstalldocs
+
+       find "${ED}" -name '*.la' -delete || die
+}

diff --git a/profiles/package.mask b/profiles/package.mask
index 5b45fe6386..f924b2d86b 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -152,10 +152,6 @@ media-video/ffsubsync
 # Rev Dep
 mpv-plugin/autosubsync-mpv
 
-# Anna Vyalkova <cyber+gen...@sysrq.in> (2024-04-09)
-# Depends on masked net-libs/sofia-sip.
-net-voip/gnome-calls
-
 # Julien Roy <jul...@jroy.ca> (2024-03-21)
 # sys-libs/libucontext is masked in ::gentoo
 sys-libs/gcompat

Reply via email to