summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2018-09-19 23:05:42 +0200
committerPatrice Clement <monsieurp@gentoo.org>2018-09-19 23:12:58 +0200
commit6ed588329e7fd49e85c92fac2f8a88acb11563fb (patch)
tree887bb0e65f5a7ac1fa0c4977627793933b7649d4 /dev-python/asciimatics
parentdev-python/pyfiglet: new package. (diff)
downloadgentoo-6ed588329e7fd49e85c92fac2f8a88acb11563fb.tar.gz
gentoo-6ed588329e7fd49e85c92fac2f8a88acb11563fb.tar.bz2
gentoo-6ed588329e7fd49e85c92fac2f8a88acb11563fb.zip
dev-python/asciimatics: new package.
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
Diffstat (limited to 'dev-python/asciimatics')
-rw-r--r--dev-python/asciimatics/Manifest1
-rw-r--r--dev-python/asciimatics/asciimatics-1.10.0.ebuild45
-rw-r--r--dev-python/asciimatics/metadata.xml15
3 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/asciimatics/Manifest b/dev-python/asciimatics/Manifest
new file mode 100644
index 000000000000..5f9b9d716e78
--- /dev/null
+++ b/dev-python/asciimatics/Manifest
@@ -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
index 000000000000..931c40cb31cb
--- /dev/null
+++ b/dev-python/asciimatics/asciimatics-1.10.0.ebuild
@@ -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
index 000000000000..f5a7fe285636
--- /dev/null
+++ b/dev-python/asciimatics/metadata.xml
@@ -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>