From 22cc9ac43ef66053a16235aad97d0a83791e658d Mon Sep 17 00:00:00 2001 From: Kyle Ambroff-Kao Date: Sat, 11 Jan 2020 06:04:18 -0800 Subject: [PATCH] bear: Add recipe for 2.4.2 (#4529) --- dev-util/bear/bear-2.4.2.recipe | 58 +++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 dev-util/bear/bear-2.4.2.recipe diff --git a/dev-util/bear/bear-2.4.2.recipe b/dev-util/bear/bear-2.4.2.recipe new file mode 100644 index 000000000..41823c349 --- /dev/null +++ b/dev-util/bear/bear-2.4.2.recipe @@ -0,0 +1,58 @@ +SUMMARY="Automatically generate compilation database for Clang tooling" +DESCRIPTION="Bear records the flags passed to the compiler for each translation unit and \ +stores them in a JSON file. This file can be used by Clang's tooling interface \ +and programs like clang-check to process a translation unit.\ +\ +cmake supports the generation of JSON compilation databases out of the box. \ +For any other build system that does not support this, Bear can be used \ +instead to intercept the invocation of the compiler." +HOMEPAGE="https://github.com/rizsotto/Bear" +COPYRIGHT="2012-2019 by László Nagy" +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="https://github.com/rizsotto/Bear/archive/$portVersion.tar.gz" +CHECKSUM_SHA256="e80c0d622a8192a1ec0c0efa139e5767c6c4b1defe1c75fc99cf680c6d1816c0" +SOURCE_DIR="Bear-$portVersion" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64 ?arm" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + bear$secondaryArchSuffix = $portVersion + cmd:bear = $portVersion compat >= 3 + " +REQUIRES=" + haiku$secondaryArchSuffix + cmd:python2 + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " + +BUILD_PREREQUIRES=" + cmd:cmake + cmd:g++ + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:python2 + " + +BUILD() +{ + cmake . -DCMAKE_INSTALL_PREFIX=$prefix \ + -DCMAKE_BUILD_TYPE=Release + make $jobArgs +} + +INSTALL() +{ + make install + + mkdir -vp $manDir + cp -vrd $prefix/share/man/man1 $manDir + + mkdir -p $dataDir + mv -v $prefix/share $dataDir +}