mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-13 21:47:44 +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>
104 lines
2.4 KiB
Bash
104 lines
2.4 KiB
Bash
# Copyright 2022-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{10..13} )
|
|
inherit flag-o-matic meson python-any-r1 vala
|
|
|
|
DESCRIPTION="Flatpak portal library"
|
|
HOMEPAGE="https://github.com/flatpak/libportal"
|
|
SRC_URI="https://github.com/flatpak/libportal/releases/download/${PV}/${P}.tar.xz"
|
|
|
|
LICENSE="LGPL-3"
|
|
SLOT="0/1-1-1-1" # soname of libportal{,-gtk3,-gtk4,-qt6}.so
|
|
KEYWORDS="~alpha amd64 arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86"
|
|
IUSE="gtk gtk-doc +introspection qt6 test +vala wayland X"
|
|
RESTRICT="!test? ( test )"
|
|
REQUIRED_USE="
|
|
gtk-doc? ( introspection )
|
|
vala? ( introspection )
|
|
"
|
|
|
|
RDEPEND="
|
|
>=dev-libs/glib-2.72:2
|
|
introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= )
|
|
gtk? (
|
|
>=x11-libs/gtk+-3.24.41-r1:3[introspection?,wayland?,X?]
|
|
>=gui-libs/gtk-4.12.5-r2:4[introspection?,wayland?,X?]
|
|
)
|
|
qt6? ( dev-qt/qtbase:6=[gui] )
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="
|
|
dev-util/glib-utils
|
|
virtual/pkgconfig
|
|
gtk-doc? ( dev-util/gi-docgen )
|
|
test? (
|
|
qt6? ( dev-qt/qttools:6[linguist] )
|
|
${PYTHON_DEPS}
|
|
$(python_gen_any_dep '
|
|
dev-python/pytest[${PYTHON_USEDEP}]
|
|
dev-python/dbus-python[${PYTHON_USEDEP}]
|
|
dev-python/python-dbusmock[${PYTHON_USEDEP}]
|
|
')
|
|
)
|
|
vala? ( $(vala_depend) )
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${P}-bogus-qt6widgets.patch"
|
|
"${FILESDIR}/${P}-qt6.9-compat.patch"
|
|
)
|
|
|
|
python_check_deps() {
|
|
python_has_version \
|
|
"dev-python/pytest[${PYTHON_USEDEP}]" \
|
|
"dev-python/dbus-python[${PYTHON_USEDEP}]" \
|
|
"dev-python/python-dbusmock[${PYTHON_USEDEP}]"
|
|
}
|
|
|
|
pkg_setup() {
|
|
if use test; then
|
|
python-any-r1_pkg_setup
|
|
fi
|
|
}
|
|
|
|
src_prepare() {
|
|
default
|
|
vala_setup
|
|
}
|
|
|
|
src_configure() {
|
|
# defang automagic dependencies
|
|
use wayland || append-cflags -DGENTOO_GTK_HIDE_WAYLAND
|
|
use X || append-cflags -DGENTOO_GTK_HIDE_X11
|
|
|
|
local emesonargs=(
|
|
$(meson_feature gtk backend-gtk3)
|
|
$(meson_feature gtk backend-gtk4)
|
|
-Dbackend-qt5=disabled
|
|
$(meson_feature qt6 backend-qt6)
|
|
-Dportal-tests=false
|
|
$(meson_use introspection)
|
|
$(meson_use vala vapi)
|
|
$(meson_use gtk-doc docs)
|
|
$(meson_use test tests)
|
|
)
|
|
meson_src_configure
|
|
}
|
|
|
|
src_test() {
|
|
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
|
local -x QT_QPA_PLATFORM=offscreen
|
|
meson_src_test
|
|
}
|
|
|
|
src_install() {
|
|
meson_src_install
|
|
|
|
if use gtk-doc; then
|
|
mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die
|
|
mv "${ED}"/usr/share/doc/${PN}-1 "${ED}"/usr/share/gtk-doc/html/ || die
|
|
fi
|
|
}
|