From 543aaabb1b24efe8f084c8b3d964510b682890b9 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Tue, 26 Jan 2016 00:25:35 +0100 Subject: [PATCH] python-Sphinx: update to 1.3.5 --- srcpkgs/python-Sphinx/template | 33 ++++++++------------------------- 1 file changed, 8 insertions(+), 25 deletions(-) diff --git a/srcpkgs/python-Sphinx/template b/srcpkgs/python-Sphinx/template index 0d182adc4f5..1a8e218e1a1 100644 --- a/srcpkgs/python-Sphinx/template +++ b/srcpkgs/python-Sphinx/template @@ -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 " 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 } }