diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/urwid |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/urwid')
-rw-r--r-- | dev-python/urwid/Manifest | 7 | ||||
-rw-r--r-- | dev-python/urwid/files/urwid-1.1.0-sphinx.patch | 11 | ||||
-rw-r--r-- | dev-python/urwid/files/urwid-1.3.1-test-vterm-EINTR.patch | 52 | ||||
-rw-r--r-- | dev-python/urwid/metadata.xml | 28 | ||||
-rw-r--r-- | dev-python/urwid/urwid-1.3.1.ebuild | 58 |
5 files changed, 156 insertions, 0 deletions
diff --git a/dev-python/urwid/Manifest b/dev-python/urwid/Manifest new file mode 100644 index 000000000000..9efb7e8f665f --- /dev/null +++ b/dev-python/urwid/Manifest @@ -0,0 +1,7 @@ +AUX urwid-1.1.0-sphinx.patch 453 SHA256 a74171d46d011064c7e79068e725d4809e8cf100f853a4fdc22db363f8bd7ef2 SHA512 6156aba86718b5ccaf5eb6b1d6cddf61c5d1496b450ba0541fff55057070211e9a37bde96034d752a921ec4d2899084c36ec4743480c43cc89809734d644fa8a WHIRLPOOL f32d739d927113e52fc04c5398253ece1a183e284a2fb9992d760b0eb40895c6017fd0313afc9f33571af3b1541db7a84e88b7b060a92a929cfb792fa0cc1d96 +AUX urwid-1.3.1-test-vterm-EINTR.patch 1384 SHA256 05b954ed7782fa2ab1d6e5470a251febac0e7d85191fee027807be34e17301df SHA512 0746938ff78d98cda847adbe49f8848e603eca4d6460921e57ef8c211dd19a21aaa9027f83cb24c53e5396f4a3fdd194396ea82a457729b8b252306c00bfff97 WHIRLPOOL 45e34c1a29cfa776fdcac111784af0f2eb5b464be1f5ed81125344dc34b1b916be541bdaa6d4b469e8a3f481c76d09e7d1cb71915e1e6e81708fe39191bf6fe1 +DIST urwid-1.3.1.tar.gz 588549 SHA256 cfcec03e36de25a1073e2e35c2c7b0cc6969b85745715c3a025a31d9786896a1 SHA512 8b505d38f3a0c04bbf527b324dc36212f2580213dd55eca61c66705d3beaac4f074c39aaa0f4f71add1fe5f3fce4c4c6dc88dd1e981b04bac6d52195d7a3f0ed WHIRLPOOL ff908dfad8e893fd51510168433a6bd63fe1edc38dde65664994f5eb3343e8fe818c4c1b9d5c296d3f3fdc93e2df7a3809f661e52322e6e69e163484b0e38944 +EBUILD urwid-1.3.1.ebuild 1232 SHA256 2292f8ee9f40db9ab75deb2c4cc005f9ff25d6a576ed0c7f44695ed7e164b5a3 SHA512 a0a9c46d42b15392f43d4eaf53742c91ea33765c6cd7214145d5d2362398159df8db9f500addf9705713567e81abf4723cb0af1ec40c8e6ef52bcefdc70737e4 WHIRLPOOL c841bfe6c593adfecacb97f8eaa8e154c4e592c9b47e1b8e189251d4b588137cb34ea7c849c4c6f4839a4a75110e37c87f33111098540ba4450a3677a479520b +MISC ChangeLog 3771 SHA256 238d1dfdc0d0e425510877c68d60c7d4fcb3075dbe6675a496f8e331e83457fb SHA512 252a4d44c866d32cf2c41276d1a88f4b0b1cc04efb2a66e8172a992ea53492d334d57cff0477ab7a1632f02411d1298c67d5bc2a18df47e3268e13fb59801f43 WHIRLPOOL 5883edd48a199b29e729b864fd0d6bb55e02b4c7c02df727946e092f9571670ccbfad7fac198d0b398329c8ba478a9cc70cee3cd8a7e8b4b33dbc0a4fc931960 +MISC ChangeLog-2015 10619 SHA256 30068094e4c4a6811cb35d2107c64a1bc95383ebf3aec362939d3173de883f9d SHA512 e02d03174116e1de9f8cc9546e3580f0a91a98d5e593688478be1781cd5a60561716560327f351e573ebe57e4ea651e38715c19ac653eb8d4735760f61cb9b1e WHIRLPOOL efd32192e37b62fa9a48277c764dadaedb22c1a0fd99a3552241c11819759a3fa16395685f26676d0774e2b44a3f1d1f09c63e9843a5cf2342d4c8faee3438f6 +MISC metadata.xml 1152 SHA256 cb7c564529adb09d81505ca56b9b8a666fab325319695a2cc8e2f461eb65aec6 SHA512 4bb4df4cc9398e2b77815b908cfc3821a96370e083a7b4452d601009186bc2c29418987f6e9a25d64332a15b860addb66ee4594e30ea51f34a1eae2d8be0a680 WHIRLPOOL a385d4a5a08a1e84195af1a02861c375b3cb5198b34beb181f516dd9225ad7ece52cc69fd6f45f75daafb38887844de3e6b73693f1055ef58e3441f4de091bfb diff --git a/dev-python/urwid/files/urwid-1.1.0-sphinx.patch b/dev-python/urwid/files/urwid-1.1.0-sphinx.patch new file mode 100644 index 000000000000..442aeea67500 --- /dev/null +++ b/dev-python/urwid/files/urwid-1.1.0-sphinx.patch @@ -0,0 +1,11 @@ +--- urwid-1.1.0/docs/conf.py ++++ urwid-1.1.0/docs/conf.py +@@ -46,7 +46,7 @@ + # The version info for the project you're documenting, acts as replacement for + # |version| and |release|, also used in various other places throughout the + # built documents. +-FILE_PATH = os.path.dirname(__file__).decode('utf-8') ++FILE_PATH = os.path.dirname(__file__) + VERSION_MODULE = os.path.abspath(os.path.join(FILE_PATH, + '../urwid/version.py')) + VERSION_VARS = {} diff --git a/dev-python/urwid/files/urwid-1.3.1-test-vterm-EINTR.patch b/dev-python/urwid/files/urwid-1.3.1-test-vterm-EINTR.patch new file mode 100644 index 000000000000..04b6e2c949c4 --- /dev/null +++ b/dev-python/urwid/files/urwid-1.3.1-test-vterm-EINTR.patch @@ -0,0 +1,52 @@ +From f68f2cf089cfd5ec45863baf59a91d5aeb0cf5c3 Mon Sep 17 00:00:00 2001 +From: Mike Gilbert <floppym@gentoo.org> +Date: Sat, 3 Jun 2017 14:53:51 -0400 +Subject: [PATCH] test_vterm: handle EINTR when reading from pipe + +Fixes: https://github.com/urwid/urwid/issues/230 +--- + urwid/tests/test_vterm.py | 12 ++++++++++-- + 1 file changed, 10 insertions(+), 2 deletions(-) + +diff --git a/urwid/tests/test_vterm.py b/urwid/tests/test_vterm.py +index 4dadfcc..075c653 100644 +--- a/urwid/tests/test_vterm.py ++++ b/urwid/tests/test_vterm.py +@@ -18,6 +18,7 @@ + # + # Urwid web site: http://excess.org/urwid/ + ++import errno + import os + import sys + import unittest +@@ -28,7 +29,6 @@ + from urwid import signals + from urwid.compat import B + +- + class DummyCommand(object): + QUITSTRING = B('|||quit|||') + +@@ -41,12 +41,20 @@ def __call__(self): + stdout.write(B('\x1bc')) + + while True: +- data = os.read(self.reader, 1024) ++ data = self.read(1024) + if self.QUITSTRING == data: + break + stdout.write(data) + stdout.flush() + ++ def read(self, size): ++ while True: ++ try: ++ return os.read(self.reader, size) ++ except OSError as e: ++ if e.errno != errno.EINTR: ++ raise ++ + def write(self, data): + os.write(self.writer, data) + diff --git a/dev-python/urwid/metadata.xml b/dev-python/urwid/metadata.xml new file mode 100644 index 000000000000..cc6ab1eb0d40 --- /dev/null +++ b/dev-python/urwid/metadata.xml @@ -0,0 +1,28 @@ +<?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>Python</name> + </maintainer> + <longdescription> +Urwid is a curses-based user interface library. It includes many features +useful for text console application developers including: + +- Fluid interface resizing (xterm window resizing / fbset on Linux console) +- Web application display mode using Apache and CGI [Live Demo] +- Support for UTF-8, simple 8-bit and CJK encodings +- Multiple text alignment and wrapping modes built-in +- Ability create user-defined text layout classes +- Simple markup for setting text attributes +- Powerful list box that handles scrolling between different widget types +- List box contents may be managed with a user-defined class +- Flexible edit box for editing many different types of text +- Buttons, check boxes and radio boxes +- Customizable layout for all widgets +- Easy interface for creating HTML screen shots +</longdescription> + <upstream> + <remote-id type="pypi">urwid</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/urwid/urwid-1.3.1.ebuild b/dev-python/urwid/urwid-1.3.1.ebuild new file mode 100644 index 000000000000..5ef27046c964 --- /dev/null +++ b/dev-python/urwid/urwid-1.3.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 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}] ) +" + +PATCHES=( + "${FILESDIR}/${PN}-1.1.0-sphinx.patch" + "${FILESDIR}/${PN}-1.3.1-test-vterm-EINTR.patch" +) + +python_compile_all() { + if use doc; then + if python_is_python3; then + 2to3 -nw --no-diffs docs/conf.py || die + fi + cd docs || die + sphinx-build . _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=( docs/_build/html/. ) + + distutils-r1_python_install_all +} |