SUMMARY="An open source integrated development environment (IDE)"
DESCRIPTION="Paladin is an open source integrated development environment (IDE) \
modeled after BeOS' BeIDE.

Paladin's feature set includes:

- Command-line build support
- Multithreaded builds
- Revision control-friendly project files
- More run options for projects
- Explicit support for debugging with gdb under Haiku
- Bundled helper tools
- Streamlined project settings
- Out-of-the-box support for Lex and Yacc
- Support for text and binary resource files
- Projects can include notes and other files that aren't source code
- Project templates
- Out-of-the-box makefile generation
- Integrated source code management
- 1-click project backups
"
HOMEPAGE="http://github.com/HaikuArchives/Paladin"
SOURCE_URI="git://github.com/HaikuArchives/Paladin#dd61cdf"
REVISION="5"
LICENSE="MIT"
COPYRIGHT="2001-2010 DarkWyrm
	       2014 John Scipione
	       "

ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86 x86_64"

PROVIDES="
	paladin = $portVersion
	app:Paladin
	app:SymbolFinder
	cmd:luagrep
	cmd:luare
	"

REQUIRES="
	haiku$secondaryArchSuffix
	lib:libpcre$secondaryArchSuffix
	lib:libz$secondaryArchSuffix
	cmd:lua
	"

BUILD_REQUIRES="
	devel:libpcre$secondaryArchSuffix
	devel:libz$secondaryArchSuffix
	"

BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel
	cmd:gcc$secondaryArchSuffix
	cmd:ld
	cmd:find
	"

USER_SETTINGS_FILES="settings/Paladin_settings"

SOURCE_DIR="Paladin"

BUILD()
{
	./buildsuite.sh $jobs
}

INSTALL()
{
	mkdir -p $appsDir/Paladin $appsDir/Paladin/Documentation
	mkdir -p $binDir

	cp -r Documentation $appsDir/Paladin
	rm $appsDir/Paladin/Documentation/KeltFont.zip
	cp -r Paladin/Paladin Paladin/Templates $appsDir/Paladin/
	cp SymbolFinder/SymbolFinder $appsDir/Paladin/
	cp luagrep luare $binDir

	addAppDeskbarSymlink $appsDir/Paladin/Paladin Paladin
}
