diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-07-27 18:15:56 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-07-27 18:15:56 +0000 |
commit | 27c12d54bf7b08bac39cbd72fc6531e202954d12 (patch) | |
tree | dfd11a0dcd6af8c8c92af97725e4d2cc5e31fd87 /dev-python/sphinx | |
parent | amd64 stable, bug 329703 (diff) | |
download | historical-27c12d54bf7b08bac39cbd72fc6531e202954d12.tar.gz historical-27c12d54bf7b08bac39cbd72fc6531e202954d12.tar.bz2 historical-27c12d54bf7b08bac39cbd72fc6531e202954d12.zip |
Version bump.
Package-Manager: portage-HEAD/cvs/Linux x86_64
Diffstat (limited to 'dev-python/sphinx')
-rw-r--r-- | dev-python/sphinx/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/sphinx/Manifest | 4 | ||||
-rw-r--r-- | dev-python/sphinx/sphinx-1.0.1.ebuild | 84 |
3 files changed, 94 insertions, 2 deletions
diff --git a/dev-python/sphinx/ChangeLog b/dev-python/sphinx/ChangeLog index e3994fdf3092..e7190d0c0e77 100644 --- a/dev-python/sphinx/ChangeLog +++ b/dev-python/sphinx/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/sphinx # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.61 2010/07/23 11:30:45 djc Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.62 2010/07/27 18:15:56 arfrever Exp $ + +*sphinx-1.0.1 (27 Jul 2010) + + 27 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +sphinx-1.0.1.ebuild: + Version bump. *sphinx-1.0 (23 Jul 2010) diff --git a/dev-python/sphinx/Manifest b/dev-python/sphinx/Manifest index aa4bf56546a8..8991b04eb126 100644 --- a/dev-python/sphinx/Manifest +++ b/dev-python/sphinx/Manifest @@ -1,10 +1,12 @@ DIST Sphinx-0.6.5.tar.gz 972168 RMD160 6a06bbaccbd86a55443be7350642a03ae3ae748d SHA1 f91ba2ec0165492c5992cba610fb898ab16ca8c4 SHA256 500d749251ff4d311a81714e2f8f184168e10262a3a0d55f04f22f89164329b7 DIST Sphinx-0.6.6.tar.gz 974187 RMD160 d91e87086f8223acafde51f6553718b486568699 SHA1 104339d8c0f538624c78f8629312044c39f0d8e2 SHA256 41bde4589d9aa7deaf093db0af1e07191c35ca3499ea8b5c880fb33055572e8d DIST Sphinx-0.6.7.tar.gz 974579 RMD160 824dd7b7f3df61af0e639a19be1bf0080749e12c SHA1 d333163317ba5a26653ffe439f8ce142ce181ff9 SHA256 3127fe8be43d8150d02f0ae81d3ea82815325c161653d39d08f5d283f4588577 +DIST Sphinx-1.0.1.tar.gz 2275978 RMD160 5d51c055f4b3f6702ced18f51087601be38dea82 SHA1 e4648d9d07e914c56f16fd50f1ef8f095e23dd01 SHA256 c5199f3b1547a9607a7afd3ce1a9393ecb216231cb4f5f8138a5390d77208096 DIST Sphinx-1.0.tar.gz 2267124 RMD160 df0bf21b5d7e39ed862f694a14d9903b45b4c5b8 SHA1 15010e6e0956d39a90cf975e848f79db0fd39368 SHA256 0838e2f25bb54c4448470a9e092bf1f7ec457101b635091d1c21996f48695924 EBUILD sphinx-0.6.5.ebuild 2178 RMD160 f4331b2be85765b8596a97d7f2c68cb7da00597d SHA1 179105239cabe97afffd8dc4a2d11c1d284f018a SHA256 765112b14dbab0c7a01fbc9f53cd89581f3912b1075434b6cba27d55393e6cc0 EBUILD sphinx-0.6.6.ebuild 2188 RMD160 5339f06c0b24cc04b63b27c2f84beb485e350b88 SHA1 91eb64c8bacefbca3e9cedc4d67518599c978b38 SHA256 f462e3d8e8b1e440be35b6593878ee76be90ef5c64e06ba5f0cfb90859f75f2f EBUILD sphinx-0.6.7.ebuild 2161 RMD160 217bab4b0433a76be10406fcc4d0b5d535a05204 SHA1 ca3f1ed1b2621c6a77cdf2d47e235e919da26ebd SHA256 5f2110ac9122beadf2e574cd444401912cb776657d3875fbd123855aaa8d807d +EBUILD sphinx-1.0.1.ebuild 2689 RMD160 2d6e8467a6946f6a8bac1f6aaa2f2fb793d67c97 SHA1 594a79709e76593aa23d0615b409b55baa1698ea SHA256 91dbe77360c0c2d3ffc2bbb3b9bf725f7818009e70d56cf911fc5ffee09d6b06 EBUILD sphinx-1.0.ebuild 2176 RMD160 0680f1ee852956a173b5788a0ba2412bb46e20cc SHA1 30516e409887d81dbc7922ae3b976921f9cec651 SHA256 8f5e6719b11bd4dfdf8cc403ac3fd2c2d013eb32a7a00ed5415f16c12502edfc -MISC ChangeLog 7432 RMD160 4316ad91a38b0d04056d9d52dc82c27b24604648 SHA1 6693d60d7edc0f585b0604286f3faf53747ffd4d SHA256 e82added069eb8084c6fb6020b8d34b7c4c6acf601d791566dbf1ef675b30755 +MISC ChangeLog 7580 RMD160 400be103cbdb7dbd1f5b109c1fd0dbd195e085fa SHA1 865c2ac8df99aa3ce6be986ea88aa1a8937cf26b SHA256 37ca62c65dafb8342daebdb028a8bd51ee8748f83987a103e929b29f39ba8757 MISC metadata.xml 351 RMD160 a039846d5551a68ce6babb384726d5f2aed7ed48 SHA1 4827404c8a432524f89c5c6882c8f723d9ceee23 SHA256 c3304c774eac6a8ed5a1dbfd42c2e52540cfd76aa441ac4be4b94240410bd4dd diff --git a/dev-python/sphinx/sphinx-1.0.1.ebuild b/dev-python/sphinx/sphinx-1.0.1.ebuild new file mode 100644 index 000000000000..91c3d4ef147f --- /dev/null +++ b/dev-python/sphinx/sphinx-1.0.1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-1.0.1.ebuild,v 1.1 2010/07/27 18:15:56 arfrever 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="Tool to create documentation for Python projects" +HOMEPAGE="http://sphinx.pocoo.org/ http://pypi.python.org/pypi/Sphinx" +SRC_URI="http://pypi.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~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/pygments-0.8 + >=dev-python/jinja-2.2 + >=dev-python/docutils-0.5 + 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 + cd doc + einfo "Generation of documentation" + PYTHONPATH="../" emake SPHINXBUILD="$(PYTHON -f) ../sphinx-build.py" html || die "Generation of documentation failed" + 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 +} |