mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Merged in waddlesplash/haikuports (pull request #246)
Create recipe for Uncrustify.
This commit is contained in:
58
dev-util/uncrustify/uncrustify-0.60.recipe
Normal file
58
dev-util/uncrustify/uncrustify-0.60.recipe
Normal file
@@ -0,0 +1,58 @@
|
||||
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"
|
||||
SRC_URI="https://github.com/bengardner/uncrustify/archive/uncrustify-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="42c9f84340c5d6a0087037c96b4fe4b46955691e7038700dec98a2e4782b57a3"
|
||||
SOURCE_DIR="uncrustify-uncrustify-$portVersion"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86 ?x86_64"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
# x86_gcc2 is fine as primary target architecture as long as we're building
|
||||
# for a different secondary architecture.
|
||||
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
||||
else
|
||||
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
uncrustify$secondaryArchSuffix = $portVersion compat >= 0.60
|
||||
cmd:uncrustify = $portVersion compat >= 0.60
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:awk
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure --omit-dirs binDir ./configure --bindir=$prefix/bin
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
}
|
||||
Reference in New Issue
Block a user