SUMMARY="help2man produces simple manual pages from the ‘--help’ and ‘--version’ output of other commands."
DESCRIPTION="
help2man is a tool for automatically generating simple manual pages from \
program output.
This program is intended to provide an easy way for software authors to \
include a manual page in their distribution without having to maintain that \
document.
Given a program which produces reasonably standard ‘--help’ and ‘--version’ \
outputs, help2man can re-arrange that output into something which resembles a \
manual page.
"

HOMEPAGE="http://www.gnu.org/software/help2man/"
SRC_URI="http://ftpmirror.gnu.org/help2man/help2man-1.43.3.tar.gz"
CHECKSUM_MD5="a84868db7c139238df8add5d86a0b54f"

REVISION="1"

LICENSE="GNU GPL v3"
COPYRIGHT="1997-2013 Free Software Foundation"

ARCHITECTURES="x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	help2man = $portVersion
	cmd:help2man$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix >= $haikuVersion
	cmd:perl
	"
BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel >= $haikuVersion
	"
BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:make
	cmd:perl
	"
	
BUILD()
{
	runConfigure ./configure
	make
}

INSTALL()
{
	make install
}
