void-packages/srcpkgs/python-docutils/template

60 lines
1.9 KiB
Bash

# Template file for 'python-docutils'
pkgname=python-docutils
version=0.15.2
revision=1
archs=noarch
wrksrc="docutils-${version}"
build_style=python-module
pycompile_module="docutils"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Python2 documentation utilities"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="custom:Public Domain, BSD-2-Clause, GPL-3.0-or-later, Python-2.0"
homepage="http://docutils.sourceforge.net"
distfiles="${PYPI_SITE}/d/docutils/docutils-${version}.tar.gz"
checksum=a2aeea129088da402665e92e0b25b04b073c04b2dce4ab65caaa38b7ce2e1a99
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"
archs=noarch
depends="python3"
pycompile_module="docutils"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense COPYING.txt COPYING
}
}