commit: 3b02d52fc1860ccbd86824afc64c46c4f02bef7b Author: Filip Kobierski <fkobi <AT> pm <DOT> me> AuthorDate: Tue Mar 4 09:10:16 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Sat Mar 8 07:06:18 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b02d52f
dev-libs/libxmlb: add 0.3.21 with small improvements - remove sys-apps/util linux DEPEND as it's in @system - remove meson DEPEND as it's provided by meson eclass - add DOCS - make rm more concise - remove --force from rm Signed-off-by: Filip Kobierski <fkobi <AT> pm.me> Closes: https://github.com/gentoo/gentoo/pull/40877 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> dev-libs/libxmlb/Manifest | 1 + dev-libs/libxmlb/libxmlb-0.3.21.ebuild | 73 ++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/dev-libs/libxmlb/Manifest b/dev-libs/libxmlb/Manifest index 9c7a39c36db5..6095ac438f32 100644 --- a/dev-libs/libxmlb/Manifest +++ b/dev-libs/libxmlb/Manifest @@ -1 +1,2 @@ DIST libxmlb-0.3.19.tar.gz 131490 BLAKE2B 1455e14a90f29865f304b16cbf0355966e7fd0766f8033cb2b2bc9fe28ad0a1266c1e06faaeb3677a683be56bc2fd9a64094d958f00358292fae55949229ab9a SHA512 07db2e99b2f78f6e99cccbf5ca250978955d5a9bf18aaa675b2292d1df438fc3f98a5d0e8ddcfa41e686782f35947fe92b54b520b4e6e278d6e5c871e7491271 +DIST libxmlb-0.3.21.tar.gz 132251 BLAKE2B 07140d840b7b807cff0c555c18ab33d9bd087d4af4e0bb47088b264a7d9dfff8929ab2820341ec99882c7239d77ee135b2c3592f465667c3bd62aa59396cf0f1 SHA512 5583e547e2e9077552902b5da87a83bfe4a9c723dbd0350b33014b34936feb4fa15fc4b4fedf23ce2aa2c870df57facc376b8549f7d03714df70fe5e738f61c8 diff --git a/dev-libs/libxmlb/libxmlb-0.3.21.ebuild b/dev-libs/libxmlb/libxmlb-0.3.21.ebuild new file mode 100644 index 000000000000..069a75637030 --- /dev/null +++ b/dev-libs/libxmlb/libxmlb-0.3.21.ebuild @@ -0,0 +1,73 @@ +# 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 ) +" +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 +}
