mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
clazy: new recipe (#3540)
This commit is contained in:
committed by
Jérôme Duval
parent
b815125240
commit
0a9ca27ad8
60
dev-util/clazy/clazy-1.4.recipe
Normal file
60
dev-util/clazy/clazy-1.4.recipe
Normal file
@@ -0,0 +1,60 @@
|
||||
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-2018 Sérgio Martins"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/clazy/1.4/src/clazy-1.4.tar.xz"
|
||||
CHECKSUM_SHA256="3f5d5e148c9e9c4e43f095796261794da5385578d2375b12c9179d340d6d5a8a"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
PROVIDES="
|
||||
clazy$secondaryArchSuffix = $portVersion
|
||||
cmd:clazy
|
||||
cmd:clazy_standalone
|
||||
lib:ClangLazy = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libLLVM_7$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libLLVM_7$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:clang_7
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake -DCMAKE_INSTALL_PREFIX=$prefix \
|
||||
-DSHARE_INSTALL_DIR:STRING=$docDir \
|
||||
-DCMAKE_BUILD_TYPE=Release ..
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd build
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user