From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 8998758973 for ; Mon, 25 Jan 2016 15:12:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AA97A21C031; Mon, 25 Jan 2016 15:11:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E965221C01F for ; Mon, 25 Jan 2016 15:11:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CDF4C340901 for ; Mon, 25 Jan 2016 15:11:56 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 03D881018 for ; Mon, 25 Jan 2016 15:11:55 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1453734701.61a71c572a574265f9170060e4c3b42d2aed652e.jlec@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sphinx/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/sphinx/Manifest dev-python/sphinx/sphinx-1.3.5.ebuild X-VCS-Directories: dev-python/sphinx/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 61a71c572a574265f9170060e4c3b42d2aed652e X-VCS-Branch: master Date: Mon, 25 Jan 2016 15:11:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 927337f7-98ee-4b68-a8e5-389575e6e05e X-Archives-Hash: f3bcb1f52b16c28a1824d312a1596a74 commit: 61a71c572a574265f9170060e4c3b42d2aed652e Author: Justin Lecher gentoo org> AuthorDate: Mon Jan 25 11:46:42 2016 +0000 Commit: Justin Lecher gentoo org> CommitDate: Mon Jan 25 15:11:41 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61a71c57 dev-python/sphinx: Version Bump Package-Manager: portage-2.2.27 Signed-off-by: Justin Lecher gentoo.org> dev-python/sphinx/Manifest | 1 + dev-python/sphinx/sphinx-1.3.5.ebuild | 136 ++++++++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+) diff --git a/dev-python/sphinx/Manifest b/dev-python/sphinx/Manifest index f5c5ab6..b544cc1 100644 --- a/dev-python/sphinx/Manifest +++ b/dev-python/sphinx/Manifest @@ -4,3 +4,4 @@ DIST Sphinx-1.2.3.tar.gz 3200548 SHA256 94933b64e2fe0807da0612c574a021c0dac28c7b DIST Sphinx-1.3.1.tar.gz 3469782 SHA256 1a6e5130c2b42d2de301693c299f78cc4bd3501e78b610c08e45efc70e2b5114 SHA512 8b92b69c4ced242c5e608ea03a7a061b0d2908f34f3150048ff4ce08b5d56be4a642a6aec13fa249ff8208fa8dd2d38d8a10d37ebbcc68385ee51f527ede0b94 WHIRLPOOL f3e442fd1f1c260b21f3e2381f028884b6247758448439e7be4cf784f50ec12494e384c77a0c4ccac473f25d7bb88f5424be937d72bb3fac1b6f6387a5746f66 DIST Sphinx-1.3.3.tar.gz 3602492 SHA256 4077bff351d96bd3ebc89daa6f897f3ddcbbca055f427b36f72b75d7310270d8 SHA512 525c9b2f9c6ec7a3a9fd54c78e75894e8107d07952531d41cff22ddccd9f7a4f534583b3454bad831fc1f4ad4773a9ab017d4353310c8396cdb671831eb38f2e WHIRLPOOL 44de721c2cb59949aabfb7c49ced8f6a930899441d0661d06698a2396e60ac06ed18566035fc5dff16191995829d4b201652bb1816004f86b9de49e043c7045a DIST Sphinx-1.3.4.tar.gz 3679247 SHA256 8aacc3f34aa758751fdb44ab9238eab024c66b57d67200f9a35efebf0e368057 SHA512 155d58806a44a6e70fa734ff76f15c5ed76fd35029cf3a05bb8e4d7528f6f17f3e80b699692c125e77017cb88a1f1762ad02eca2eada24f29a702a0f99ff25c9 WHIRLPOOL c8552e8a91852907094b2916cbad41f102476f7e86d61541c79a89d9d10f9af9df6119e3f63c35656ba58fa7e7ac7d472fb9204911ff0aaf199cb5040674d3c7 +DIST Sphinx-1.3.5.tar.gz 3679978 SHA256 b7d133bb4990d010a2ad934c319b52d8a2156cb0491484f5e2a558619bc9ae04 SHA512 90eda9cdbd24575d9f763e5c35e176d9970d1c83dd06dd41e9137f5c6035738fd21c4c57ff98810fc8adf91fa625192e6534bf0bbf70e78cc98f73df59eaabbc WHIRLPOOL 5877015f700ed0818e0879868f2190ec818d088e235d9c12fe6bd472b0006bd8d26156273023ff93a098c8503bdc440cedd1ba8758fdc25f742bb5794940559f diff --git a/dev-python/sphinx/sphinx-1.3.5.ebuild b/dev-python/sphinx/sphinx-1.3.5.ebuild new file mode 100644 index 0000000..e477d95 --- /dev/null +++ b/dev-python/sphinx/sphinx-1.3.5.ebuild @@ -0,0 +1,136 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 eutils versionator + +MY_PN="Sphinx" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Python documentation generator" +HOMEPAGE="http://sphinx.pocoo.org/ https://pypi.python.org/pypi/Sphinx" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="doc latex test" + +RDEPEND=" + =dev-python/alabaster-0.7*[${PYTHON_USEDEP}] + >=dev-python/docutils-0.11[${PYTHON_USEDEP}] + >=dev-python/jinja-2.3[${PYTHON_USEDEP}] + >=dev-python/pygments-2.0.1-r1[${PYTHON_USEDEP}] + >=dev-python/six-1.4[${PYTHON_USEDEP}] + >=dev-python/Babel-1.3[${PYTHON_USEDEP}] + !=dev-python/Babel-2.0[${PYTHON_USEDEP}] + >=dev-python/snowballstemmer-1.1[${PYTHON_USEDEP}] + >=dev-python/sphinx_rtd_theme-0.1[${PYTHON_USEDEP}] + /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" || die + 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 +}