From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-python/urwidtrees/Manifest | 4 +++ dev-python/urwidtrees/metadata.xml | 16 +++++++++ dev-python/urwidtrees/urwidtrees-1.0.2.ebuild | 50 +++++++++++++++++++++++++++ 3 files changed, 70 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.ebuild (limited to 'dev-python/urwidtrees') diff --git a/dev-python/urwidtrees/Manifest b/dev-python/urwidtrees/Manifest new file mode 100644 index 000000000000..e258d68a64af --- /dev/null +++ b/dev-python/urwidtrees/Manifest @@ -0,0 +1,4 @@ +DIST urwidtrees-1.0.2.tar.gz 36082 SHA256 703f4b161b930a26a461a3e3e695f94237ac75e2a52b87613e49093d9aa76034 SHA512 535b99d91154c308260a0ee6490868724ce8dfa89acf3b623c08409ec6e15194d9e94085411dd7796cad98865ed57692a88cbc11540e6523fc371eaf0204ac17 WHIRLPOOL 1ed3afe730855405332afa5813749e6b6400b1accf776d80f4b9a8e98a0d63fa822e7ee4ec4fc81d55f06364447d741f6e473b7eee729229667ea65404abe9c5 +EBUILD urwidtrees-1.0.2.ebuild 999 SHA256 80cfa74405685c7c8491f5f23ea0e706d7b7e766bb5376d4455dde6ce715b80f SHA512 be59e306af6a8ea0bf17c2f47f2d653d4f78372d48d7bef595359b37f0852c55ae7dbd4277d6fd0f7abcd8c10bb2fc12db224576ab1b8b3c1337eed8ef569959 WHIRLPOOL 5abfc3da845487b4a0425b6526d695551643087773fc06b87b77b3c1f7c96ad09cc156cc11c425cc97ddaa87eb48abd98a304175ea12fbde67dd672ebea5e26d +MISC ChangeLog 1043 SHA256 216f26fb025754bd77c6632d7908aa3225ab174e5896c7c81e8a04c4c11619c0 SHA512 466ab715b93c86f4ed6814b50009db04980b9e8dc653eebf623ded64a50b02d5238766e41cac32201d5163ca2d8dde29da94cd2e1d7459d9afa02566e0933f71 WHIRLPOOL 022d2a45cccae419ee2a01dccee84f0bb617a3546f1dc821ae80e71c35aa145ebbec6806f0a6e84dc4e9fed35b5c5c467156ea56a8bf9e621d78f166fcf9eab6 +MISC metadata.xml 550 SHA256 a93fdd8fd7183b509fece7543cf82ce8bf32498b8ab21418c49b17d261959b73 SHA512 f76048059f997bb98de85f445bcd77a5fd1f0523a3c1a77859e0bf1dcdd1ef6f4a99312e7a0261b36753a9b2152231cb84b41f6270c028983033fcce6ec12298 WHIRLPOOL e6856be350b81f53dd585a6af9b7119e6c30337e0f14896756d1e32a091f40c6b9fe9ed048434b5f8c6965db834ccdf0c85f72a06ba725e9d599c0345b8a8d32 diff --git a/dev-python/urwidtrees/metadata.xml b/dev-python/urwidtrees/metadata.xml new file mode 100644 index 000000000000..142b19f2d854 --- /dev/null +++ b/dev-python/urwidtrees/metadata.xml @@ -0,0 +1,16 @@ + + + + + aidecoe@gentoo.org + Amadeusz Żołnowski + + + 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 + + diff --git a/dev-python/urwidtrees/urwidtrees-1.0.2.ebuild b/dev-python/urwidtrees/urwidtrees-1.0.2.ebuild new file mode 100644 index 000000000000..866c17183b5b --- /dev/null +++ b/dev-python/urwidtrees/urwidtrees-1.0.2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 ) + +inherit distutils-r1 + +DESCRIPTION="Tree widgets for urwid" +HOMEPAGE="https://github.com/pazz/urwidtrees" +#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +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 "${S}" -name '*.py' -print0 | xargs -0 -- sed \ + -e '1i# -*- coding: utf-8 -*-' -i || die + + distutils-r1_src_prepare + + local md + for md in *.md; do + mv "${md}" "${md%.md}" + done +} + +src_compile() { + distutils-r1_src_compile + + if use doc; then + pushd docs || die + emake html + popd || die + fi +} + +src_install() { + distutils-r1_src_install + + if use doc; then + dohtml -r docs/build/html/* + fi +} -- cgit v1.2.3