astyle: Port version 2.05

This commit is contained in:
Alexander von Gluck IV
2014-12-09 00:56:58 +00:00
parent 10e8693868
commit 3e1aefa06d

View File

@@ -0,0 +1,67 @@
SUMMARY="A source code formatter and beautifier for C, C++, C# and Java"
DESCRIPTION="
Artistic Style is a filter written in C++ that automatically re-indents and \
re-formats C / C++ / C# / Java source files. It can be used from a command \
line, or it can be incorporated as classes in another C++ program.
"
HOMEPAGE="http://astyle.sourceforge.net"
SRC_URI="http://sourceforge.net/projects/astyle/files/astyle/astyle%20${portVersion}/astyle_${portVersion}_linux.tar.gz"
CHECKSUM_SHA256="da34eb1f8f12e6f50f1cf674944c0db70c91b203008e11be0f57aa8267823a39"
LICENSE="GNU LGPL v3"
COPYRIGHT="
1998-2002 by Tal Davidson \
2006-2013 Jim Pattee
"
REVISION="1"
ARCHITECTURES="x86 x86_64 arm ppc"
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"
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
astyle$secondaryArchSuffix = $portVersion
cmd:astyle$commandSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:make
cmd:g++$secondaryArchSuffix
"
SOURCE_DIR="astyle"
BUILD()
{
cd build/gcc
make prefix=$prefix
}
INSTALL()
{
cd build/gcc
make install \
prefix=$prefix \
SYSCONF_PATH=$docDir \
INSTALL=install
}