Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-efl/
Date: Thu, 30 Apr 2020 13:41:14
Message-Id: 1588254061.5489297915d3763c226f58bc3f5a4bd4e23e1544.juippis@gentoo
1 commit: 5489297915d3763c226f58bc3f5a4bd4e23e1544
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 30 13:40:44 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 30 13:41:01 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54892979
7
8 dev-python/python-efl: bump to 1.24.0
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 dev-python/python-efl/Manifest | 1 +
13 dev-python/python-efl/python-efl-1.24.0.ebuild | 73 ++++++++++++++++++++++++++
14 2 files changed, 74 insertions(+)
15
16 diff --git a/dev-python/python-efl/Manifest b/dev-python/python-efl/Manifest
17 index 55ba6363873..3e2ca161f2d 100644
18 --- a/dev-python/python-efl/Manifest
19 +++ b/dev-python/python-efl/Manifest
20 @@ -1 +1,2 @@
21 DIST python-efl-1.23.0.tar.xz 9524832 BLAKE2B d738d3481a0805490c756d38fe169e7d54d9b4c8d6b18ba45265db029b28e59eec8d711675c3fcd52500e19cda8cabc49fb0a2d052d2b9be7800ff9f6dc78f75 SHA512 b2c4389795d704b8f0d8f2d0703b90b09daaeacf7a2d4b372d86f9e0b8f9e2f5b465f8651a0da7cb4bc1800357c317b9cb737afcb415fc0a4cdf4cbed62bdf85
22 +DIST python-efl-1.24.0.tar.xz 9535212 BLAKE2B ab9535d60af75422f3c055e56f3c6297f595afbf682970afcb21f597486b307504fa83ab894c2029fb681dda8d886d1fc837726d1c4ae62df7185fbc0073724a SHA512 5b57de58b2351f00f744454e6aaa16f7bf9cf72b7f73d07a2d98cda4d152eb65810513b5c04b1eda127b6f5caf56e4b9bc9a7c1ef98593edde26a9ed3be953c9
23
24 diff --git a/dev-python/python-efl/python-efl-1.24.0.ebuild b/dev-python/python-efl/python-efl-1.24.0.ebuild
25 new file mode 100644
26 index 00000000000..c084d1a1477
27 --- /dev/null
28 +++ b/dev-python/python-efl/python-efl-1.24.0.ebuild
29 @@ -0,0 +1,73 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{6..8} )
36 +DISTUTILS_USE_SETUPTOOLS=no
37 +
38 +inherit distutils-r1 flag-o-matic
39 +
40 +DESCRIPTION="Python bindings for Enlightenment Foundation Libraries"
41 +HOMEPAGE="https://phab.enlightenment.org/w/projects/python_bindings_for_efl/"
42 +SRC_URI="https://download.enlightenment.org/rel/bindings/python/${P}.tar.xz"
43 +
44 +LICENSE="|| ( GPL-3 LGPL-3 )"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="doc test"
48 +
49 +RESTRICT="!test? ( test )"
50 +
51 +RDEPEND="=dev-libs/efl-1.24*
52 + dev-python/dbus-python[${PYTHON_USEDEP}]"
53 +DEPEND="${RDEPEND}
54 + dev-python/cython[${PYTHON_USEDEP}]"
55 +BDEPEND="virtual/pkgconfig
56 + doc? (
57 + dev-python/sphinx[${PYTHON_USEDEP}]
58 + media-gfx/graphviz
59 + )"
60 +
61 +src_prepare() {
62 + default
63 +
64 + # Tries to download a file under /tmp
65 + rm tests/ecore/test_09_file_download.py || die
66 +
67 + # Tries to use that file which failed to download
68 + rm tests/ecore/test_10_file_monitor.py || die
69 +
70 + # Needs an active internet connection
71 + rm tests/ecore/test_11_con.py || die
72 +
73 + # Test fails because of deleted files above
74 + sed -i 's/>= 13/>= 10/g' tests/ecore/test_08_exe.py || die
75 +
76 + # Make tests verbose
77 + sed -i 's:verbosity=1:verbosity=3:' tests/00_run_all_tests.py || die
78 +
79 + # Disable any optimization on x86, #704260
80 + if use x86; then
81 + filter-flags -O?
82 + append-cflags -O0
83 + fi
84 +}
85 +
86 +python_compile_all() {
87 + if use doc ; then
88 + esetup.py build_doc --build-dir "${S}"/build/doc/
89 + fi
90 +
91 + distutils-r1_python_compile
92 +}
93 +
94 +python_test() {
95 + cd tests/ || die
96 + ${EPYTHON} 00_run_all_tests.py --verbose || die "Tests failed with ${EPYTHON}"
97 +}
98 +
99 +python_install_all() {
100 + use doc && local HTML_DOCS=( ./build/doc/html/. )
101 + distutils-r1_python_install_all
102 +}