mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
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 <begasus@gmail.com> * recipe cleanups --------- Co-authored-by: Schrijvers Luc <begasus@gmail.com>
This commit is contained in:
88
dev-libs/libxmlb/libxmlb-0.3.22.recipe
Normal file
88
dev-libs/libxmlb/libxmlb-0.3.22.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user