SUMMARY="Paladin is a open source integrated development environment (IDE)"
DESCRIPTION="
Paladin is an open source integrated development environment (IDE) modeled \
after BeOS' BeIDE.
"
HOMEPAGE="http://paladin.sourceforge.net"
SRC_URI="git://github.com/HaikuArchives/Paladin"
REVISION="1"
LICENSE="MIT"
COPYRIGHT="2008-2010 DarkWyrm"

ARCHITECTURES="x86_gcc2 x86 x86_64"

PROVIDES="
	paladin = $portVersion
	app:paladin = $portVersion
	paledit = $portVersion
	app:paledit = $portVersion
	symbolfinder = $portVersion
	app:symbolfinder = $portVersion
	libhekkel = $portVersion
	lib:libhekkel = $portVersion
	rez = $portVersion
	cmd:rez = $portVersion
	ccache = $portVersion
	cmd:ccache = $portVersion
	fastdep = 0.16
	cmd:fastdep = 0.16
	"

REQUIRES="
	haiku >= $haikuVersion
	lib:libpcre
	lib:libz
	"

BUILD_REQUIRES="
	haiku_devel >= $haikuVersion
	devel:libpcre
	devel:libz
	"

BUILD_PREREQUIRES="
	cmd:make
	cmd:gcc
	cmd:ld
	cmd:jam
	cmd:bison
	cmd:flex
	"

USER_SETTINGS_FILE="settings/Paladin_settings"

SOURCE_DIR="Paladin"

BUILD()
{
	./buildsuite.sh 1
}

INSTALL()
{
	mkdir -p $appsDir/Paladin
	mkdir -p $libDir
	mkdir -p $binDir
	
	cp ccache/ccache $binDir
	cp fastdep-0.16/fastdep $binDir
	cp Paladin/Paladin $appsDir/Paladin/
	cp PalEdit/rez/rez $binDir
	cp PalEdit/generated/distro/PalEdit $appsDir/Paladin/
	cp PalEdit/generated/distro/lib/libhekkel.so $libDir
	cp -r PalEdit/generated/distro/Languages $appsDir/Paladin/
	cp -r PalEdit/generated/distro/Extensions $appsDir/Paladin/
	cp SymbolFinder/SymbolFinder $appsDir/Paladin/
	
	addAppDeskbarSymlink $appsDir/Paladin/Paladin Paladin
	addAppDeskbarSymlink $appsDir/Paladin/PalEdit PalEdit
	addAppDeskbarSymlink $appsDir/Paladin/SymbolFinder SymbolFinder
}
