# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 inherit meson ninja-utils multilib-minimal xdg DESCRIPTION="An implementation of the Interactice Connectivity Establishment standard (ICE)" HOMEPAGE="https://nice.freedesktop.org/wiki/" if [[ ${PV} != 9999 ]]; then SRC_URI="https://nice.freedesktop.org/releases/${P}.tar.gz" else inherit git-r3 EGIT_BRANCH="master" EGIT_REPO_URI="https://gitlab.freedesktop.org/libnice/libnice.git" fi LICENSE="|| ( MPL-1.1 LGPL-2.1 )" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" IUSE="examples +gnutls +introspection libressl +upnp test doc" RDEPEND=" >=dev-libs/glib-2.48:2[${MULTILIB_USEDEP}] introspection? ( >=dev-libs/gobject-introspection-1.30.0:= ) gnutls? ( >=net-libs/gnutls-2.12.0:0=[${MULTILIB_USEDEP}] ) !gnutls? ( libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] ) !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] ) ) upnp? ( >=net-libs/gupnp-igd-0.2.4:=[${MULTILIB_USEDEP}] ) " DEPEND="${RDEPEND} dev-util/glib-utils >=dev-util/gtk-doc-am-1.10 >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] " multilib_src_configure() { # gstreamer plugin split off into media-plugins/gst-plugins-libnice local emesonargs=( -Dgstreamer=disabled -Dignored-network-interface-prefix="docker veth virbr vnet" -Dcrypto-library=$(usex gnutls gnutls openssl) $(meson_feature examples) $(meson_feature doc gtk_doc) $(meson_feature test tests) $(meson_feature introspection) $(meson_feature upnp gupnp) ) meson_src_configure } multilib_src_install_all() { #if multilib_is_native_abi; then BUILD_DIR="${OLDPWD}" meson_src_install #fi } multilib_src_test() { BUILD_DIR="${OLDPWD}" emake -j1 check }