From b68b3cf16f3c3a711db8b3b80ecfb64d0e9e09a5 Mon Sep 17 00:00:00 2001 From: Sebastian Silva Date: Mon, 30 Jun 2025 03:34:08 -0500 Subject: [PATCH] Contribute libxmlb (#12502) * Contribute libxmlb * Fixes from @Begasus * Update dev-libs/libxmlb/libxmlb-0.3.22.recipe Contributed by @Begasus Co-authored-by: Schrijvers Luc * recipe cleanups --------- Co-authored-by: Schrijvers Luc --- dev-libs/libxmlb/libxmlb-0.3.22.recipe | 88 ++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 dev-libs/libxmlb/libxmlb-0.3.22.recipe diff --git a/dev-libs/libxmlb/libxmlb-0.3.22.recipe b/dev-libs/libxmlb/libxmlb-0.3.22.recipe new file mode 100644 index 000000000..0f2cf4a67 --- /dev/null +++ b/dev-libs/libxmlb/libxmlb-0.3.22.recipe @@ -0,0 +1,88 @@ +SUMMARY="A library to help create and query binary XML blobs" +DESCRIPTION="libxmlb is a small helper library that is used to create and \ +query the binary XML-like blobs that are used by AppStream." +HOMEPAGE="https://github.com/hughsie/libxmlb" +COPYRIGHT="2018*2025 Richard Hughes" +LICENSE="GNU LGPL v2.1" +REVISION="1" +SOURCE_URI="https://github.com/hughsie/libxmlb/archive/refs/tags/$portVersion.tar.gz" +CHECKSUM_SHA256="103684ed37a45d0aed8f95e97294ed26945b5aeebf44734f3994081eecebb11c" +SOURCE_FILENAME="libxmlb-$portVersion.tar.gz" +SOURCE_DIR="libxmlb-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="2.0.0" +libVersionCompat="$libVersion compat >= ${libVersion%.*}" + +PROVIDES=" + libxmlb$secondaryArchSuffix = $portVersion + lib:libxmlb$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libglib_2.0$secondaryArchSuffix + lib:libgobject_2.0$secondaryArchSuffix + lib:libgio_2.0$secondaryArchSuffix + lib:liblzma$secondaryArchSuffix + lib:libzstd$secondaryArchSuffix + " + +PROVIDES_devel=" + libxmlb${secondaryArchSuffix}_devel = $portVersion + devel:libxmlb$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + libxmlb$secondaryArchSuffix == $portVersion base + devel:libffi$secondaryArchSuffix + devel:libglib_2.0$secondaryArchSuffix + devel:libpcre2_8$secondaryArchSuffix + devel:liblzma$secondaryArchSuffix + devel:libzstd$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libgirepository_1.0$secondaryArchSuffix + devel:libglib_2.0$secondaryArchSuffix + devel:liblzma$secondaryArchSuffix + devel:libzstd$secondaryArchSuffix + " + +BUILD_PREREQUIRES=" + cmd:cmake + cmd:diff + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:meson + cmd:ninja + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + meson setup Build \ + --buildtype=release \ + --prefix="$prefix" \ + --libdir="$libDir" \ + --includedir="$includeDir" \ + -D gtkdoc=false \ + -D cli=false + + ninja -C Build +} + +INSTALL() +{ + ninja -C Build install + + rm -r {$libDir,$dataDir}/installed-tests/ + + prepareInstalledDevelLib \ + libxmlb + fixPkgconfig + + packageEntries devel \ + $developDir +}