diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-08-12 01:17:09 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-08-12 01:17:09 +0000 |
commit | bf50ef8da8f071d868c93f4e6c803fd998d3e260 (patch) | |
tree | 82c51e96ad6be71ee2692d3dbcff8a7bc8361469 /dev-python/docutils | |
parent | cleanup. (diff) | |
download | historical-bf50ef8da8f071d868c93f4e6c803fd998d3e260.tar.gz historical-bf50ef8da8f071d868c93f4e6c803fd998d3e260.tar.bz2 historical-bf50ef8da8f071d868c93f4e6c803fd998d3e260.zip |
Set SUPPORT_PYTHON_ABIS.
Package-Manager: portage-14006-svn/cvs/Linux x86_64
Diffstat (limited to 'dev-python/docutils')
-rw-r--r-- | dev-python/docutils/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/docutils/Manifest | 3 | ||||
-rw-r--r-- | dev-python/docutils/docutils-0.5-r1.ebuild | 125 |
3 files changed, 134 insertions, 2 deletions
diff --git a/dev-python/docutils/ChangeLog b/dev-python/docutils/ChangeLog index b55be5e3c192..f242d57a35e3 100644 --- a/dev-python/docutils/ChangeLog +++ b/dev-python/docutils/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/docutils # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v 1.90 2009/08/09 13:16:13 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v 1.91 2009/08/12 01:17:09 arfrever Exp $ + +*docutils-0.5-r1 (12 Aug 2009) + + 12 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +docutils-0.5-r1.ebuild: + Set SUPPORT_PYTHON_ABIS. 09 Aug 2009; nixnut <nixnut@gentoo.org> docutils-0.5.ebuild: ppc stable #278285 diff --git a/dev-python/docutils/Manifest b/dev-python/docutils/Manifest index 5841573abd32..9b65e84bd9aa 100644 --- a/dev-python/docutils/Manifest +++ b/dev-python/docutils/Manifest @@ -11,6 +11,7 @@ DIST glep-0.4-r1.tbz2 4667 RMD160 bea44f2fe567422fd42bedebdf04cb6d984478ae SHA1 EBUILD docutils-0.3.7.ebuild 2550 RMD160 d3dbe7aa8ba2cdbd6f503c9df94bc7f4aafe677a SHA1 5d65761de4e447bf03c9aeda6f8508e2ab7656eb SHA256 ae9e3b047a135248a4705278fe5b768c1ba4ed33674944b2091d83ae0f8e8b48 EBUILD docutils-0.4-r2.ebuild 2793 RMD160 a81cb7e890e8c643f965c78a55b1b022f58553b9 SHA1 f96f4fa75477b7dd566901a802d32ea86e69fc69 SHA256 4ee9ca90a8a618d9e1c8b1da321a9ace9fb8600d710d80afba414a71ed9b2853 EBUILD docutils-0.4-r3.ebuild 2893 RMD160 a353cee5c1276017c3bb20fac5edf9bffad2739f SHA1 1042ec0a6ad1cd201ad7f0a574b79a6b13560cdc SHA256 eb1d62c2ae0cc49ba29a4baa7f4e2ace8399c4d989797dc2c2a8d7f30bd4baeb +EBUILD docutils-0.5-r1.ebuild 3143 RMD160 0a2155152806ffbe8bef3235a30d14ce94374f60 SHA1 bf5e100a1e3d765d493428c58b7c744cb5c4aa51 SHA256 262e3a60cd4a2d3bfb18e3c7c21e1342f9cedfa3b2f459cb428377333d4a7f80 EBUILD docutils-0.5.ebuild 2852 RMD160 901e7b21d2afe155e55bcce9d73c3676f024597b SHA1 5650567da54fe7c71b39dddbba75d242d02dc571 SHA256 ab74fcff7c94ba6bc47fda9dfe4ce928d242bdb8c7163e67c6b7ebbf1402b6e2 -MISC ChangeLog 13417 RMD160 9b80bca725d02a6d34a83465eb15ffd97faa32ab SHA1 774df52af55cc054137056502a4f2e5c16034af4 SHA256 d807230b81b8296cc0d9b24d6fb0dab419477588ad71f35d8fbe4a835769d32a +MISC ChangeLog 13579 RMD160 43891b4872c0de0e1c70212e30b4aa2c9e13873c SHA1 045e037edbf3c63f200183cb42a05898321450cd SHA256 76360e6c103707b7da798de826d654634e26dee702aa2cb5bd90e4aa8b3ab3db MISC metadata.xml 224 RMD160 37a2cf5db0ab817c0e2a1127e9cc4278bf88c904 SHA1 e2c1b45b839624cbc4bd949c8458d50dec01e7cb SHA256 0bb6bfd1577f4800009497c7813935f712ae6a44dbbdec1a903e79eaa5f21755 diff --git a/dev-python/docutils/docutils-0.5-r1.ebuild b/dev-python/docutils/docutils-0.5-r1.ebuild new file mode 100644 index 000000000000..ee8c6f05058f --- /dev/null +++ b/dev-python/docutils/docutils-0.5-r1.ebuild @@ -0,0 +1,125 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/docutils-0.5-r1.ebuild,v 1.1 2009/08/12 01:17:09 arfrever Exp $ + +EAPI="2" + +NEED_PYTHON="2.4" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils eutils multilib + +DESCRIPTION="Set of python tools for processing plaintext docs into HTML, XML, etc..." +HOMEPAGE="http://docutils.sourceforge.net/" +SRC_URI="mirror://sourceforge/docutils/${P}.tar.gz + glep? ( mirror://gentoo/glep-0.4-r1.tbz2 )" + +LICENSE="public-domain PYTHON BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" +IUSE="glep emacs" + +DEPEND="dev-python/setuptools" +RDEPEND="" +# Emacs support is in PDEPEND to avoid a dependency cycle (bug #183242) +PDEPEND="emacs? ( >=app-emacs/rst-0.4 )" + +RESTRICT_PYTHON_ABIS="3*" + +EMP="${PN}-0.3.7" + +GLEP_SRC="${WORKDIR}/glep-0.4-r1" + +src_prepare() { + epatch "${FILESDIR}/${P}-test_node_class_names-python-2.6.patch" + + # simplified algorithm to select installing optparse and textwrap + epatch "${FILESDIR}/${EMP}-extramodules.patch" + + sed -i \ + -e 's/from distutils.core/from setuptools/' \ + setup.py || die "sed failed" +} + +src_compile() { + distutils_src_compile + + # Generate html docs from reStructured text sources. + + # make roman.py available for the doc building process + ln -s extras/roman.py + + pushd tools + + # Place html4css1.css in base directory. This makes sure the + # generated reference to it is correct. + cp ../docutils/writers/html4css1/html4css1.css .. + + PYTHONPATH=.. ${python} ./buildhtml.py --stylesheet-path=../html4css1.css --traceback .. \ + || die "buildhtml" + + popd + + # clean up after the doc building + rm roman.py html4css1.css +} + +install_txt_doc() { + local doc=${1} + local dir="txt/$(dirname ${doc})" + docinto ${dir} + dodoc ${doc} +} + +src_test() { + cd "${S}/test" + + testing() { + PYTHONPATH="../build-${PYTHON_ABI}/lib" ./alltests.py + } + python_execute_function testing +} + +src_install() { + DOCS="*.txt" + distutils_src_install + + # Tools + cd "${S}"/tools + for tool in *.py; do + dobin ${tool} + done + + # Docs + cd "${S}" + dohtml -r docs tools + # Manually install the stylesheet file + insinto /usr/share/doc/${PF}/html + doins docutils/writers/html4css1/html4css1.css + for doc in $(find docs tools -name '*.txt'); do + install_txt_doc $doc + done + + # installing Gentoo GLEP tools. Uses versioned GLEP distribution + if use glep; then + dobin ${GLEP_SRC}/glep.py || die "newbin failed" + + installation_of_glep_tools() { + insinto $(python_get_sitedir)/docutils/readers + newins ${GLEP_SRC}/glepread.py glep.py || die "newins reader failed" + insinto $(python_get_sitedir)/docutils/transforms + newins ${GLEP_SRC}/glepstrans.py gleps.py || die "newins transform failed" + insinto $(python_get_sitedir)/docutils/writers + doins -r ${GLEP_SRC}/glep_html || die "doins writer failed" + } + python_execute_function --action-message 'Installation of GLEP tools with Python ${PYTHON_ABI}...' installation_of_glep_tools + fi +} + +pkg_postinst() { + python_mod_optimize docutils roman.py +} + +pkg_postrm() { + python_mod_cleanup +} |