SUMMARY="A tool for distributed software configuration management"
DESCRIPTION="Fossil is a simple, high-reliability, distributed version \
control system like Git and Mercurial, but Fossil also supports distributed \
bug tracking, distributed wiki, and a distributed blog mechanism all in a \
single integrated package.

Additionally, Fossil also has a built-in and easy-to-use web interface that \
simplifies project tracking and promotes situational awareness."
HOMEPAGE="https://www.fossil-scm.org/"
COPYRIGHT="2007-2017 D. Richard Hipp"
LICENSE="BSD (2-clause)"
REVISION="3"
SOURCE_URI="https://www.fossil-scm.org/index.html/uv/download/fossil-src-$portVersion.tar.gz"
CHECKSUM_SHA256="81c19e81c4b2b60930bab3f2147b516525c855924ccc6d089748b0f5611be492"
SOURCE_DIR="Fossil_2017-01-16_205854_1669115ab9"

ARCHITECTURES="?all"

PROVIDES="
	fossil = $portVersion
	cmd:fossil = $portVersion
	"
REQUIRES="
	haiku
	lib:libssl
	lib:libz
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libssl
	devel:libz
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:make
	"

TEST_REQUIRES="
	cmd:tclsh
	"

BUILD()
{
	./configure --prefix=$prefix
	make
}

INSTALL()
{
	make install
	install -d $manDir/man1
	install -t $manDir/man1 -m 444 fossil.1
}

TEST()
{
	make test
}
