Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/urwid/
Date: Tue, 03 Nov 2015 11:38:11
Message-Id: 1446550680.bb3662ace6cc8ead4655d5ec2f334d89aaa51edd.jlec@gentoo
1 commit: bb3662ace6cc8ead4655d5ec2f334d89aaa51edd
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 3 11:13:48 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 3 11:38:00 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb3662ac
7
8 dev-python/urwid: Version Bump
9
10 Package-Manager: portage-2.2.23
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 dev-python/urwid/Manifest | 1 +
14 dev-python/urwid/urwid-1.3.1.ebuild | 56 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 57 insertions(+)
16
17 diff --git a/dev-python/urwid/Manifest b/dev-python/urwid/Manifest
18 index 925335d..4f45224 100644
19 --- a/dev-python/urwid/Manifest
20 +++ b/dev-python/urwid/Manifest
21 @@ -1,2 +1,3 @@
22 DIST urwid-1.2.2.tar.gz 585025 SHA256 e122e2dee122314f5626945af4dbe15bf3de9f318c552a4c0b68c1c480852d92 SHA512 10d0271e52b28aff3350d3342cd9b1c8fab819f3619cce77286b2545b74dd967f0466e98dfbfef1189b3ab6b38392168367d75c768b0f5b8058666b0211706a5 WHIRLPOOL 69556a721d89f6a6b82664bf5eaa10a21c49d15f9b8e6e6be4ba31ce5e2317fd0ecebfa3d93b008f9bd93f10504161d93e1827d696a6c1baa09939ac628f027d
23 DIST urwid-1.3.0.tar.gz 580922 SHA256 29f04fad3bf0a79c5491f7ebec2d50fa086e9d16359896c9204c6a92bc07aba2 SHA512 2743488f2815e6abff8bf2450b2a3d5756fa026587512cf29a3850be0e585d7c2dd4d50fda7bf1589de32eed93637ac0ee88f002de4b9bee0a72dc6574ef6103 WHIRLPOOL c276c26deb557b1c4b8f9f49f7f6c10e0e5a169bc3a1b9c3933a948c313897da4ebdb0520b7fc3d0a301cbc5743a1d79a20e112d852e74b50910db6ea1a4e99e
24 +DIST urwid-1.3.1.tar.gz 588549 SHA256 cfcec03e36de25a1073e2e35c2c7b0cc6969b85745715c3a025a31d9786896a1 SHA512 8b505d38f3a0c04bbf527b324dc36212f2580213dd55eca61c66705d3beaac4f074c39aaa0f4f71add1fe5f3fce4c4c6dc88dd1e981b04bac6d52195d7a3f0ed WHIRLPOOL ff908dfad8e893fd51510168433a6bd63fe1edc38dde65664994f5eb3343e8fe818c4c1b9d5c296d3f3fdc93e2df7a3809f661e52322e6e69e163484b0e38944
25
26 diff --git a/dev-python/urwid/urwid-1.3.1.ebuild b/dev-python/urwid/urwid-1.3.1.ebuild
27 new file mode 100644
28 index 0000000..9c50621
29 --- /dev/null
30 +++ b/dev-python/urwid/urwid-1.3.1.ebuild
31 @@ -0,0 +1,56 @@
32 +# Copyright 1999-2015 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +
38 +PYTHON_COMPAT=( python2_7 python3_{3,4} )
39 +PYTHON_REQ_USE="ncurses"
40 +
41 +inherit distutils-r1
42 +
43 +DESCRIPTION="Curses-based user interface library for Python"
44 +HOMEPAGE="http://urwid.org/ https://pypi.python.org/pypi/urwid/"
45 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
46 +
47 +LICENSE="LGPL-2.1"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux"
50 +IUSE="doc examples"
51 +
52 +DEPEND="
53 + dev-python/setuptools[${PYTHON_USEDEP}]
54 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
55 +"
56 +
57 +PATCHES=( "${FILESDIR}"/${PN}-1.1.0-sphinx.patch )
58 +
59 +python_compile_all() {
60 + if use doc ; then
61 + if [[ ${EPYTHON} == python3* ]] ; then
62 + 2to3 -nw --no-diffs docs/conf.py || die
63 + fi
64 + cd docs
65 + sphinx-build . _build/html || die
66 + fi
67 +}
68 +
69 +python_compile() {
70 + if [[ ${EPYTHON} == python2* ]] ; then
71 + local CFLAGS="${CFLAGS} -fno-strict-aliasing"
72 + export CFLAGS
73 + fi
74 +
75 + distutils-r1_python_compile
76 +}
77 +
78 +python_test() {
79 + esetup.py test
80 +}
81 +
82 +python_install_all() {
83 + use examples && local EXAMPLES=( examples/. )
84 + use doc && local HTML_DOCS=( docs/_build/html/. )
85 +
86 + distutils-r1_python_install_all
87 +}