SUMMARY="Native IDE for Haiku"
DESCRIPTION="Heidi is a useful IDE for Haiku where coders can edit, \
build, run, and debug their code projects all in one window."
HOMEPAGE="https://github.com/waddlesplash/Heidi"
COPYRIGHT="2014-2016 Augustin Cavalier"
LICENSE="MIT"
REVISION="1"
srcGitRev="ec676d2b45043b7a70d606f5fe2dbf05f3c45ed1"
SOURCE_URI="https://github.com/waddlesplash/Heidi/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="dca3b020f36e83d0dc83b10b1362b73c6f2240605122fefbfc554e49ad70df8c"
SOURCE_FILENAME="Heidi-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="Heidi-$srcGitRev"

# The software is in alpha version:
# Cannot be distributed yet.
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"

PROVIDES="
	heidi$secondaryArchSuffix = $portVersion
	app:Heidi = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libscintilla$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libscintilla$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	mkdir -p app
	make OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir
	cp app/Heidi $appsDir
	addAppDeskbarSymlink $appsDir/Heidi
}
