SUMMARY="Docutils is an open-source text processing system"
DESCRIPTION="
Docutils is an open-source text processing system for processing plaintext \
documentation into useful formats, such as HTML, LaTeX, man-pages, \
open-document or XML. It includes reStructuredText, the easy to read, easy to \
use, what-you-see-is-what-you-get plaintext markup language.
"
HOMEPAGE="http://docutils.sourceforge.net/"
SOURCE_URI="http://sourceforge.net/projects/docutils/files/docutils/0.11/docutils-0.11.tar.gz"
CHECKSUM_SHA256="9af4166adf364447289c5c697bb83c52f1d6f57e77849abcccd6a4a18a5e7ec9"
COPYRIGHT="Günter Milde
	John Gruber
	Alex Fernández"
LICENSE="Public Domain
	BSD (2-clause)
	GNU GPL v3
	Python"
REVISION="1"
ARCHITECTURES="x86 x86_gcc2"

PROVIDES="
	docutils = $portVersion
	cmd:rst2html.py = $portVersion
	cmd:rst2latex.py = $portVersion
	cmd:rst2man.py = $portVersion
	cmd:rst2newlatex.py = $portVersion
	cmd:rst2odt_prepstyles.py = $portVersion
	cmd:rst2odt.py = $portVersion
	cmd:rst2pseudoxml.py = $portVersion
	cmd:rst2s5.py = $portVersion
	cmd:rst2xetex.py = $portVersion
	cmd:rst2xml.py = $portVersion
	cmd:rstpep2html.py = $portVersion
	"

REQUIRES="
	haiku
	cmd:python
	"

BUILD_REQUIRES=""
BUILD_PREREQUIRES="
	haiku_devel
	cmd:python
	"

BUILD()
{
	$portPackageLinksDir/cmd~python/bin/python setup.py build
}

INSTALL()
{
	$portPackageLinksDir/cmd~python/bin/python setup.py install \
		--prefix="$prefix" \
		--force
}
