SUMMARY="Concurrent Versions System"
DESCRIPTION="
CVS is a version control system, an important component of Source \
Configuration Management (SCM). Using it, you can record the history of \
sources files, and documents. It fills a similar role to the free software \
RCS, PRCS, and Aegis packages.
CVS is a production quality system in wide use around the world, including \
many free software projects.
While CVS stores individual file history in the same format as RCS, it offers \
the following significant advantages over RCS:
* It can run scripts which you can supply to log CVS operations or enforce \
site-specific polices.
* Client/server CVS enables developers scattered by geography or slow modems \
to function as a single team. The version history is stored on a single \
central server and the client machines have a copy of all the files that the \
developers are working on. Therefore, the network between the client and the \
server must be up to perform CVS operations (such as checkins or updates) but \
need not be up to edit or manipulate the current versions of the files. \
Clients can perform all the same operations which are available locally.
* In cases where several developers or teams want to each maintain their own \
version of the files, because of geography and/or policy, CVS's vendor \
branches can import a version from another team (even if they don't use CVS), \
and then CVS can merge the changes from the vendor branch with the latest \
files if that is what is desired.
* Unreserved checkouts, allowing more than one developer to work on the same \
files at the same time.
* CVS provides a flexible modules database that provides a symbolic mapping of \
names to components of a larger software distribution. It applies names to \
collections of directories and files. A single command can manipulate the \
entire collection.
* CVS servers run on most unix variants, and clients for Windows NT/95, OS/2 \
and VMS are also available. CVS will also operate in what is sometimes called \
server mode against local repositories on Windows 95/NT.
"
HOMEPAGE="http://www.nongnu.org/cvs/"
COPYRIGHT="1986-2005 Free Software Foundation, Inc."
LICENSE="GNU GPL v1
	GNU LGPL v2"
SRC_URI="ftp://ftp.ru.debian.org/gentoo-distfiles/distfiles/cvs-1.12.13.1.tar.bz2"
CHECKSUM_MD5="cfd07b224956daaed53fb3063bece1bf"
REVISION="6"
ARCHITECTURES="x86_gcc2 x86 x86_64"

PATCHES="cvs-1.12.13.1.patch"

PROVIDES="
	cvs = $portVersion compat >= 1.12
	cmd:cvs = $portVersion compat >= 1.12
	cmd:cvsbug = $portVersion compat >= 1.12
	cmd:rcs2log = $portVersion compat >= 1.12
	"
REQUIRES="
	haiku >= $haikuVersion
	cmd:nano
	cmd:perl
	lib:libz
	"
BUILD_REQUIRES="
	cmd:perl
	devel:libz >= 1.1.4
	"
BUILD_PREREQUIRES="
	haiku_devel >= $haikuVersion
	cmd:gcc
	cmd:ld
	cmd:libtoolize
	cmd:make
	cmd:nano
	"


BUILD()
{
	libtoolize --force --copy --install
	PERL=$portPackageLinksDir/cmd~perl/bin/perl \
	runConfigure ./configure --enable-rootcommit \
		--with-external-zlib
	make $jobArgs
}

INSTALL()
{
	make install
}
