SUMMARY="Man page viewer and translator"
DESCRIPTION="
Parse formatted man pages and man page source from most flavors of UNIX. \
Convert to HTML, ASCII, TkMan, DocBook, and other formats.
"
HOMEPAGE="http://www.sourceforge.net/project/polyglotman"
LICENSE="Artistic"
COPYRIGHT="2003 Thomas A. Phelps"
SOURCE_URI="http://downloads.sourceforge.net/project/polyglotman/polyglotman/3.2/rman-3.2.tar.gz"
CHECKSUM_SHA256="68a130696b251966db10a4774e2bc8083a0147b83f64c11e9bb4cd654da32d5f"
PATCHES="rman-3.2.patch"
REVISION="1"
ARCHITECTURES="x86_gcc2 ?x86"

PROVIDES="
	rman = $portVersion
	cmd:rman = $portVersion compat >= 3
	"

REQUIRES="
	haiku
	"
BUILD_REQUIRES="
	"
BUILD_PREREQUIRES="
	haiku_devel
	cmd:gcc
	cmd:make
	cmd:ld
	"

BUILD()
{
	make BINDIR=$binDir MANDIR=$manDir
}

INSTALL()
{
	mkdir -p $binDir $manDir
	make install BINDIR=$binDir MANDIR=$manDir
}
