commit:     bc71e6419f90ed258d1c4e95448a9742e0f8b76d
Author:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 14 00:10:24 2018 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Sat Apr 14 00:10:24 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc71e641

dev-python/ansi2html: 1.4.2

Package-Manager: Portage-2.3.27, Repoman-2.3.9

 dev-python/ansi2html/Manifest               |  1 +
 dev-python/ansi2html/ansi2html-1.4.2.ebuild | 50 +++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/dev-python/ansi2html/Manifest b/dev-python/ansi2html/Manifest
index 8f8632f498a..4422a783d86 100644
--- a/dev-python/ansi2html/Manifest
+++ b/dev-python/ansi2html/Manifest
@@ -1,3 +1,4 @@
 DIST ansi2html-1.1.1.tar.gz 46591 BLAKE2B 
e2eb3d9b2665fd495ee8591a3cbfebcd1d565edec9f8ec6840bed8303bbc094e71b9371f496f5f479da9d61937fb2e4ac4deb485631c2576bed33bfee731fba5
 SHA512 
5f08e6e3e89797f23759da7aac8cbd17e86ffcac37af8db8c345423c69744d88a1517cb0f17dc9c366b509b972484d25877cce8c7466a7a463eea24af17133de
 DIST ansi2html-1.2.0.tar.gz 46748 BLAKE2B 
c5ea7d35640f93562f6098a46dbeff9248e25b6210bfa5e71265d529599eea7713581ef986faa5afefb445492fe09d2170d164a63b2a602c57a79f2c72cbe118
 SHA512 
3106488da19cd093d7ae2a7499a66baf77877f47da0e497791cea2a63079c184f1d36743e78116b3faf08ab145ca97b5774151114b9ca193020578c8a3bdc860
 DIST ansi2html-1.3.0.tar.gz 35989 BLAKE2B 
b2f949e2c559b2da91d3095b4d8ac2091bd15aad46b178a01aa59d4c900917e733f6ab3884d9c4c7c46bfa530936339d9b105a0471a09eb7a01693c43e8a87dd
 SHA512 
73d1b3431e22146c4fe18fef4b05413231d79d627c396d67528d0aa1ab07a7ef4bcfeff56829b85d9fe9ad508599b782318911f7b10d6b9a1bc98780e31389d7
+DIST ansi2html-1.4.2.tar.gz 25485 BLAKE2B 
93f3bbd307b916c9ca60379235600606dbe16f1b6e423d0d2615f7825e92a6d7a8469ae7d60cf5131b4c3431897b3161bfcd2a0327525a332bcd6a6980dad5c9
 SHA512 
29c569839788968ba5a1fed8dddd4cc92f40ca88b4135b597815012ea44a44e8b7a3c2259d2d5d5f3cc690400be882236b88c0764a649da5679431501aab0b1c

diff --git a/dev-python/ansi2html/ansi2html-1.4.2.ebuild 
b/dev-python/ansi2html/ansi2html-1.4.2.ebuild
new file mode 100644
index 00000000000..e8c9113901f
--- /dev/null
+++ b/dev-python/ansi2html/ansi2html-1.4.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="Convert text with ANSI color codes to HTML"
+HOMEPAGE="https://pypi.python.org/pypi/ansi2html 
https://github.com/ralphbean/ansi2html";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="doc test"
+
+# They miserably fail.
+RESTRICT="test"
+
+RDEPEND="
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       >=dev-python/six-1.7.3[${PYTHON_USEDEP}]"
+DEPEND="
+       doc? ( app-text/asciidoc )
+       test? (
+               ${RDEPEND}
+               dev-python/nose[${PYTHON_USEDEP}]
+               $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' 
python2_7 pypy)
+       )
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       "
+
+src_compile() {
+       use doc && emake man/${PN}.1
+       distutils-r1_src_compile
+}
+
+python_test() {
+       chmod -x "${S}"/tests/* || die
+       esetup.py check
+       esetup.py test
+}
+
+python_install_all() {
+       use doc && doman man/${PN}.1
+       DOCS=( README.rst man/${PN}.1.txt )
+       distutils-r1_python_install_all
+}

Reply via email to