diff options
author | Dirkjan Ochtman <djc@gentoo.org> | 2011-10-10 07:06:50 +0000 |
---|---|---|
committer | Dirkjan Ochtman <djc@gentoo.org> | 2011-10-10 07:06:50 +0000 |
commit | 2ef06c64d9c67caed62dd1462cf5adb87bde9a3b (patch) | |
tree | af59e2452e2bd2d8619b74dc3fbe428a73af4c58 /dev-python/sphinx | |
parent | *portage-2.2.0_alpha65 (10 Oct 2011) (diff) | |
download | historical-2ef06c64d9c67caed62dd1462cf5adb87bde9a3b.tar.gz historical-2ef06c64d9c67caed62dd1462cf5adb87bde9a3b.tar.bz2 historical-2ef06c64d9c67caed62dd1462cf5adb87bde9a3b.zip |
Version bump sphinx to 1.1.
Package-Manager: portage-2.1.10.20/cvs/Linux x86_64
Diffstat (limited to 'dev-python/sphinx')
-rw-r--r-- | dev-python/sphinx/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/sphinx/Manifest | 12 | ||||
-rw-r--r-- | dev-python/sphinx/sphinx-1.1.ebuild | 85 |
3 files changed, 98 insertions, 6 deletions
diff --git a/dev-python/sphinx/ChangeLog b/dev-python/sphinx/ChangeLog index 3f9c8e9b5b99..56a9a02c912e 100644 --- a/dev-python/sphinx/ChangeLog +++ b/dev-python/sphinx/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/sphinx # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.92 2011/04/04 11:50:00 djc Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.93 2011/10/10 07:06:50 djc Exp $ + +*sphinx-1.1 (10 Oct 2011) + + 10 Oct 2011; Dirkjan Ochtman <djc@gentoo.org> +sphinx-1.1.ebuild: + Version bump to 1.1. 04 Apr 2011; Dirkjan Ochtman <djc@gentoo.org> -sphinx-1.0.4.ebuild, -sphinx-1.0.5.ebuild, -sphinx-1.0.6.ebuild: diff --git a/dev-python/sphinx/Manifest b/dev-python/sphinx/Manifest index 72dbd30aaaeb..badb6144a136 100644 --- a/dev-python/sphinx/Manifest +++ b/dev-python/sphinx/Manifest @@ -1,16 +1,18 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 +Hash: SHA512 DIST Sphinx-0.6.7.tar.gz 974579 RMD160 824dd7b7f3df61af0e639a19be1bf0080749e12c SHA1 d333163317ba5a26653ffe439f8ce142ce181ff9 SHA256 3127fe8be43d8150d02f0ae81d3ea82815325c161653d39d08f5d283f4588577 DIST Sphinx-1.0.7.tar.gz 2285875 RMD160 e3c622dec2a971158bfe8bc7faee493f722199c8 SHA1 b231438a51a84d53679a226ab2036ec62bb14fd5 SHA256 80d62f3f7913c3322bf279ec26bfb12c1ce70404b00f4c87dc3ac190d150b0ab +DIST Sphinx-1.1.tar.gz 2628151 RMD160 4e42513cb557d82b1773b6b50a057f8d6e968545 SHA1 37377006a5cd00bb9765d4e2c215a4f388cffb66 SHA256 bd1971d851094eb105f6d8f952afbb969889171619eecdf641256cfc368a67b6 EBUILD sphinx-0.6.7.ebuild 2166 RMD160 c637ff81fafbdfd2d3f0704ef8b0aed6e8a34244 SHA1 7ea076367f8014d00ed8bfc36d057d7b51673613 SHA256 d4f9f1b5b678a3d9e4406c6d4a18098ef24b5376d691495a8457bf1aeaf4b7cc EBUILD sphinx-1.0.7.ebuild 2677 RMD160 4ae07b8cd334a88edb884247b71d68b32c14545a SHA1 4bf9819c963396ce14cd889730d2bbac4e62ebcc SHA256 f705a0f458b7d93a6f49fface3c2517515fe4eb36efedfbe544619786507ca95 -MISC ChangeLog 11007 RMD160 209a1f58b03447615fd389e272431a1e256b4704 SHA1 0719a044be97631ce6164aabdc8af4dbdb583dbd SHA256 59cdafe222adc6854c2d5e6d860c249843ce9f12a54c853c519b2f1f6c4d8d1c +EBUILD sphinx-1.1.ebuild 2679 RMD160 dd5e0c44d016c60bc75b5444b72612afa48da6fe SHA1 781c6940f9d1852f228cb8cbc1ef7604f36cbf97 SHA256 cb04d79869c8d595e2054c9dad93f6fa8858ffad0666eaccc0bdaa4d08e140f2 +MISC ChangeLog 11126 RMD160 d5bf73adcd438e78284aad2f192c39f3be175659 SHA1 0c79b10019e5b93e5a9195cc9953ff46b70e7c6a SHA256 81c80078a36da37fefc758ce4bf86b24f8a4e5808b0cf179ba7cb9828e0f6774 MISC metadata.xml 351 RMD160 a039846d5551a68ce6babb384726d5f2aed7ed48 SHA1 4827404c8a432524f89c5c6882c8f723d9ceee23 SHA256 c3304c774eac6a8ed5a1dbfd42c2e52540cfd76aa441ac4be4b94240410bd4dd -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iEYEARECAAYFAk2ZsHkACgkQxeMuLWsGW/vWLQCgtv/U9eqTXrR+HtK0SNaleH1A -CV8AoJ4jnXE4uHxSGaGbAWQBEeTmNyrt -=vc2y +iEYEAREKAAYFAk6SmagACgkQxeMuLWsGW/vSsQCgpU+T3yL9HOHDzV4Dsf+XIYJM +Xz4AniiuC/OuvjVUevJBSbc34lJO9K1e +=4Bbq -----END PGP SIGNATURE----- diff --git a/dev-python/sphinx/sphinx-1.1.ebuild b/dev-python/sphinx/sphinx-1.1.ebuild new file mode 100644 index 000000000000..75fcefa32c17 --- /dev/null +++ b/dev-python/sphinx/sphinx-1.1.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-1.1.ebuild,v 1.1 2011/10/10 07:06:50 djc Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" +DISTUTILS_SRC_TEST="nosetests" + +inherit distutils + +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="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="doc latex" + +RDEPEND=">=dev-python/docutils-0.7 + >=dev-python/jinja-2.3 + >=dev-python/pygments-1.2 + latex? ( dev-texlive/texlive-latexextra )" +DEPEND="${RDEPEND} + dev-python/setuptools" + +S="${WORKDIR}/${MY_P}" + +DOCS="CHANGES" + +src_compile() { + distutils_src_compile + + if use doc; then + pushd doc > /dev/null + einfo "Generation of documentation" + PYTHONPATH="../" emake SPHINXBUILD="$(PYTHON -f) ../sphinx-build.py" html || die "Generation of documentation failed" + popd > /dev/null + fi +} + +src_install() { + distutils_src_install + + if use doc; then + dohtml -A txt -r doc/_build/html/* || die "Installation of documentation failed" + fi +} + +pkg_postinst() { + distutils_pkg_postinst + + # Generate the Grammar pickle to avoid sandbox violations. + generation_of_grammar_pickle() { + "$(PYTHON)" -c "import sys; sys.path.insert(0, '${EROOT}$(python_get_sitedir -b)'); from sphinx.pycode.pgen2.driver import load_grammar; load_grammar('${EROOT}$(python_get_sitedir -b)/sphinx/pycode/Grammar.txt')" + } + python_execute_function \ + --action-message 'Generation of Grammar pickle with $(python_get_implementation) $(python_get_version)...' \ + --failure-message 'Generation of Grammar pickle with $(python_get_implementation) $(python_get_version) failed' \ + generation_of_grammar_pickle +} + +pkg_postrm() { + distutils_pkg_postrm + + deletion_of_grammar_pickle() { + rm -f "${EROOT}$(python_get_sitedir -b)/sphinx/pycode"/Grammar*.pickle || return 1 + + # Delete empty parent directories. + local dir="${EROOT}$(python_get_sitedir -b)/sphinx/pycode" + while [[ "${dir}" != "${EROOT%/}" ]]; do + rmdir "${dir}" 2> /dev/null || break + dir="${dir%/*}" + done + } + python_execute_function \ + --action-message 'Deletion of Grammar pickle with $(python_get_implementation) $(python_get_version)...' \ + --failure-message 'Deletion of Grammar pickle with $(python_get_implementation) $(python_get_version) failed' \ + deletion_of_grammar_pickle +} |