sys-apps/osinfo-db-tools: Add patch to force libsoup:2.4

Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner
2022-10-09 19:25:37 -04:00
parent 7c143c4a16
commit fe2ea941d7
2 changed files with 20 additions and 0 deletions
@@ -0,0 +1,16 @@
diff --git a/meson.build b/meson.build
index 1cc5ff5..72b18a8 100644
--- a/meson.build
+++ b/meson.build
@@ -58,11 +58,7 @@ gobject_dep = dependency('gobject-2.0', version: glib_version_info)
# everything else
json_glib_dep = dependency('json-glib-1.0')
libarchive_dep = dependency('libarchive', version: '>= 3.0.0')
-libsoup_dep = dependency('libsoup-3.0', required: false)
-# fallback to libsoup2
-if not libsoup_dep.found()
libsoup_dep = dependency('libsoup-2.4')
-endif
libxml_dep = dependency('libxml-2.0', version: '>= 2.6.0')
# common dependencies
@@ -39,6 +39,10 @@ BDEPEND="
)
"
PATCHES=(
"${FILESDIR}"/${PV}-use-libsoup-2.4.patch
)
python_check_deps() {
use test && \
has_version "dev-python/pytest[${PYTHON_USEDEP}]" && \