diff options
author | Marek Szuba <marecki@gentoo.org> | 2023-08-12 20:54:41 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2023-08-12 22:07:03 +0100 |
commit | b2d9bc6ea0765f469a9131886770c571002938e8 (patch) | |
tree | a6484df00eaed26354d458ec3d97520286b436d6 /dev-libs | |
parent | dev-vcs/git-machete: drop 3.16.3 (diff) | |
download | gentoo-b2d9bc6ea0765f469a9131886770c571002938e8.tar.gz gentoo-b2d9bc6ea0765f469a9131886770c571002938e8.tar.bz2 gentoo-b2d9bc6ea0765f469a9131886770c571002938e8.zip |
dev-libs/libxmlb: add 0.3.12
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/libxmlb/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libxmlb/files/libxmlb-0.3.12-no_installed_tests.patch | 33 | ||||
-rw-r--r-- | dev-libs/libxmlb/libxmlb-0.3.12.ebuild | 65 |
3 files changed, 99 insertions, 0 deletions
diff --git a/dev-libs/libxmlb/Manifest b/dev-libs/libxmlb/Manifest index 48e922809d77..1f8bbc3b766e 100644 --- a/dev-libs/libxmlb/Manifest +++ b/dev-libs/libxmlb/Manifest @@ -1 +1,2 @@ DIST libxmlb-0.3.11.tar.gz 124796 BLAKE2B 7f54e7c6370e0f3ebb9f94c9859f3d211127caa7d4d3ffbc2d11378ec5f0ee0cb508a1697635c30187643acdba279d493f9054d4f2a54f93ede1785f79b378ce SHA512 cebbfe1372d933a212a46ed95169099a642c1c48914b170c9f1de51fb017dccb22ca8dc9e2108fabb92fd0519cfba58da88b10bccc74a49a3e9e7adb9a1d9872 +DIST libxmlb-0.3.12.tar.gz 126267 BLAKE2B fa62cda9fd177b5a3fbc392153cdbc3a408e1751320014b77a93b9fc6058b0a56dd72d9b2153d66d92b549abc44f73f75762fd2c89da67a6f29d9f36b9828523 SHA512 0ad5fa43b3ae75bfcd52dd463df1e98723e2ef5e721dc6860d842e9155b213ccdd8c2c9eb211db512880e183a8d96f8256a2a289a6593634bd63040aa2ead1b9 diff --git a/dev-libs/libxmlb/files/libxmlb-0.3.12-no_installed_tests.patch b/dev-libs/libxmlb/files/libxmlb-0.3.12-no_installed_tests.patch new file mode 100644 index 000000000000..ff58f30d12fc --- /dev/null +++ b/dev-libs/libxmlb/files/libxmlb-0.3.12-no_installed_tests.patch @@ -0,0 +1,33 @@ +--- a/data/meson.build ++++ b/data/meson.build +@@ -3,18 +3,6 @@ + input : 'libxmlb.test.in', + output : 'libxmlb.test', + configuration : conf, +- install: true, +- install_dir: installed_test_datadir, +- ) +- +- install_data([ +- 'test.desktop', +- 'test.quirk', +- 'test.xml', +- 'test.xml.gz.gz.gz', +- 'test.xml.xz', +- 'test.xml.zstd', +- ], +- install_dir: installed_test_bindir, ++ install: false, + ) + endif +--- a/src/meson.build ++++ b/src/meson.build +@@ -248,7 +248,7 @@ + c_args: [ + '-DSRCDIR="' + join_paths(meson.project_source_root(), 'data') + '"', + ], +- install : true, ++ install : false, + install_dir : installed_test_bindir + ) + test('xb-self-test', e, env : testdatadirs) diff --git a/dev-libs/libxmlb/libxmlb-0.3.12.ebuild b/dev-libs/libxmlb/libxmlb-0.3.12.ebuild new file mode 100644 index 000000000000..c6599b5571e7 --- /dev/null +++ b/dev-libs/libxmlb/libxmlb-0.3.12.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2023 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 stemmer test +zstd" + +RESTRICT="!test? ( test )" + +RDEPEND=" + app-arch/xz-utils + dev-libs/glib:2 + sys-apps/util-linux + 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-util/meson-0.47.0 + virtual/pkgconfig + introspection? ( + $(python_gen_any_dep 'dev-python/setuptools[${PYTHON_USEDEP}]') + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.3.12-no_installed_tests.patch +) + +python_check_deps() { + python_has_version -b "dev-python/setuptools[${PYTHON_USEDEP}]" +} + +pkg_setup() { + python-any-r1_pkg_setup +} + +src_configure() { + local emesonargs=( + $(meson_use doc gtkdoc) + $(meson_use introspection) + $(meson_use stemmer) + $(meson_use test tests) + $(meson_use zstd) + ) + meson_src_configure +} |