mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-09 00:07:57 +03: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: ae37e3f389808700bd0f4343ee04888f0ef179d2
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>
74 lines
1.6 KiB
Bash
74 lines
1.6 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{10..13} )
|
|
|
|
inherit meson python-any-r1
|
|
|
|
DESCRIPTION="Library to help create and query binary XML blobs"
|
|
HOMEPAGE="https://github.com/hughsie/libxmlb"
|
|
SRC_URI="https://github.com/hughsie/libxmlb/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
LICENSE="LGPL-2.1+"
|
|
SLOT="0/2" # libxmlb.so version
|
|
|
|
KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv x86"
|
|
IUSE="doc introspection +lzma stemmer test +zstd"
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
dev-libs/glib:2
|
|
lzma? ( app-arch/xz-utils )
|
|
stemmer? ( dev-libs/snowball-stemmer:= )
|
|
zstd? ( app-arch/zstd:= )
|
|
"
|
|
DEPEND="
|
|
${RDEPEND}
|
|
doc? ( dev-util/gtk-doc )
|
|
introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2 )
|
|
"
|
|
BDEPEND="
|
|
${PYTHON_DEPS}
|
|
virtual/pkgconfig
|
|
introspection? (
|
|
$(python_gen_any_dep 'dev-python/setuptools[${PYTHON_USEDEP}]')
|
|
)
|
|
"
|
|
DOCS=( NEWS README.md )
|
|
|
|
python_check_deps() {
|
|
if use introspection ; then
|
|
python_has_version -b "dev-python/setuptools[${PYTHON_USEDEP}]"
|
|
else
|
|
return 0
|
|
fi
|
|
}
|
|
|
|
pkg_setup() {
|
|
python-any-r1_pkg_setup
|
|
}
|
|
|
|
src_configure() {
|
|
local emesonargs=(
|
|
$(meson_feature lzma)
|
|
$(meson_feature zstd)
|
|
$(meson_use doc gtkdoc)
|
|
$(meson_use introspection)
|
|
$(meson_use stemmer)
|
|
$(meson_use test tests)
|
|
)
|
|
meson_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
meson_src_install
|
|
|
|
if use test; then
|
|
# Preventing tests from being installed in the first place is a moving target,
|
|
# just axe them all afterwards.
|
|
rm -r "${ED}"/usr/{libexec,share}/installed-tests || die
|
|
fi
|
|
}
|