mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
56 lines
1.4 KiB
Bash
56 lines
1.4 KiB
Bash
SUMMARY="A highly configurable, easily modifiable source code beautifier"
|
|
DESCRIPTION="\
|
|
* Ident code, aligning on parens, assignments, etc
|
|
* Align on '=' and variable definitions
|
|
* Align structure initializers
|
|
* Align #define stuff
|
|
* Align backslash-newline stuff
|
|
* Reformat comments (a little bit)
|
|
* Fix inter-character spacing
|
|
* Add or remove parens on return statements
|
|
* Add or remove braces on single-statement if/do/while/for statements
|
|
* Supports embedded SQL 'EXEC SQL' stuff
|
|
* Highly configurable - 454 configurable options!"
|
|
HOMEPAGE="http://uncrustify.sourceforge.net/"
|
|
COPYRIGHT="2005-2014 Ben Gardner"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/uncrustify/uncrustify/archive/uncrustify-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="d6fff70bc7823fac4c77013055333b79a4839909094e8eee8a14ee8f1777374e"
|
|
SOURCE_DIR="uncrustify-uncrustify-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
uncrustify$secondaryArchSuffix = $portVersion
|
|
cmd:uncrustify$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:python3
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build && cd build
|
|
cmake .. $cmakeDirArgs -DCMAKE_CXX_FLAGS="-D_BSD_SOURCE"
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
}
|