From 8c500e1726d817883435b72c6bc7dffcc9b512e5 Mon Sep 17 00:00:00 2001 From: Tim Harder Date: Sun, 25 Feb 2018 19:37:20 -0500 Subject: [PATCH] dev-python/urwid: version bump to 2.0.1 --- dev-python/urwid/Manifest | 1 + dev-python/urwid/urwid-2.0.1.ebuild | 49 +++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 dev-python/urwid/urwid-2.0.1.ebuild diff --git a/dev-python/urwid/Manifest b/dev-python/urwid/Manifest index 78d00afef41a..12e571c25727 100644 --- a/dev-python/urwid/Manifest +++ b/dev-python/urwid/Manifest @@ -1 +1,2 @@ DIST urwid-1.3.1.tar.gz 588549 BLAKE2B b2e135fa1ba60ef75f6d748c7a51e5eecef2c7fd51e19782c4901ab2715c6afc01ac709cd79c74e3da9b8671dfd021c968aaf7c3fa393e607e0ed9ac54bcbbb4 SHA512 8b505d38f3a0c04bbf527b324dc36212f2580213dd55eca61c66705d3beaac4f074c39aaa0f4f71add1fe5f3fce4c4c6dc88dd1e981b04bac6d52195d7a3f0ed +DIST urwid-2.0.1.tar.gz 604167 BLAKE2B 0c7c289175d023bb14fca2c48eeec9e149af301827874c17d3087532f19d120ca2208306db44c5fbfd28b68f4b192f176cd46b83e915a5cbb8200e442e69fedb SHA512 99c86a26b08c624c23207ce8e587e8442bece1f522e0c788600ad5f01a4c679efff95dd947edade8b6f4adc376edca949a40c305f9d5ddaf6a0ff97f13c6da30 diff --git a/dev-python/urwid/urwid-2.0.1.ebuild b/dev-python/urwid/urwid-2.0.1.ebuild new file mode 100644 index 000000000000..1166fc2568b3 --- /dev/null +++ b/dev-python/urwid/urwid-2.0.1.ebuild @@ -0,0 +1,49 @@ +# 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} ) +PYTHON_REQ_USE="ncurses" + +inherit distutils-r1 + +DESCRIPTION="Curses-based user interface library for Python" +HOMEPAGE="http://urwid.org/ https://pypi.python.org/pypi/urwid/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) +" + +python_compile_all() { + if use doc; then + sphinx-build docs _build/html || die + fi +} + +python_compile() { + if ! python_is_python3; then + local CFLAGS="${CFLAGS} -fno-strict-aliasing" + export CFLAGS + fi + + distutils-r1_python_compile +} + +python_test() { + esetup.py test +} + +python_install_all() { + use examples && dodoc -r examples + use doc && local HTML_DOCS=( _build/html/. ) + + distutils-r1_python_install_all +} -- 2.26.2