summaryrefslogtreecommitdiff
path: root/dev-python/ansi2html/ansi2html-1.8.0.ebuild
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-07-07 21:52:29 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2022-07-07 22:11:45 +0300
commitd7090b5d5fd4e5ae6f7634f5c796cb6fab82e2e1 (patch)
tree8388ea7ae117a2f228395a889aeba89a585d6b00 /dev-python/ansi2html/ansi2html-1.8.0.ebuild
parent1a1e38d1ae0a73498cb28372b5a088e27e78fa86 (diff)
downloadgentoo-d7090b5d5fd4e5ae6f7634f5c796cb6fab82e2e1.tar.gz
gentoo-d7090b5d5fd4e5ae6f7634f5c796cb6fab82e2e1.tar.bz2
gentoo-d7090b5d5fd4e5ae6f7634f5c796cb6fab82e2e1.zip
dev-python/ansi2html: add 1.8.0, EAPI=8, PEP517
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/ansi2html/ansi2html-1.8.0.ebuild')
-rw-r--r--dev-python/ansi2html/ansi2html-1.8.0.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/ansi2html/ansi2html-1.8.0.ebuild b/dev-python/ansi2html/ansi2html-1.8.0.ebuild
new file mode 100644
index 000000000000..9b52578c0779
--- /dev/null
+++ b/dev-python/ansi2html/ansi2html-1.8.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Convert text with ANSI color codes to HTML"
+HOMEPAGE="https://pypi.org/project/ansi2html/
+ https://github.com/pycontribs/ansi2html"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~riscv ~x86"
+IUSE="doc"
+
+RDEPEND=">=dev-python/six-1.7.3[${PYTHON_USEDEP}]"
+BDEPEND="
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]
+ dev-python/setuptools_scm_git_archive[${PYTHON_USEDEP}]
+ doc? (
+ app-text/asciidoc
+ )
+"
+
+distutils_enable_tests pytest
+
+python_install_all() {
+ use doc && doman man/${PN}.1
+ distutils-r1_python_install_all
+}
+
+src_compile() {
+ # Upstream https://github.com/pycontribs/ansi2html/issues/124
+ use doc && emake _MANUAL_VERSION="${PV}" man/ansi2html.1
+ distutils-r1_src_compile
+}