summaryrefslogtreecommitdiff
path: root/dev-libs/libxmlb
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-08-13 00:09:03 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-08-13 00:09:03 +0100
commit7a062968f262b368ca164bcd5286dfda1b3f37bc (patch)
tree59ee01f21b4435ad09e4aff36cab60d6b8320081 /dev-libs/libxmlb
parent8a60ccc0bb618fc402bc140a5cee6cf89addec51 (diff)
gentoo auto-resync : 13:08:2023 - 00:09:03
Diffstat (limited to 'dev-libs/libxmlb')
-rw-r--r--dev-libs/libxmlb/Manifest3
-rw-r--r--dev-libs/libxmlb/files/libxmlb-0.3.12-no_installed_tests.patch33
-rw-r--r--dev-libs/libxmlb/libxmlb-0.3.12.ebuild65
3 files changed, 101 insertions, 0 deletions
diff --git a/dev-libs/libxmlb/Manifest b/dev-libs/libxmlb/Manifest
index a4eeb5a1537f..6b8b5421e1be 100644
--- a/dev-libs/libxmlb/Manifest
+++ b/dev-libs/libxmlb/Manifest
@@ -1,4 +1,7 @@
+AUX libxmlb-0.3.12-no_installed_tests.patch 744 BLAKE2B d3e2a7a3be09049ebe407966a471d3798ee88902bf7c132708c8abb7353761e1c961e9a9d47c87458c87aed1a0f9ed6c294ffebfa0cc7fcb87311e175192bfa8 SHA512 3a8394b18d41a1219c26fa841829037a10293a2682da57c43d0f2932817dd16701cffc2906c84cba2e412712f852f7df8d0230cec6d3a0fb7dfd2e43ef24e217
AUX libxmlb-0.3.9-no_installed_tests.patch 574 BLAKE2B 6cee968b37e98e4cf49336f2974312453c12435655b00b5cf821b42ad17da304b6ed9f822478abe995b3e3467c541186c4a33433c536d3e6d6d531bed9338528 SHA512 ecc8e1d44400e3f168b53d5657e982b7457847954b05bcf0412e925767e4ca4efdb7e91ec3bcaba44b8ade01635166d8b6aa3683fc53d2e2165e71db4cdaf561
DIST libxmlb-0.3.11.tar.gz 124796 BLAKE2B 7f54e7c6370e0f3ebb9f94c9859f3d211127caa7d4d3ffbc2d11378ec5f0ee0cb508a1697635c30187643acdba279d493f9054d4f2a54f93ede1785f79b378ce SHA512 cebbfe1372d933a212a46ed95169099a642c1c48914b170c9f1de51fb017dccb22ca8dc9e2108fabb92fd0519cfba58da88b10bccc74a49a3e9e7adb9a1d9872
+DIST libxmlb-0.3.12.tar.gz 126267 BLAKE2B fa62cda9fd177b5a3fbc392153cdbc3a408e1751320014b77a93b9fc6058b0a56dd72d9b2153d66d92b549abc44f73f75762fd2c89da67a6f29d9f36b9828523 SHA512 0ad5fa43b3ae75bfcd52dd463df1e98723e2ef5e721dc6860d842e9155b213ccdd8c2c9eb211db512880e183a8d96f8256a2a289a6593634bd63040aa2ead1b9
EBUILD libxmlb-0.3.11.ebuild 1302 BLAKE2B 094bbf8e0f050f0276ffc73d25a9ce6d7e51be8228de9d2816183bf56de1eea3a1a41f3fb8ce3dfac8eb411200a426c02d5784859ed793d9e8225fb17d0671da SHA512 4d4129720bcc937d6ad290bbe9707fbe911dd66e636b3f258359cc5df1c68d8013f2eabdba791f692ee6503c06dc5077d9690a2163a8778e2567e023950ac09f
+EBUILD libxmlb-0.3.12.ebuild 1343 BLAKE2B 20de84273cb19421e2e4c1182380e615dfeb7fcf205ab6cf47c3391e699bee9e3c0987cb431955c286c7804ab4bf7fbac76d7ec3893781bedcc353441512a30f SHA512 9178ea659d840b663caf13f6620b95baf775eb33bde947fe8dd83e99cc50ae125d145fe6dd576294acae2212794c569bfc823079aa8e70dc70ff75ea033146ce
MISC metadata.xml 404 BLAKE2B 5a8abc0540042c1f19d535395eeaac03acc402617660e0419c89700d9142bb0fa96a9c50bb67ead640788d61a165214fa0e3ca3f6c930625f5b119190041da80 SHA512 301a232fd84aeed1efb47d886cd464f31be1148332d59654667a92df7626b2ce4405d5cbc07868c9ae68ec0ee8983a10c8783114ef9ee650d127667d3d7760a7
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
+}