diff options
Diffstat (limited to 'dev-libs/libxmlb')
| -rw-r--r-- | dev-libs/libxmlb/Manifest | 1 | ||||
| -rw-r--r-- | dev-libs/libxmlb/libxmlb-0.3.21.ebuild | 73 | ||||
| -rw-r--r-- | dev-libs/libxmlb/metadata.xml | 9 |
3 files changed, 82 insertions, 1 deletions
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..8b1c86a1b977 --- /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_{9,10,11,12,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 +} diff --git a/dev-libs/libxmlb/metadata.xml b/dev-libs/libxmlb/metadata.xml index d975a64bf64a..75cdda9bfb4c 100644 --- a/dev-libs/libxmlb/metadata.xml +++ b/dev-libs/libxmlb/metadata.xml @@ -1,7 +1,14 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> - + <upstream> + <maintainer status="active"> + <email>richard@hughsie.com</email> + <name>Richard Hughes</name> + </maintainer> + <changelog>https://github.com/hughsie/libxmlb/releases</changelog> + <bugs-to>https://github.com/hughsie/libxmlb/issues</bugs-to> + </upstream> <use> <flag name="stemmer">Enable language stemming support</flag> </use> |
