39 lines
1.5 KiB
Bash
39 lines
1.5 KiB
Bash
# Template file for 'python3-Sphinx'
|
|
pkgname=python3-Sphinx
|
|
version=2.4.3
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc=Sphinx-${version}
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3-Jinja2 python3-docutils python3-Pygments
|
|
python3-snowballstemmer python3-Babel python3-alabaster python3-imagesize
|
|
python3-requests python3-packaging python3-sphinxcontrib-applehelp
|
|
python3-sphinxcontrib-devhelp python3-sphinxcontrib-htmlhelp
|
|
python3-sphinxcontrib-jsmath python3-sphinxcontrib-qthelp
|
|
python3-sphinxcontrib-serializinghtml"
|
|
checkdepends="$depends python3-html5lib python3-mypy ImageMagick gettext
|
|
python3-pytest"
|
|
short_desc="Python 3 documentation generator"
|
|
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
|
license="BSD-3-Clause"
|
|
homepage="http://sphinx-doc.org"
|
|
distfiles="${PYPI_SITE}/S/Sphinx/Sphinx-${version}.tar.gz"
|
|
checksum=ca762da97c3b5107cbf0ab9e11d3ec7ab8d3c31377266fd613b962ed971df709
|
|
alternatives="
|
|
sphinx:sphinx-apidoc:/usr/bin/sphinx-apidoc3
|
|
sphinx:sphinx-autogen:/usr/bin/sphinx-autogen3
|
|
sphinx:sphinx-build:/usr/bin/sphinx-build3
|
|
sphinx:sphinx-quickstart:/usr/bin/sphinx-quickstart3"
|
|
|
|
do_check() {
|
|
PYTHONPATH=$(pwd)/build/lib pytest
|
|
}
|
|
|
|
post_install() {
|
|
mv ${DESTDIR}/usr/bin/sphinx-apidoc ${DESTDIR}/usr/bin/sphinx-apidoc3
|
|
mv ${DESTDIR}/usr/bin/sphinx-autogen ${DESTDIR}/usr/bin/sphinx-autogen3
|
|
mv ${DESTDIR}/usr/bin/sphinx-build ${DESTDIR}/usr/bin/sphinx-build3
|
|
mv ${DESTDIR}/usr/bin/sphinx-quickstart ${DESTDIR}/usr/bin/sphinx-quickstart3
|
|
vlicense LICENSE
|
|
}
|