diff options
author | Brandon Bergren <git@bdragon.rtk0.net> | 2019-04-06 21:58:09 -0500 |
---|---|---|
committer | Brandon Bergren <git@bdragon.rtk0.net> | 2019-04-06 21:59:00 -0500 |
commit | 64d7aa8301c599bf348897882e50f2a94d7b60df (patch) | |
tree | 8799e43393728de837605821b7133e99086b9a81 /user/py3-sphinx | |
parent | f900125406ef285e9234a64575800b6b315c7578 (diff) | |
download | packages-64d7aa8301c599bf348897882e50f2a94d7b60df.tar.gz packages-64d7aa8301c599bf348897882e50f2a94d7b60df.tar.bz2 packages-64d7aa8301c599bf348897882e50f2a94d7b60df.tar.xz packages-64d7aa8301c599bf348897882e50f2a94d7b60df.zip |
Add py3-sphinx and its dependencies.
This will be needed in the future to build qemu-doc for qemu 4.0.
Diffstat (limited to 'user/py3-sphinx')
-rw-r--r-- | user/py3-sphinx/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/user/py3-sphinx/APKBUILD b/user/py3-sphinx/APKBUILD new file mode 100644 index 000000000..8fe5a9944 --- /dev/null +++ b/user/py3-sphinx/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Brandon Bergren <git@bdragon.rtk0.net> +# Maintainer: Brandon Bergren <git@bdragon.rtk0.net> +pkgname=py3-sphinx +_pkgname=Sphinx +pkgver=2.0.0 +pkgrel=1 +pkgdesc="Sphinx Python Documentation Generator" +url="https://pypi.python.org/pypi/Sphinx" +arch="noarch" +options="!check" # Some latex tests failing on 2.0.0 due to translation bug, see https://github.com/sphinx-doc/sphinx/pull/6218 +# Main software is BSD-2-Clause. +license="BSD-2-Clause AND BSD-3-Clause AND MIT" +depends="python3 py3-alabaster py3-babel py3-pygments py3-docutils py3-imagesize py3-jinja2 py3-packaging py3-pyparsing py3-requests py3-snowballstemmer py3-tz py3-sphinxcontrib-applehelp py3-sphinxcontrib-devhelp py3-sphinxcontrib-htmlhelp py3-sphinxcontrib-jsmath py3-sphinxcontrib-qthelp py3-sphinxcontrib-serializinghtml imagemagick" +makedepends="python3-dev" +checkdepends="py3-pytest py3-docutils py3-html5lib" +source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python3 setup.py build +} + +check() { + cd "$builddir" + # settings borrowed from tox.ini. + PYTHONPATH="build/lib:$PYTHONPATH" PYTHONWARNINGS="all,ignore::ImportWarning:pkgutil,ignore::ImportWarning:importlib._bootstrap,ignore::ImportWarning:importlib._bootstrap_external,ignore::ImportWarning:pytest_cov.plugin,ignore::DeprecationWarning:site,ignore::DeprecationWarning:_pytest.assertion.rewrite,ignore::DeprecationWarning:_pytest.fixtures,ignore::DeprecationWarning:distutils" pytest --durations 25 +} + +package() { + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +doc() { + cd "$builddir" + + local docdir="$subpkgdir/usr/share/doc/$pkgname" + mkdir -p "$docdir" + cp -R docs/* "$docdir" + cp *.txt "$docdir" + + local licdir="$subpkgdir/usr/share/licenses/$pkgname" + mkdir -p "$licdir" + rm -f licenses/docutils.conf + cp licenses/* "$licdir" +} + +sha512sums="283e18514262366e0aebc23f1e48ce7fa3591e48572525c832f96ec4f943463e19904c67ab06a4b3244119750c63dc496d4a4142e1e4a55e0b4ebdc748cf6aa6 py3-sphinx-2.0.0.tar.gz" |