diff options
author | Ian Delaney <idella4@gentoo.org> | 2014-08-06 04:17:34 +0000 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2014-08-06 04:17:34 +0000 |
commit | 03939c1b3ab638b1c5b7d21b3fa850331ec6c2b7 (patch) | |
tree | 91ed9d3e1c56e066788af2a80a62394dd8918a6b /dev-python/docutils | |
parent | bump, rm old (diff) | |
download | gentoo-2-03939c1b3ab638b1c5b7d21b3fa850331ec6c2b7.tar.gz gentoo-2-03939c1b3ab638b1c5b7d21b3fa850331ec6c2b7.tar.bz2 gentoo-2-03939c1b3ab638b1c5b7d21b3fa850331ec6c2b7.zip |
bump; drop py2.6 pypy2_0, drop redundant patch
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/docutils')
-rw-r--r-- | dev-python/docutils/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/docutils/docutils-0.12.ebuild | 69 |
2 files changed, 75 insertions, 1 deletions
diff --git a/dev-python/docutils/ChangeLog b/dev-python/docutils/ChangeLog index a8bed5034077..f085131e6ae9 100644 --- a/dev-python/docutils/ChangeLog +++ b/dev-python/docutils/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/docutils # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v 1.199 2014/04/01 04:47:48 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v 1.200 2014/08/06 04:17:34 idella4 Exp $ + +*docutils-0.12 (06 Aug 2014) + + 06 Aug 2014; Ian Delaney <idella4@gentoo.org> +docutils-0.12.ebuild: + bump; drop py2.6 pypy2_0, drop redundant patch *docutils-0.11 (01 Apr 2014) diff --git a/dev-python/docutils/docutils-0.12.ebuild b/dev-python/docutils/docutils-0.12.ebuild new file mode 100644 index 000000000000..f986e6cd9ac2 --- /dev/null +++ b/dev-python/docutils/docutils-0.12.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/docutils-0.12.ebuild,v 1.1 2014/08/06 04:17:34 idella4 Exp $ + +EAPI="5" +PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Python Documentation Utilities" +HOMEPAGE="http://docutils.sourceforge.net/ http://pypi.python.org/pypi/docutils" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD-2 GPL-3 public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +DEPEND="dev-python/pygments[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" + +DISTUTILS_NO_PARALLEL_BUILD=1 + +python_compile_all() { + # Generate html docs from reStructured text sources. + + # Place html4css1.css in base directory to ensure that the generated reference to it is correct. + cp docutils/writers/html4css1/html4css1.css . || die + + cd tools || die + "${PYTHON}" buildhtml.py --input-encoding=utf-8 \ + --stylesheet-path=../html4css1.css, --traceback ../docs || die +} + +python_test() { + if python_is_python3; then + pushd test3 > /dev/null || die + else + pushd test > /dev/null || die + fi + "${PYTHON}" alltests.py || die "Testing failed with ${EPYTHON}" + popd > /dev/null || die +} + +python_install() { + distutils-r1_python_install + + # Install tools. + python_doscript tools/{buildhtml,quicktest}.py +} + +install_txt_doc() { + local doc="${1}" + local dir="txt/$(dirname ${doc})" + docinto "${dir}" + dodoc "${doc}" +} + +python_install_all() { + local DOCS=( *.txt ) + local HTML_DOCS=( docs tools docutils/writers/html4css1/html4css1.css ) + + distutils-r1_python_install_all + + local doc + while IFS= read -r -d '' doc; do + install_txt_doc "${doc}" + done < <(find docs tools -name '*.txt' -print0) +} |