mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-14 07:40:07 +02:00
60 lines
1.6 KiB
Bash
60 lines
1.6 KiB
Bash
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 Tal Davidson
|
|
2006-2018 Jim Pattee
|
|
2023 The Artistic Style Authors"
|
|
LICENSE="GNU LGPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://downloads.sf.net/astyle/astyle-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="0f32cb097dc121099cca420a0762c62297d5a5dbc8b994fc755cb47ff4c6c666"
|
|
PATCHES="astyle-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2 ?x86 ?arm ?ppc"
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
fi
|
|
|
|
# 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
|
|
cmd:astyle = $portVersion
|
|
"
|
|
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
cmd:make
|
|
cmd:g++$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
make -C build/gcc prefix=$prefix $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build/gcc install \
|
|
prefix=$prefix \
|
|
SYSCONF_PATH=$docDir \
|
|
INSTALL=install
|
|
|
|
mkdir -pv $dataDir/bash-completion/completions
|
|
cp -afv sh-completion/astyle.bash $dataDir/bash-completion/completions/astyle
|
|
|
|
mkdir -pv $dataDir/zsh/site-functions
|
|
cp -afv sh-completion/astyle.zsh $dataDir/zsh/site-functions/_astyle
|
|
}
|