python-Sphinx: use alternatives

This commit is contained in:
Alessio Sergi 2016-04-25 02:59:45 +02:00
parent 4665d43fd8
commit 9a8cad8835
1 changed files with 12 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'python-Sphinx'
pkgname=python-Sphinx
version=1.4.1
revision=1
revision=2
noarch=yes
wrksrc="Sphinx-${version}"
build_style=python-module
@ -24,15 +24,22 @@ license="2-clause-BSD"
distfiles="${PYPI_SITE}/S/Sphinx/Sphinx-${version}.tar.gz"
checksum=c6871a784d24aba9270b6b28541537a57e2fcf4d7c799410eba18236bc76d6bc
alternatives="
sphinx:sphinx-apidoc:/usr/bin/sphinx-apidoc2.7
sphinx:sphinx-autogen:/usr/bin/sphinx-autogen2.7
sphinx:sphinx-build:/usr/bin/sphinx-build2.7
sphinx:sphinx-quickstart:/usr/bin/sphinx-quickstart2.7"
post_install() {
for f in ${DESTDIR}/usr/bin/*; do
cp -f ${f}{,3.4}
replace_interpreter python ${f}
done
vlicense LICENSE
}
python3.4-Sphinx_package() {
alternatives="
sphinx:sphinx-apidoc:/usr/bin/sphinx-apidoc3.4
sphinx:sphinx-autogen:/usr/bin/sphinx-autogen3.4
sphinx:sphinx-build:/usr/bin/sphinx-build3.4
sphinx:sphinx-quickstart:/usr/bin/sphinx-quickstart3.4"
noarch=yes
depends="
python3.4-setuptools python3.4-docutils python3.4-Jinja2 python3.4-Pygments