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="http://www.fossil-scm.org/" 
SOURCE_URI="https://www.fossil-scm.org/download/fossil-src-$portVersion.tar.gz"
CHECKSUM_SHA256="6295c48289456f09e86099988058a12148dbe0051b72d413b4dff7216d6a7f3e"
REVISION="1"
LICENSE="BSD (2-clause)"
COPYRIGHT="2007 D. Richard Hipp"

ARCHITECTURES="x86_gcc2 x86 x86_64"

PROVIDES="
	fossil = $portVersion
	cmd:fossil = $portVersion
	"
REQUIRES="
	haiku
	lib:libz
	lib:libssl
	"
BUILD_REQUIRES="
	haiku_devel
	devel:libz
	devel:libssl
	"
# tests require cmd:tclsh
BUILD_PREREQUIRES="
	cmd:make
	cmd:gcc
	"

SOURCE_DIR="fossil-src-$portVersion"

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

INSTALL()
{
	make install
}

TEST()
{
	make test
}
