1SUMMARY="A highly configurable, easily modifiable source code beautifier" 2DESCRIPTION="\ 3 * Ident code, aligning on parens, assignments, etc 4 * Align on '=' and variable definitions 5 * Align structure initializers 6 * Align #define stuff 7 * Align backslash-newline stuff 8 * Reformat comments (a little bit) 9 * Fix inter-character spacing 10 * Add or remove parens on return statements 11 * Add or remove braces on single-statement if/do/while/for statements 12 * Supports embedded SQL 'EXEC SQL' stuff 13 * Highly configurable - 454 configurable options!" 14HOMEPAGE="http://uncrustify.sourceforge.net/" 15COPYRIGHT="2005-2016 Ben Gardner" 16LICENSE="GNU GPL v2" 17REVISION="1" 18SOURCE_URI="https://github.com/uncrustify/uncrustify/archive/uncrustify-$portVersion.tar.gz" 19CHECKSUM_SHA256="ecaf4c0adca14c36dfffa30bc28e69865115ecd602c90eb16a8cddccb41caad2" 20SOURCE_DIR="uncrustify-uncrustify-$portVersion" 21 22ARCHITECTURES="all !x86_gcc2" 23SECONDARY_ARCHITECTURES="x86" 24 25PROVIDES=" 26 uncrustify$secondaryArchSuffix = $portVersion 27 cmd:uncrustify$secondaryArchSuffix = $portVersion 28 " 29REQUIRES=" 30 haiku$secondaryArchSuffix 31 " 32 33BUILD_REQUIRES=" 34 haiku${secondaryArchSuffix}_devel 35 " 36BUILD_PREREQUIRES=" 37 cmd:cmake 38 cmd:gcc$secondaryArchSuffix 39 cmd:ld$secondaryArchSuffix 40 cmd:make 41 cmd:python3 42 " 43 44BUILD() 45{ 46 cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \ 47 $cmakeDirArgs \ 48 -DCMAKE_CXX_FLAGS="-D_BSD_SOURCE" 49 make -C build $jobArgs 50} 51 52INSTALL() 53{ 54 make -C build install 55} 56 57 58# WARNING: only run on systems with more than 8 GiB of RAM. 59# For reference (failed test was due to "out of ram"): 60# 61# 93% tests passed, 1 tests failed out of 14 62# Total Test time (real) = 340.20 sec 63# The following tests FAILED: 64# 12 - sources_format (Failed) 65TEST() 66{ 67 cd build 68 python3 ../scripts/run_ctest.py 69} 70