SUMMARY="Standard GNU documentation format tool"
DESCRIPTION="
Texinfo is the official documentation format of the GNU project.
"
HOMEPAGE="http://www.gnu.org/software/texinfo/"
COPYRIGHT="1992-2008 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
SOURCE_URI="http://ftp.gnu.org/gnu/texinfo/texinfo-4.13a.tar.gz"
CHECKSUM_SHA256="1303e91a1c752b69a32666a407e9fbdd6e936def4b09bc7de30f416301530d68"
REVISION="7"
ARCHITECTURES="x86_gcc2 x86 x86_64 arm"

PATCHES="texinfo-4.13a.patch"

PROVIDES="
	texinfo = $portVersion compat >= 4.13
	cmd:info = $portVersion compat >= 4.13
	cmd:makeinfo = $portVersion compat >= 4.13
	cmd:install_info = $portVersion compat >= 4.13
	cmd:texi2dvi = $portVersion compat >= 4.13
	cmd:texi2pdf = $portVersion compat >= 4.13
	cmd:texindex = $portVersion compat >= 4.13
	cmd:infokey = $portVersion compat >= 4.13
	cmd:pdftexi2dvi = $portVersion compat >= 4.13"
REQUIRES="
	haiku
	lib:libncurses
	"
BUILD_REQUIRES="
	devel:libncurses
	"
BUILD_PREREQUIRES="
	haiku_devel
	cmd:gcc
	cmd:ld
	cmd:libtoolize
	cmd:make
	cmd:grep
	cmd:sed
	"

SOURCE_DIR="texinfo-4.13"

BUILD()
{
	libtoolize --force --copy --install
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
	rm $libDir/charset.alias
	rmdir $libDir
}
