mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
* clazy, bump version (bump to LLVM18) * Update dev-util/clazy/patches/clazy-1.12.patchset Co-authored-by: Joachim Mairböck <j.mairboeck@gmail.com> --------- Co-authored-by: Joachim Mairböck <j.mairboeck@gmail.com>
73 lines
1.6 KiB
Bash
73 lines
1.6 KiB
Bash
SUMMARY="A plugin which allows clang to understand Qt semantics"
|
|
DESCRIPTION="clazy is a compiler plugin which allows clang to understand Qt \
|
|
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"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/clazy/$portVersion/src/clazy-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="611749141d07ce1e006f8a1253f9b2dbd5b7b44d2d5322d471d62430ec2849ac"
|
|
PATCHES="clazy-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
clazy$secondaryArchSuffix = $portVersion
|
|
cmd:clazy$commandSuffix = $portVersion
|
|
cmd:clazy_standalone$commandSuffix = $portVersion
|
|
lib:ClazyPlugin$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libclang_cpp$secondaryArchSuffix
|
|
lib:libLLVM$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libLLVM_18$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:clang_18
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:pod2man
|
|
cmd:readlink
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
cmd:python3
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DCMAKE_INSTALL_BINDIR=$commandBinDir -Wno-dev
|
|
make -Cbuild $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -Cbuild install
|
|
|
|
rm -rf $prefix/share
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make -Cbuild test
|
|
}
|