summaryrefslogtreecommitdiff
path: root/dev-python/urwidtrees
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/urwidtrees')
-rw-r--r--dev-python/urwidtrees/Manifest1
-rw-r--r--dev-python/urwidtrees/metadata.xml14
-rw-r--r--dev-python/urwidtrees/urwidtrees-1.0.2-r1.ebuild45
3 files changed, 60 insertions, 0 deletions
diff --git a/dev-python/urwidtrees/Manifest b/dev-python/urwidtrees/Manifest
new file mode 100644
index 000000000000..6fcb6da9e091
--- /dev/null
+++ b/dev-python/urwidtrees/Manifest
@@ -0,0 +1 @@
+DIST urwidtrees-1.0.2.tar.gz 36082 BLAKE2B fd9dad1c1b0425fae95930b00149932a2fb5bf537c510ef4dd788408c315d6657553b92f6d1cc21769ed2a7af1a4c15c8c476d5d5b244f57032a5537ba92b27e SHA512 535b99d91154c308260a0ee6490868724ce8dfa89acf3b623c08409ec6e15194d9e94085411dd7796cad98865ed57692a88cbc11540e6523fc371eaf0204ac17
diff --git a/dev-python/urwidtrees/metadata.xml b/dev-python/urwidtrees/metadata.xml
new file mode 100644
index 000000000000..d0a56d70ecfb
--- /dev/null
+++ b/dev-python/urwidtrees/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription lang="en">
+ This is a Widget Container API for the urwid toolkit. It uses a MVC
+ approach and allows to build trees of widgets.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">pazz/urwidtrees</remote-id>
+ <remote-id type="pypi">urwidtrees</remote-id>
+ </upstream>
+ <origin>gentoo-staging</origin>
+</pkgmetadata>
diff --git a/dev-python/urwidtrees/urwidtrees-1.0.2-r1.ebuild b/dev-python/urwidtrees/urwidtrees-1.0.2-r1.ebuild
new file mode 100644
index 000000000000..68baa31a9881
--- /dev/null
+++ b/dev-python/urwidtrees/urwidtrees-1.0.2-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python{3_6,3_7} )
+
+inherit distutils-r1
+
+DESCRIPTION="Tree widgets for urwid"
+HOMEPAGE="https://github.com/pazz/urwidtrees"
+SRC_URI="https://github.com/pazz/urwidtrees/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
+RDEPEND=">=dev-python/urwid-1.1.0[${PYTHON_USEDEP}]"
+
+src_prepare() {
+ find -name '*.py' -exec \
+ sed -i -e '1i# -*- coding: utf-8 -*-' {} + || die
+
+ distutils-r1_src_prepare
+
+ local md
+ for md in *.md; do
+ mv "${md}" "${md%.md}" || die
+ done
+}
+
+src_compile() {
+ distutils-r1_src_compile
+
+ use doc && emake -C docs html
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ if use doc; then
+ dodoc -r docs/build/html/.
+ fi
+}