SUMMARY="Revision Control System"
DESCRIPTION="The Revision Control System (RCS) manages multiple revisions \
of files.  RCS automates the storing, retrieval, logging, identification, \
and merging of revisions.  RCS is useful for text that is revised \
frequently, including source code, programs, documentation, graphics, \
papers, and form letters.

RCS is (mostly) deprecated now. Unless you have an existing RCS repository \
that you need to access, using Subversion or Git is preferred."
HOMEPAGE="http://www.gnu.org/software/rcs/"
COPYRIGHT="1986-2014 Free Software Foundation, Inc."
LICENSE="GNU GPL v1
	GNU LGPL v2"
SOURCE_URI="https://ftp.gnu.org/gnu/rcs/rcs-$portVersion.tar.xz"
CHECKSUM_SHA256="063d5a0d7da1821754b80c639cdae2c82b535c8ff4131f75dc7bbf0cd63a5dff"
REVISION="1"
ARCHITECTURES="x86 ?x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
    # x86_gcc2 is fine as primary target architecture as long as we're building
    # for a different secondary architecture.
    ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
    ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	rcs$secondaryArchSuffix = $portVersion compat >= 5.9
	cmd:ci = $portVersion compat >= 5.9
	cmd:co = $portVersion compat >= 5.9
	cmd:ident = $portVersion compat >= 5.9
	cmd:merge = $portVersion compat >= 5.9
	cmd:rcs = $portVersion compat >= 5.9
	cmd:rcsclean = $portVersion compat >= 5.9
	cmd:rcsdiff = $portVersion compat >= 5.9
	cmd:rcsmerge = $portVersion compat >= 5.9
	cmd:rlog = $portVersion compat >= 5.9
	"
REQUIRES="
	haiku$secondaryArchSuffix
	cmd:ed
	cmd:awk
	cmd:diff
	"
BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	cmd:make
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:ed
	cmd:awk
	cmd:diff
	cmd:soelim
	"

BUILD()
{
	runConfigure --omit-dirs binDir ./configure --bindir=$prefix/bin
	make $jobArgs
}

INSTALL()
{
	make install
}
