SUMMARY="A full text indexing and search tool"
DESCRIPTION="Beacon is a full text indexing and search tool for Haiku"
HOMEPAGE="https://github.com/HaikuArchives/Beacon/"
COPYRIGHT="2009 Haiku Inc"
LICENSE="MIT"
REVISION="2"
srcGitRev="6e6e614582b0c452805d7b8c0701e77486cd9d4b"
SOURCE_URI="https://github.com/HaikuArchives/Beacon/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="20e11fdb16dce80413d0ec7e376b73c4a842dda1756f59d040c6abb87261be3d"
SOURCE_DIR="Beacon-$srcGitRev"

ARCHITECTURES="?all !x86_gcc2"

PROVIDES="
	beacon = $portVersion
	cmd:index_server
	cmd:indexutil
	cmd:searchapp
	"
REQUIRES="
	haiku
	lib:libclucene_core
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libclucene_core
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:jam
	"

BUILD()
{
	jam
}

INSTALL()
{
	mkdir $binDir $appsDir
	cp src/index_server/index_server $binDir
	cp src/indexutil/indexutil $binDir
	cp src/searchapp/searchapp $appsDir/Beacon
}
