mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-16 07:01:08 +00:00
sed -E '/dev-libs\/gobject-introspection(:=|\s|$|-[0-9]|\[)/ { s/(>=)?dev-libs\/gobject-introspection(-[0-9.r-]*)?/>=dev-libs\/gobject-introspection-1.82.0-r2/ }' */*/*.ebuild -i
+ manually going over to undo the false positives or if the version
requirement was higher.
Bug: https://bugs.gentoo.org/947058
See-Also: ae37e3f389
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44336
Closes: https://github.com/gentoo/gentoo/pull/44336
Signed-off-by: Sam James <sam@gentoo.org>
77 lines
2.2 KiB
Bash
77 lines
2.2 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{11..14} )
|
|
PYTHON_REQ_USE="xml(+)"
|
|
|
|
inherit gnome.org meson-multilib python-single-r1 vala xdg
|
|
|
|
DESCRIPTION="An object-oriented framework for creating UPnP devs and control points"
|
|
HOMEPAGE="https://wiki.gnome.org/Projects/GUPnP https://gitlab.gnome.org/GNOME/gupnp"
|
|
|
|
LICENSE="LGPL-2+ GPL-2+" # gupnp-binding-tool is GPL-2+
|
|
SLOT="1.6/1.6-0" # <API version>-<soname>
|
|
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~loong ~ppc ppc64 ~riscv ~sparc x86"
|
|
|
|
IUSE="connman gtk-doc +introspection networkmanager +vala"
|
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
|
?? ( connman networkmanager )
|
|
gtk-doc? ( introspection )
|
|
"
|
|
|
|
# prefix: uuid dependency can be adapted to non-linux platforms
|
|
RDEPEND="${PYTHON_DEPS}
|
|
>=dev-libs/glib-2.70:2[${MULTILIB_USEDEP}]
|
|
>=net-libs/gssdp-1.6.2:1.6=[introspection?,${MULTILIB_USEDEP}]
|
|
>=dev-libs/libxml2-2.9.1-r4:=[${MULTILIB_USEDEP}]
|
|
>=net-libs/libsoup-2.99.0:3.0[introspection?,${MULTILIB_USEDEP}]
|
|
>=sys-apps/util-linux-2.24.1-r3[${MULTILIB_USEDEP}]
|
|
introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= )
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="
|
|
dev-util/glib-utils
|
|
gtk-doc? ( >=dev-util/gi-docgen-2021.1 )
|
|
dev-libs/libxslt
|
|
app-text/docbook-xsl-stylesheets
|
|
virtual/pkgconfig
|
|
!connman? ( !networkmanager? ( kernel_linux? ( sys-kernel/linux-headers ) ) )
|
|
vala? ( $(vala_depend)
|
|
>=net-libs/gssdp-1.5.2:1.6[vala]
|
|
net-libs/libsoup:3.0[vala]
|
|
)
|
|
"
|
|
|
|
src_prepare() {
|
|
default
|
|
use vala && vala_setup
|
|
|
|
# This makes sense for upstream but not for us downstream, bug #906124.
|
|
sed -i -e '/-Werror=deprecated-declarations/d' meson.build || die
|
|
}
|
|
|
|
multilib_src_configure() {
|
|
local backend=system
|
|
use kernel_linux && backend=linux
|
|
use connman && backend=connman
|
|
use networkmanager && backend=network-manager
|
|
|
|
local emesonargs=(
|
|
-Dcontext_manager=${backend}
|
|
$(meson_native_use_bool introspection)
|
|
$(meson_native_use_bool vala vapi)
|
|
$(meson_native_use_bool gtk-doc gtk_doc)
|
|
-Dexamples=false
|
|
)
|
|
meson_src_configure
|
|
}
|
|
|
|
multilib_src_install_all() {
|
|
python_fix_shebang "${ED}"/usr/bin/gupnp-binding-tool-1.6
|
|
if use gtk-doc ; then
|
|
mkdir "${ED}"/usr/share/gtk-doc || die
|
|
mv "${ED}"/usr/share/{doc,gtk-doc}/gupnp-1.6 || die
|
|
fi
|
|
}
|