From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/urwidtrees/Manifest | 1 + dev-python/urwidtrees/metadata.xml | 14 ++++++++ dev-python/urwidtrees/urwidtrees-1.0.2-r1.ebuild | 45 ++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 dev-python/urwidtrees/Manifest create mode 100644 dev-python/urwidtrees/metadata.xml create mode 100644 dev-python/urwidtrees/urwidtrees-1.0.2-r1.ebuild (limited to 'dev-python/urwidtrees') 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 @@ + + + + + + This is a Widget Container API for the urwid toolkit. It uses a MVC + approach and allows to build trees of widgets. + + + pazz/urwidtrees + urwidtrees + + gentoo-staging + 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 +} -- cgit v1.3.1