diff --git a/dev-util/clazy/clazy-1.12.recipe b/dev-util/clazy/clazy-1.14.recipe similarity index 76% rename from dev-util/clazy/clazy-1.12.recipe rename to dev-util/clazy/clazy-1.14.recipe index f190c6644..7c3bf7bbd 100644 --- a/dev-util/clazy/clazy-1.12.recipe +++ b/dev-util/clazy/clazy-1.14.recipe @@ -4,11 +4,11 @@ semantics. You get more than 50 Qt related compiler warnings, ranging from \ unneeded memory allocations to misusage of API, including fix-its for \ automatic refactoring." HOMEPAGE="https://www.kdab.com" -COPYRIGHT="2016-2019 Sérgio Martins" +COPYRIGHT="2016-2025 Sérgio Martins" LICENSE="GNU LGPL v2" REVISION="1" SOURCE_URI="https://download.kde.org/stable/clazy/$portVersion/src/clazy-$portVersion.tar.xz" -CHECKSUM_SHA256="611749141d07ce1e006f8a1253f9b2dbd5b7b44d2d5322d471d62430ec2849ac" +CHECKSUM_SHA256="993f786dac668c29c4f357cb95c8a6ddca555ebbb94854efb9b570f683ad4d43" PATCHES="clazy-$portVersion.patchset" ARCHITECTURES="all !x86_gcc2" @@ -21,6 +21,8 @@ if [ "$targetArchitecture" = x86_gcc2 ]; then commandBinDir=$prefix/bin fi +clangVer="20" + PROVIDES=" clazy$secondaryArchSuffix = $portVersion cmd:clazy$commandSuffix = $portVersion @@ -35,10 +37,10 @@ REQUIRES=" BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel - devel:libLLVM_18$secondaryArchSuffix + devel:libLLVM_$clangVer$secondaryArchSuffix " BUILD_PREREQUIRES=" - cmd:clang_18 + cmd:clang_$clangVer cmd:cmake cmd:gcc$secondaryArchSuffix cmd:make @@ -53,15 +55,19 @@ TEST_REQUIRES=" BUILD() { - cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \ + cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \ $cmakeDirArgs \ - -DCMAKE_INSTALL_BINDIR=$commandBinDir -Wno-dev - make -Cbuild $jobArgs + -DCMAKE_INSTALL_BINDIR=$commandBinDir \ + -DCMAKE_SKIP_RPATH=YES \ + -DCMAKE_AUTOGEN_PARALLEL=1 \ + -Wno-dev + + make -C build $jobArgs } INSTALL() { - make -Cbuild install + make -C build install rm -rf $prefix/share } diff --git a/dev-util/clazy/patches/clazy-1.12.patchset b/dev-util/clazy/patches/clazy-1.14.patchset similarity index 84% rename from dev-util/clazy/patches/clazy-1.12.patchset rename to dev-util/clazy/patches/clazy-1.14.patchset index 9ac068186..566fe4b0b 100644 --- a/dev-util/clazy/patches/clazy-1.12.patchset +++ b/dev-util/clazy/patches/clazy-1.14.patchset @@ -1,14 +1,14 @@ -From 39aec41779f45c74955a0e228e32cd8c797f03c5 Mon Sep 17 00:00:00 2001 +From dfb5cdd6deb37d32783c8f5fb044159c4821ce49 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Thu, 13 Jun 2024 13:50:31 +0200 Subject: Disable PCH for 32bit diff --git a/CMakeLists.txt b/CMakeLists.txt -index bd6a584..58e7251 100644 +index 3aab903..1ba8361 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -166,10 +166,12 @@ macro(add_clang_plugin name) +@@ -148,10 +148,12 @@ macro(add_clang_plugin name) add_library(${name} SHARED ${srcs}) @@ -22,20 +22,20 @@ index bd6a584..58e7251 100644 if(SYMBOL_FILE) set_target_properties(${name} PROPERTIES LINK_FlAGS "-exported_symbols_list ${SYMBOL_FILE}") -- -2.45.2 +2.48.1 -From cf44436d1935c4c62a817f387ce0ab0c399f1906 Mon Sep 17 00:00:00 2001 +From 0cf354eff6c3023d53d3691bfc2083f6cab1814b Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Sat, 6 Jul 2024 11:45:30 +0200 Subject: Silense deprecated warnings diff --git a/CMakeLists.txt b/CMakeLists.txt -index 58e7251..f31f645 100644 +index 1ba8361..c0eb275 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -70,7 +70,7 @@ if(MSVC) +@@ -60,7 +60,7 @@ if(MSVC) # disable trigger-happy warnings from Clang/LLVM headers set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4267 /wd4244 /wd4291 /wd4800 /wd4141 /wd4146 /wd4251") elseif(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") @@ -45,5 +45,5 @@ index 58e7251..f31f645 100644 set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-flat_namespace -Wl,-undefined -Wl,suppress") -- -2.45.2 +2.48.1