From 792899d1c78d4c027f58af6dde2389cc8b96ff44 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Fri, 4 Jan 2019 20:38:14 +0100 Subject: [PATCH] astyle, bump version (#3496) --- dev-util/astyle/astyle-3.1.recipe | 54 +++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 dev-util/astyle/astyle-3.1.recipe diff --git a/dev-util/astyle/astyle-3.1.recipe b/dev-util/astyle/astyle-3.1.recipe new file mode 100644 index 000000000..98c6b65e4 --- /dev/null +++ b/dev-util/astyle/astyle-3.1.recipe @@ -0,0 +1,54 @@ +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" +COPYRIGHT="1998-2002 by Tal Davidson + 2006-2018 Jim Pattee" +LICENSE="GNU LGPL v3" +REVISION="1" +SOURCE_URI="https://downloads.sf.net/astyle/astyle_${portVersion}_linux.tar.gz" +CHECKSUM_SHA256="cbcc4cf996294534bb56f025d6f199ebfde81aa4c271ccbd5ee1c1a3192745d7" +SOURCE_DIR="astyle" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64 ?arm ?ppc" +if [ "$targetArchitecture" = x86_gcc2 ]; then +SECONDARY_ARCHITECTURES="x86" +fi + +# On x86_gcc2 we don't want to install the commands in bin//, but in bin/. +commandBinDir=$binDir +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandBinDir=$prefix/bin +fi + +PROVIDES=" + astyle$secondaryArchSuffix = $portVersion + cmd:astyle = $portVersion + " + +REQUIRES=" + haiku$secondaryArchSuffix + " + +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel + 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 +}