SUMMARY="New way to create opendocument compatible books/documents"
DESCRIPTION="
This is an attempt to create a new way to create documents or books. It moves \
away from the WYSIWYG paradigm of microsoft word, openoffice, etc. etc. etc. \
It takes a more keyboard only, thought flowing and typing markup language, \
object oriented approach where a user who has ideas or thoughts can jot these \
down and have them go into a list. to build their document/book, they would \
then order the list of thoughts, images, tables, etc. into the correct order \
and preview/publish their book."
HOMEPAGE="http://code.google.com/p/masterpiece/"
COPYRIGHT="2010-2012 Pasquale J. Rinaldi, Jr."
LICENSE="MIT"
REVISION="2"
SOURCE_URI="svn+http://masterpiece.googlecode.com/svn/trunk#r742"
PATCHES="masterpiece-r742.patch"

ARCHITECTURES="?all x86_gcc2 !x86"
SECONDARY_ARCHITECTURES="x86_gcc2 !x86"

PROVIDES="
	masterpiece$secondaryArchSuffix = $portVersion
	app:MasterPiece = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:liblayout
	lib:libpython2.7
	lib:libsqlite3$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libpython2.7
	devel:libsqlite3$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	make BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY` \
		OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir

	cp objects/MasterPiece $appsDir
	addAppDeskbarSymlink $appsDir/MasterPiece
}
