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>
82 lines
1.7 KiB
Bash
82 lines
1.7 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 meson python-any-r1 vala xdg-utils
|
|
|
|
DESCRIPTION="Library and tool for reading and writing Jcat files"
|
|
HOMEPAGE="https://github.com/hughsie/libjcat"
|
|
SRC_URI="https://github.com/hughsie/libjcat/releases/download/${PV}/${P}.tar.xz"
|
|
|
|
LICENSE="LGPL-2.1+"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~arm arm64 ~loong ppc64 ~riscv x86"
|
|
IUSE="+ed25519 +gpg gtk-doc +introspection +man +pkcs7 test vala"
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
dev-libs/glib:2
|
|
dev-libs/json-glib:=
|
|
ed25519? ( net-libs/gnutls:= )
|
|
gpg? (
|
|
app-crypt/gpgme:=
|
|
dev-libs/libgpg-error
|
|
)
|
|
introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= )
|
|
pkcs7? ( net-libs/gnutls:= )
|
|
vala? ( dev-lang/vala:= )
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="
|
|
virtual/pkgconfig
|
|
$(python_gen_any_dep '
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
')
|
|
gtk-doc? ( dev-util/gtk-doc )
|
|
man? ( sys-apps/help2man )
|
|
test? ( net-libs/gnutls[tools] )
|
|
"
|
|
|
|
python_check_deps() {
|
|
python_has_version -b "dev-python/setuptools[${PYTHON_USEDEP}]"
|
|
}
|
|
|
|
pkg_setup() {
|
|
use vala && vala_setup
|
|
}
|
|
|
|
src_prepare() {
|
|
xdg_environment_reset
|
|
default
|
|
}
|
|
|
|
src_configure() {
|
|
local emesonargs=(
|
|
$(meson_use ed25519)
|
|
$(meson_use gtk-doc gtkdoc)
|
|
$(meson_use gpg)
|
|
$(meson_use introspection)
|
|
$(meson_use man)
|
|
$(meson_use pkcs7)
|
|
$(meson_use test tests)
|
|
$(meson_use vala vapi)
|
|
)
|
|
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 -rf \
|
|
"${ED}"/usr/libexec/installed-tests \
|
|
"${ED}"/usr/share/installed-tests \
|
|
|| die
|
|
fi
|
|
}
|