patrick 15/03/19 02:36:29 Modified: ChangeLog Added: sphinx-1.3.ebuild Log: Bump, new test deps, temporarily dropped keywords until dependencies catch up (Portage version: 2.2.18/cvs/Linux x86_64, unsigned Manifest commit)
Revision Changes Path 1.184 dev-python/sphinx/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?rev=1.184&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?rev=1.184&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?r1=1.183&r2=1.184 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v retrieving revision 1.183 retrieving revision 1.184 diff -u -r1.183 -r1.184 --- ChangeLog 3 Mar 2015 07:22:40 -0000 1.183 +++ ChangeLog 19 Mar 2015 02:36:29 -0000 1.184 @@ -1,6 +1,11 @@ # ChangeLog for dev-python/sphinx # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.183 2015/03/03 07:22:40 dlan Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.184 2015/03/19 02:36:29 patrick Exp $ + +*sphinx-1.3 (19 Mar 2015) + + 19 Mar 2015; Patrick Lauer <[email protected]> +sphinx-1.3.ebuild: + Bump, new test deps, temporarily dropped keywords until dependencies catch up 02 Mar 2015; Yixun Lan <[email protected]> sphinx-1.2.3.ebuild: add arm64 support, tested on A53 board 1.1 dev-python/sphinx/sphinx-1.3.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/sphinx-1.3.ebuild?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/sphinx-1.3.ebuild?rev=1.1&content-type=text/plain Index: sphinx-1.3.ebuild =================================================================== # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-1.3.ebuild,v 1.1 2015/03/19 02:36:29 patrick Exp $ EAPI=5 PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy ) inherit distutils-r1 eutils versionator MY_PN="Sphinx" MY_P="${MY_PN}-${PV}" DESCRIPTION="Python documentation generator" HOMEPAGE="http://sphinx.pocoo.org/ http://pypi.python.org/pypi/Sphinx" SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc latex test" # Portage has only >= minimum required versions of all rdeps making # setting of version borders unnecessary RDEPEND=" dev-python/docutils[${PYTHON_USEDEP}] dev-python/jinja[${PYTHON_USEDEP}] dev-python/pygments[${PYTHON_USEDEP}] dev-python/setuptools[${PYTHON_USEDEP}] dev-python/six[${PYTHON_USEDEP}] dev-python/Babel[${PYTHON_USEDEP}] dev-python/alabaster[${PYTHON_USEDEP}] dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] dev-python/snowballstemmer[${PYTHON_USEDEP}] latex? ( dev-texlive/texlive-latexextra app-text/dvipng )" DEPEND="${DEPEND} test? ( dev-python/nose[${PYTHON_USEDEP}] dev-python/mock[${PYTHON_USEDEP}] )" S="${WORKDIR}/${MY_P}" python_compile() { distutils-r1_python_compile # Generate the grammar. It will be caught by install somehow. # Note that the tests usually do it for us. However, I don't want # to trust USE=test really running all the tests, especially # with FEATURES=test-fail-continue. pushd "${BUILD_DIR}"/lib > /dev/null || die "${PYTHON}" -m sphinx.pycode.__init__ \ || die "Grammar generation failed." popd > /dev/null || die } python_compile_all() { use doc && emake -C doc SPHINXBUILD='"${PYTHON}" "${S}/sphinx-build.py"' html } python_test() { mkdir -p "${BUILD_DIR}/sphinx_tempdir" export SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" cp -r -l tests "${BUILD_DIR}"/ || die if $(python_is_python3); then 2to3 -w --no-diffs "${BUILD_DIR}"/tests || die fi nosetests -w "${BUILD_DIR}"/tests -v \ || die "Tests fail with ${EPYTHON}" } python_install_all() { use doc && local HTML_DOCS=( doc/_build/html/. ) distutils-r1_python_install_all } replacing_python_eclass() { local pv for pv in ${REPLACING_VERSIONS}; do if ! version_is_at_least 1.1.3-r4 ${pv}; then return 0 fi done return 1 } pkg_preinst() { if replacing_python_eclass; then # the old python.eclass ebuild will want to remove our pickles... backup_pickle() { # array to enable filename expansion local pickle_name=( "${D}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle ) local dest=${ROOT}${pickle_name[0]#${D}}.backup eumask_push 022 mkdir -p "${dest%/*}" || die eumask_pop cp -p -v "${pickle_name[0]}" "${dest}" \ || die "Unable to backup grammar pickle from overwriting" } python_foreach_impl backup_pickle fi } pkg_postinst() { if replacing_python_eclass; then local warned restore_pickle() { local backup_name=( "${ROOT}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle.backup ) local dest=${backup_name[0]%.backup} mv -v "${backup_name[0]}" "${dest}" \ || die "Unable to restore grammar pickle backup" } python_foreach_impl restore_pickle [[ ${warned} ]] && ewarn "Please try rebuilding the package." fi }
