mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-17 07:28:38 +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>
66 lines
1.6 KiB
Bash
66 lines
1.6 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit gnome.org meson vala
|
|
|
|
DESCRIPTION="Helper library for RESTful services"
|
|
HOMEPAGE="https://wiki.gnome.org/Projects/Librest"
|
|
|
|
LICENSE="LGPL-2.1"
|
|
SLOT="1.0" # librest_soversion
|
|
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc x86"
|
|
IUSE="gtk-doc +introspection test vala"
|
|
REQUIRED_USE="
|
|
gtk-doc? ( introspection )
|
|
vala? ( introspection )
|
|
"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
>=dev-libs/glib-2.44.0:2
|
|
>=net-libs/libsoup-2.99.2:3.0
|
|
dev-libs/json-glib:0[introspection?]
|
|
dev-libs/libxml2:2=
|
|
app-misc/ca-certificates
|
|
introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= )
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="
|
|
dev-util/glib-utils
|
|
gtk-doc? ( >=dev-util/gi-docgen-2021.6 )
|
|
vala? ( $(vala_depend) )
|
|
"
|
|
|
|
PATCHES=(
|
|
# Fix some crash paths exposed by the libsoup3 port
|
|
# https://gitlab.gnome.org/GNOME/librest/-/merge_requests/30
|
|
"${FILESDIR}"/0001-rest_proxy_call_sync-bail-out-if-no-payload.patch
|
|
"${FILESDIR}"/0002-Handle-some-potential-problems-in-parsing-oauth2-acc.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
vala_setup
|
|
|
|
# The only two tests from the rest-extras suite (flickr and lastfm) require
|
|
# network access
|
|
if has network-sandbox ${FEATURES}; then
|
|
sed -i -e '/flickr/d' -e '/lastfm/d' tests/meson.build
|
|
fi
|
|
}
|
|
|
|
src_configure() {
|
|
local emesonargs=(
|
|
-Dca_certificates=true
|
|
-Dca_certificates_path="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt
|
|
$(meson_use introspection)
|
|
$(meson_use vala vapi)
|
|
-Dexamples=false
|
|
$(meson_use gtk-doc gtk_doc)
|
|
-Dsoup2=false
|
|
$(meson_use test tests)
|
|
)
|
|
meson_src_configure
|
|
}
|