SUMMARY="An integrated development environment for yab"
DESCRIPTION="Yab allows fast prototyping with simple and clean code. yab \
contains a large number of BeAPI specific commands for GUI creation and much, \
much more.

yab wouldn't be complete without the yab-IDE, a powerful development \
environment, which of course is programmed in yab itself."
HOMEPAGE="https://software.besly.de/"
COPYRIGHT="2006-2015 Jan Bungeroth
	2015-2017 Jim Saxton
	2021-2022 Lorenz Glaser (lorglas) BeSly Software Solutions"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://github.com/lorglas/yab_ide/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="59917ca49233a2b5d4e143ff0972870e859bf2e6238d3a116bfce4ff88f1eed9"
SOURCE_FILENAME="yab_ide-$portVersion.tar.gz"
SOURCE_DIR="yab_ide-$portVersion"
ADDITIONAL_FILES="yab.hvif"

ARCHITECTURES="all !x86"
DISABLE_SOURCE_PACKAGE="YES"

PROVIDES="
	yab_ide = $portVersion
	app:yab_IDE = $portVersion
	"
REQUIRES="
	haiku
	#yab_buildfactory
	yab_documentation
	yab
	"
# devel:libz is needed both to build and for the BuildFactory to do its work.

BUILD_REQUIRES=""
BUILD_PREREQUIRES=""

INSTALL()
{
	mkdir -p $appsDir/yab-IDE
	cp -R * $appsDir/yab-IDE
	addattr -t icon -f $portDir/additional-files/yab.hvif "BEOS:ICON" "$appsDir/yab-IDE/yab-IDE.yab"
	chmod 777 $appsDir/yab-IDE/yab-IDE.yab
	DIR_YAB_DESKBAR="${dataDir}/deskbar/menu/Applications/yab"
	mkdir -p ${DIR_YAB_DESKBAR}
	addAppDeskbarSymlink ${appsDir}/yab-IDE/yab-IDE.yab "yab/yab-IDE"
	DIR_YAB_LOCALE="${dataDir}/locale/catalogs/"
	mkdir -p ${DIR_YAB_LOCALE}
	cp -R Language/x-vnd.yab-IDE ${DIR_YAB_LOCALE}
}
