From 281bddb921e1682c28fecf53ae7d14ae087d7627 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Wed, 25 Oct 2023 06:22:17 +0000 Subject: [PATCH] econf, bump version (#9683) --- ...onf-0.3.5.recipe => libeconf-0.5.2.recipe} | 48 +++++++++++-------- 1 file changed, 29 insertions(+), 19 deletions(-) rename dev-libs/libeconf/{libeconf-0.3.5.recipe => libeconf-0.5.2.recipe} (50%) diff --git a/dev-libs/libeconf/libeconf-0.3.5.recipe b/dev-libs/libeconf/libeconf-0.5.2.recipe similarity index 50% rename from dev-libs/libeconf/libeconf-0.3.5.recipe rename to dev-libs/libeconf/libeconf-0.5.2.recipe index ac0c0d706..b87f69d4c 100644 --- a/dev-libs/libeconf/libeconf-0.3.5.recipe +++ b/dev-libs/libeconf/libeconf-0.5.2.recipe @@ -1,21 +1,22 @@ SUMMARY="Enhanced config file parser" -DESCRIPTION="libeconf is a highly flexible and configureable library -to parse and manage key=value configuration files. -It reads configuration file snippets from different directories -and builds the final configuration file for the application from it." +DESCRIPTION="libeconf is a highly flexible and configureable library to parse and manage \ +key=value configuration files. +It reads configuration file snippets from different directories and builds the final \ +configuration file for the application from it." HOMEPAGE="https://github.com/openSUSE/libeconf" COPYRIGHT="2019 SUSE LLC" LICENSE="MIT" REVISION="1" -SOURCE_URI="https://github.com/openSUSE/libeconf/releases/download/$portVersion/libeconf-$portVersion.tar.xz" -CHECKSUM_SHA256="62552e84616aa259cd3c6ac2d285b15fc89037fdbb7ed568714a491a57440807" -SOURCE_DIR="libeconf-$portVersion" +SOURCE_URI="https://github.com/openSUSE/libeconf/archive/refs/tags/v$portVersion.tar.gz" +CHECKSUM_SHA256="c9aa04b7ef1c7312a6e045184d15465db1985abb4058cc4c562fd33c9876bb34" +SOURCE_FILENAME="libeconf-v$portVersion.tar.gz" ARCHITECTURES="?all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" PROVIDES=" libeconf$secondaryArchSuffix = $portVersion + cmd:econftool = $portVersion lib:libeconf$secondaryArchSuffix = 0.3.1 " REQUIRES=" @@ -34,30 +35,39 @@ BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel " BUILD_PREREQUIRES=" - makefile_engine - cmd:awk - cmd:cmp - cmd:diff - cmd:make - cmd:pkg_config$secondaryArchSuffix + cmd:cmake + cmd:dot + cmd:doxygen cmd:gcc$secondaryArchSuffix + cmd:make " BUILD() { - runConfigure ./configure - make $jobArgs + export LDFLAGS="-lbsd" + cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \ + $cmakeDirArgs \ + -DBUILD_DOCUMENTATION=ON + make -C build $jobArgs + make -C build doc } INSTALL() { - make install + make -C build install - fixPkgconfig - prepareInstalledDevelLibs \ + prepareInstalledDevelLib \ libeconf + fixPkgconfig + packageEntries devel \ - $developDir + $developDir \ + $docDir \ + $libDir/cmake \ + $manDir/man3 + + # cleanup + rm -r $documentationDir/packages } TEST()