dev-python/asciimatics: new package.
authorPatrice Clement <monsieurp@gentoo.org>
Wed, 19 Sep 2018 21:05:42 +0000 (23:05 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Wed, 19 Sep 2018 21:12:58 +0000 (23:12 +0200)
asciimatics is a library to create full-screen text UIs ranging from
interactive forms to ASCII animations.

Package-Manager: Portage-2.3.40, Repoman-2.3.9

dev-python/asciimatics/Manifest [new file with mode: 0644]
dev-python/asciimatics/asciimatics-1.10.0.ebuild [new file with mode: 0644]
dev-python/asciimatics/metadata.xml [new file with mode: 0644]

diff --git a/dev-python/asciimatics/Manifest b/dev-python/asciimatics/Manifest
new file mode 100644 (file)
index 0000000..5f9b9d7
--- /dev/null
@@ -0,0 +1 @@
+DIST asciimatics-1.10.0.tar.gz 1536207 BLAKE2B 9a96150d43e4f59932e4a23a9d580698a053b35a6f5ddc9c967e4202ba1e2b0bb181bc88d9382725d2ae4b10241397f421d8e0d9baf1f269cb52977115d47296 SHA512 dbf2d44f5d667e59bbd14db761ad60a482b8afbbc8190248cdd49a8317575194ce9d2127f9275599bca800f1d5bd5e57fed5cd02b28d739c2a203b15ddebce7f
diff --git a/dev-python/asciimatics/asciimatics-1.10.0.ebuild b/dev-python/asciimatics/asciimatics-1.10.0.ebuild
new file mode 100644 (file)
index 0000000..931c40c
--- /dev/null
@@ -0,0 +1,45 @@
+# 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,6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Pythonic library to create text UIs and ASCII art animations"
+HOMEPAGE="https://github.com/pwaller/pyfiglet"
+SRC_URI="https://github.com/peterbrittain/asciimatics/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples"
+
+DEPEND="
+       dev-python/pillow[${PYTHON_USEDEP}]
+       dev-python/future[${PYTHON_USEDEP}]
+       dev-python/wcwidth[${PYTHON_USEDEP}]
+       dev-python/pyfiglet[${PYTHON_USEDEP}]
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
+
+src_prepare() {
+       sed -i -e "s/use_scm_version.*/version='${PV}',/g;" setup.py || die
+       distutils-r1_src_prepare
+}
+
+python_compile_all() {
+       if use doc; then
+               sed -i -e 's/base_version = .*//g;' doc/source/conf.py || die
+               sed -i -e 's/release = .*//g;' doc/source/conf.py || die
+               sed -i -e 's/version = .*//g;' doc/source/conf.py || die
+               sphinx-build -b html doc/source doc/_build/ || die
+               HTML_DOCS=( doc/_build/. )
+       fi
+}
+
+python_install_all() {
+       use examples && dodoc -r samples
+       distutils-r1_python_install_all
+}
diff --git a/dev-python/asciimatics/metadata.xml b/dev-python/asciimatics/metadata.xml
new file mode 100644 (file)
index 0000000..f5a7fe2
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="project">
+    <email>python@gentoo.org</email>
+    <name>Gentoo Python Project</name>
+  </maintainer>
+  <maintainer type="person">
+    <email>monsieurp@gentoo.org</email>
+    <name>Patrice Clement</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">peterbrittain/asciimatics</remote-id>
+  </upstream>
+</pkgmetadata>