forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-python/docutils: version bump to 0.13.1
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
DIST docutils-0.11.tar.gz 1611755 SHA256 9af4166adf364447289c5c697bb83c52f1d6f57e77849abcccd6a4a18a5e7ec9 SHA512 8e87581b27ce4fb5e97dcef56047f4bf3a076b98e9e42f5dc66f4c370e5893d1571e46f00fee6f1c8b9f8c8a79e128e4599b9ee213ad1dee2bf16a0246e187df WHIRLPOOL 0231e34e8c84a29f52f244dfe8d3fdbb8f2db9f6e5f26d0a5953c109a2620b15f86874e3b7604aeccf805f789abef7e7af5cc076dde25f2e2947bad11d2ae58c | ||
DIST docutils-0.12.tar.gz 1618353 SHA256 c7db717810ab6965f66c8cf0398a98c9d8df982da39b4cd7f162911eb89596fa SHA512 0087433f8b76e1d0302d2fab77fdbda941132d16ac1fcecb26ca66119687eefd9e2f6901e05d705f857fa31e2526136c9827dfd57c44cd295bd10dcce3faebf9 WHIRLPOOL 9b9d9d7315351e4b803195a157836df13a10fc706c0aea2c6ac7c6d01bd034870106d0ceedfbd7e9fae17420f3d116df30cc222ad5b3c7205d5eca767d550564 | ||
DIST docutils-0.13.1.tar.gz 1735216 SHA256 718c0f5fb677be0f34b781e04241c4067cbd9327b66bdd8e763201130f5175be SHA512 6a68b27dac3705ff532cb79d6b6808071206544a1c653e6a24d46971a5e10edffc7d275834eec4e80d948eb066bb099cae0195c0ab674e68747820e54f0ea64e WHIRLPOOL 08fb2511bbf60b8b7e7cb160c5a04ebc7c4bd7a8b29263a63ab8fe4506d6655e8649af3d7bfd93097c463e2a0da8995de416689895228dab1bfadb0d41e56d90 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=6 | ||
|
||
PYTHON_COMPAT=( python2_7 python3_{4,5} pypy pypy3 ) | ||
|
||
inherit distutils-r1 | ||
|
||
DESCRIPTION="Python Documentation Utilities" | ||
HOMEPAGE="http://docutils.sourceforge.net/ https://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 ~arm64 ~hppa ~ia64 ~m68k ~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}" | ||
|
||
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 | ||
"${EPYTHON}" 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 | ||
"${EPYTHON}" 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) | ||
} |