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'
|
||||
pkgname=python-Sphinx
|
||||
version=1.3.4
|
||||
version=1.3.5
|
||||
revision=1
|
||||
noarch=yes
|
||||
build_style=python-module
|
||||
|
@ -20,33 +20,17 @@ pycompile_module="sphinx"
|
|||
short_desc="Python2 documentation generator"
|
||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||
homepage="http://sphinx-doc.org/"
|
||||
license="BSD"
|
||||
license="2-clause-BSD"
|
||||
distfiles="${PYPI_SITE}/S/Sphinx/Sphinx-${version}.tar.gz"
|
||||
checksum=8aacc3f34aa758751fdb44ab9238eab024c66b57d67200f9a35efebf0e368057
|
||||
checksum=b7d133bb4990d010a2ad934c319b52d8a2156cb0491484f5e2a558619bc9ae04
|
||||
|
||||
pre_build() {
|
||||
cp -a ${wrksrc} /tmp/sphinx-2.7
|
||||
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
|
||||
sed -i '/^#!/d' sphinx/pycode/pgen2/token.py
|
||||
}
|
||||
do_build() {
|
||||
for pyver in $python_versions; do
|
||||
cd ${wrksrc}/sphinx-${pyver}
|
||||
python${pyver} setup.py build
|
||||
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
|
||||
post_install() {
|
||||
for f in ${DESTDIR}/usr/bin/*; do
|
||||
cp -f ${f}{,3.4}
|
||||
replace_interpreter python ${f}
|
||||
done
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
@ -63,7 +47,6 @@ python3.4-Sphinx_package() {
|
|||
pkg_install() {
|
||||
vmove usr/bin/sphinx-*3.4
|
||||
vmove usr/lib/python3.4
|
||||
vmove usr/share/man/man1/sphinx-*3.4.1
|
||||
vlicense LICENSE
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue