mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
python-Sphinx: use alternatives
This commit is contained in:
parent
4665d43fd8
commit
9a8cad8835
1 changed files with 12 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-Sphinx'
|
# Template file for 'python-Sphinx'
|
||||||
pkgname=python-Sphinx
|
pkgname=python-Sphinx
|
||||||
version=1.4.1
|
version=1.4.1
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="Sphinx-${version}"
|
wrksrc="Sphinx-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
@ -24,15 +24,22 @@ license="2-clause-BSD"
|
||||||
distfiles="${PYPI_SITE}/S/Sphinx/Sphinx-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/S/Sphinx/Sphinx-${version}.tar.gz"
|
||||||
checksum=c6871a784d24aba9270b6b28541537a57e2fcf4d7c799410eba18236bc76d6bc
|
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() {
|
post_install() {
|
||||||
for f in ${DESTDIR}/usr/bin/*; do
|
|
||||||
cp -f ${f}{,3.4}
|
|
||||||
replace_interpreter python ${f}
|
|
||||||
done
|
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-Sphinx_package() {
|
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
|
noarch=yes
|
||||||
depends="
|
depends="
|
||||||
python3.4-setuptools python3.4-docutils python3.4-Jinja2 python3.4-Pygments
|
python3.4-setuptools python3.4-docutils python3.4-Jinja2 python3.4-Pygments
|
||||||
|
|
Loading…
Add table
Reference in a new issue