diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-10 12:32:09 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-10 12:32:09 +0100 |
commit | bcb1bf8297438e33e98fec6991ba68dec0f4dd7c (patch) | |
tree | 641656fce8ff13ec9fae86d68bd03073d9afc4a0 /dev-libs/libxmlb/libxmlb-0.3.18.ebuild | |
parent | fb0d4b003026d01b3d52956c7a0069b9363efff8 (diff) |
gentoo auto-resync : 10:04:2024 - 12:32:09
Diffstat (limited to 'dev-libs/libxmlb/libxmlb-0.3.18.ebuild')
-rw-r--r-- | dev-libs/libxmlb/libxmlb-0.3.18.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/dev-libs/libxmlb/libxmlb-0.3.18.ebuild b/dev-libs/libxmlb/libxmlb-0.3.18.ebuild new file mode 100644 index 000000000000..1d407706e7cc --- /dev/null +++ b/dev-libs/libxmlb/libxmlb-0.3.18.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +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 + sys-apps/util-linux + 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} + >=dev-build/meson-0.47.0 + virtual/pkgconfig + introspection? ( + $(python_gen_any_dep 'dev-python/setuptools[${PYTHON_USEDEP}]') + ) +" + +python_check_deps() { + python_has_version -b "dev-python/setuptools[${PYTHON_USEDEP}]" +} + +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 -rf \ + "${ED}"/usr/libexec/installed-tests \ + "${ED}"/usr/share/installed-tests \ + || die + fi +} |