SUMMARY="Shell-script tool for converting XML files to various formats"
DESCRIPTION="xmlto is a shell-script tool for converting XML files to \
various formats. At the moment it supports conversion from docbook, \
xhtml1 and fo format to various output formats (awt, fo, htmlhelp, \
javahelp, mif, pdf, svg, xhtml, dvi, html, html-nochunks, man, \
pcl, ps, txt, xhtml-nochunks, epub). It uses \
passivetex(default)/fop/dblatex for processing, just provides easy \
to use command line frontend to make fine output without remembering \
many long options and searching for syntax. "
HOMEPAGE="https://fedorahosted.org/xmlto/"
SOURCE_URI="https://fedorahosted.org/releases/x/m/xmlto/xmlto-$portVersion.tar.gz"
CHECKSUM_SHA256="cfd8d2a26077be1d5566dfe22dd66099ae4f4600dea97d6e113a2cc5b8708977"
PATCHES="xmlto-$portVersion.patch"
REVISION="1"
COPYRIGHT="2009 Tim Waugh
	2013 Ondrej Vasik"
LICENSE="GNU GPL v2"

ARCHITECTURES="x86 x86_gcc2 x86_64"

PROVIDES="
	xmlto = $portVersion compat >= 0
	cmd:xmlto
	cmd:xmlif
	"

REQUIRES="
	haiku
	cmd:getopt
	cmd:xmllint
	cmd:xsltproc
	"

BUILD_PREREQUIRES="
	haiku_devel
	cmd:gcc
	cmd:awk
	cmd:getopt
	cmd:flex
	cmd:make
	"

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

INSTALL()
{
	make install
}
