49 lines
1.6 KiB
Bash
49 lines
1.6 KiB
Bash
# Template file for 'python-Sphinx'
|
|
pkgname=python-Sphinx
|
|
version=1.7.4
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="Sphinx-${version}"
|
|
build_style=python-module
|
|
pycompile_module="sphinx"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools python-docutils python-Jinja2 python-Pygments
|
|
python-six python-Babel python-alabaster python-snowballstemmer python-imagesize
|
|
python-requests python-packaging python-sphinxcontrib-websupport python-typing"
|
|
short_desc="Python2 documentation generator"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="http://sphinx-doc.org/"
|
|
license="BSD-2-Clause"
|
|
distfiles="${PYPI_SITE}/S/Sphinx/Sphinx-${version}.tar.gz"
|
|
checksum=e9b1a75a3eae05dded19c80eb17325be675e0698975baae976df603b6ed1eb10
|
|
|
|
alternatives="
|
|
sphinx:sphinx-apidoc:/usr/bin/sphinx-apidoc2
|
|
sphinx:sphinx-autogen:/usr/bin/sphinx-autogen2
|
|
sphinx:sphinx-build:/usr/bin/sphinx-build2
|
|
sphinx:sphinx-quickstart:/usr/bin/sphinx-quickstart2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-Sphinx_package() {
|
|
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"
|
|
noarch=yes
|
|
depends="python3-setuptools python3-docutils python3-Jinja2 python3-Pygments
|
|
python3-six python3-Babel python3-alabaster python3-snowballstemmer
|
|
python3-imagesize python3-requests python3-packaging
|
|
python3-sphinxcontrib-websupport"
|
|
pycompile_module="sphinx"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/bin/sphinx-*3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|