mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-31 09:52:57 +02:00
python-Sphinx: update to 1.3.5
This commit is contained in:
parent
dba6c65377
commit
543aaabb1b
1 changed files with 8 additions and 25 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'python-Sphinx'
|
# Template file for 'python-Sphinx'
|
||||||
pkgname=python-Sphinx
|
pkgname=python-Sphinx
|
||||||
version=1.3.4
|
version=1.3.5
|
||||||
revision=1
|
revision=1
|
||||||
noarch=yes
|
noarch=yes
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
@ -20,33 +20,17 @@ pycompile_module="sphinx"
|
||||||
short_desc="Python2 documentation generator"
|
short_desc="Python2 documentation generator"
|
||||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
homepage="http://sphinx-doc.org/"
|
homepage="http://sphinx-doc.org/"
|
||||||
license="BSD"
|
license="2-clause-BSD"
|
||||||
distfiles="${PYPI_SITE}/S/Sphinx/Sphinx-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/S/Sphinx/Sphinx-${version}.tar.gz"
|
||||||
checksum=8aacc3f34aa758751fdb44ab9238eab024c66b57d67200f9a35efebf0e368057
|
checksum=b7d133bb4990d010a2ad934c319b52d8a2156cb0491484f5e2a558619bc9ae04
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
cp -a ${wrksrc} /tmp/sphinx-2.7
|
sed -i '/^#!/d' sphinx/pycode/pgen2/token.py
|
||||||
cp -a ${wrksrc} /tmp/sphinx-3.4
|
|
||||||
mv /tmp/sphinx-{2.7,3.4} ${wrksrc}
|
|
||||||
|
|
||||||
cd sphinx-3.4
|
|
||||||
sed -i 's|\(sphinx-.*\) =|\13.4 =|' setup.py
|
|
||||||
sed -ri "s,'(sphinx-(:?|all|apidoc|build|quickstart))','\13.4'," doc/conf.py
|
|
||||||
sed -i 's,#! /usr/bin/env python,&3.4,' sphinx/pycode/pgen2/token.py
|
|
||||||
}
|
}
|
||||||
do_build() {
|
post_install() {
|
||||||
for pyver in $python_versions; do
|
for f in ${DESTDIR}/usr/bin/*; do
|
||||||
cd ${wrksrc}/sphinx-${pyver}
|
cp -f ${f}{,3.4}
|
||||||
python${pyver} setup.py build
|
replace_interpreter python ${f}
|
||||||
python${pyver} sphinx-build.py -b man doc build/man
|
|
||||||
done
|
|
||||||
}
|
|
||||||
do_install() {
|
|
||||||
vmkdir usr/share/man/man1
|
|
||||||
for pyver in $python_versions; do
|
|
||||||
cd ${wrksrc}/sphinx-${pyver}
|
|
||||||
python${pyver} setup.py install --root=${DESTDIR}
|
|
||||||
vcopy ${wrksrc}/sphinx-${pyver}/build/man/*.1 usr/share/man/man1
|
|
||||||
done
|
done
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
@ -63,7 +47,6 @@ python3.4-Sphinx_package() {
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/sphinx-*3.4
|
vmove usr/bin/sphinx-*3.4
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
vmove usr/share/man/man1/sphinx-*3.4.1
|
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue