# Template file for 'python-docutils' pkgname=python-docutils version=0.14 revision=1 noarch=yes wrksrc="docutils-${version}" build_style=python-module hostmakedepends="python-setuptools python3-setuptools" depends="python" pycompile_module="docutils" short_desc="Python2 documentation utilities" maintainer="Alessio Sergi " homepage="http://docutils.sourceforge.net" license="Public Domain, 2-clause-BSD, GPL-3, PSF" distfiles="${PYPI_SITE}/d/docutils/docutils-${version}.tar.gz" checksum=51e64ef2ebfb29cae1faa133b3710143496eca21c530f3f71424d77687764274 alternatives=" docutils:rst2html:/usr/bin/rst2html.py2 docutils:rst2html4:/usr/bin/rst2html4.py2 docutils:rst2html5:/usr/bin/rst2html5.py2 docutils:rst2latex:/usr/bin/rst2latex.py2 docutils:rst2man:/usr/bin/rst2man.py2 docutils:rst2odt:/usr/bin/rst2odt.py2 docutils:rst2odt_prepstyles:/usr/bin/rst2odt_prepstyles.py2 docutils:rst2pseudoxml:/usr/bin/rst2pseudoxml.py2 docutils:rst2s5:/usr/bin/rst2s5.py2 docutils:rst2xetex:/usr/bin/rst2xetex.py2 docutils:rst2xml:/usr/bin/rst2xml.py2 docutils:rstpep2html:/usr/bin/rstpep2html.py2" post_install() { vlicense COPYING.txt COPYING } python3-docutils_package() { alternatives=" docutils:rst2html:/usr/bin/rst2html.py3 docutils:rst2html4:/usr/bin/rst2html4.py3 docutils:rst2html5:/usr/bin/rst2html5.py3 docutils:rst2latex:/usr/bin/rst2latex.py3 docutils:rst2man:/usr/bin/rst2man.py3 docutils:rst2odt:/usr/bin/rst2odt.py3 docutils:rst2odt_prepstyles:/usr/bin/rst2odt_prepstyles.py3 docutils:rst2pseudoxml:/usr/bin/rst2pseudoxml.py3 docutils:rst2s5:/usr/bin/rst2s5.py3 docutils:rst2xetex:/usr/bin/rst2xetex.py3 docutils:rst2xml:/usr/bin/rst2xml.py3 docutils:rstpep2html:/usr/bin/rstpep2html.py3" noarch=yes depends="python3" pycompile_module="docutils" replaces="python3.4-docutils>=0" short_desc="${short_desc/Python2/Python3}" pkg_install() { vmove usr/bin/*3 vmove usr/lib/python3* vlicense COPYING.txt COPYING } } python3.4-docutils_package() { noarch=yes build_style=meta short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" depends="python3-docutils>=${version}_${revision}" }