2013-10-28 20:50:40 +00:00
|
|
|
SUMMARY="A source code formatter and beautifier for C, C++, C# and Java"
|
|
|
|
DESCRIPTION="
|
2014-01-02 21:40:56 +00:00
|
|
|
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.
|
2013-10-28 20:50:40 +00:00
|
|
|
"
|
2015-08-04 15:59:44 +00:00
|
|
|
HOMEPAGE="http://astyle.sourceforge.net"
|
2014-12-09 00:56:58 +00:00
|
|
|
COPYRIGHT="
|
|
|
|
1998-2002 by Tal Davidson \
|
|
|
|
2006-2013 Jim Pattee
|
|
|
|
"
|
2018-09-28 02:59:41 +00:00
|
|
|
LICENSE="GNU LGPL v3"
|
2017-06-26 18:25:31 +00:00
|
|
|
REVISION="2"
|
2018-09-28 02:59:41 +00:00
|
|
|
SOURCE_URI="http://sourceforge.net/projects/astyle/files/astyle/astyle%20${portVersion}/astyle_${portVersion}_linux.tar.gz"
|
|
|
|
CHECKSUM_SHA256="da34eb1f8f12e6f50f1cf674944c0db70c91b203008e11be0f57aa8267823a39"
|
|
|
|
SOURCE_DIR="astyle"
|
|
|
|
|
2021-09-15 19:40:18 +00:00
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
2018-09-28 02:59:41 +00:00
|
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
2013-10-28 20:50:40 +00:00
|
|
|
SECONDARY_ARCHITECTURES="x86"
|
2018-09-28 02:59:41 +00:00
|
|
|
fi
|
2013-10-28 20:50:40 +00:00
|
|
|
|
|
|
|
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
|
|
|
|
commandBinDir=$binDir
|
|
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
|
|
commandBinDir=$prefix/bin
|
|
|
|
fi
|
|
|
|
|
|
|
|
PROVIDES="
|
|
|
|
astyle$secondaryArchSuffix = $portVersion
|
2018-09-28 02:59:41 +00:00
|
|
|
cmd:astyle = $portVersion
|
2013-10-28 20:50:40 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
REQUIRES="
|
2014-12-14 22:08:52 +00:00
|
|
|
haiku$secondaryArchSuffix
|
2013-10-28 20:50:40 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
BUILD_PREREQUIRES="
|
2014-12-14 22:08:52 +00:00
|
|
|
haiku${secondaryArchSuffix}_devel
|
2013-10-28 20:50:40 +00:00
|
|
|
cmd:make
|
|
|
|
cmd:g++$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
|
|
|
|
BUILD()
|
|
|
|
{
|
|
|
|
cd build/gcc
|
|
|
|
make prefix=$prefix
|
|
|
|
}
|
|
|
|
|
|
|
|
INSTALL()
|
|
|
|
{
|
|
|
|
cd build/gcc
|
|
|
|
make install \
|
|
|
|
prefix=$prefix \
|
|
|
|
SYSCONF_PATH=$docDir \
|
|
|
|
INSTALL=install
|
|
|
|
}
|