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: Mon, 28 Feb 2022 06:46:53
Message-Id: 1646029833.3f6fb9f29533f90cdc15d631d9677df9803984d3.juippis@gentoo
1 commit: 3f6fb9f29533f90cdc15d631d9677df9803984d3
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 28 06:30:33 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 28 06:30:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f6fb9f2
7
8 dev-python/python-efl: add 1.26.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.26.0.ebuild | 75 ++++++++++++++++++++++++++
14 2 files changed, 76 insertions(+)
15
16 diff --git a/dev-python/python-efl/Manifest b/dev-python/python-efl/Manifest
17 index 85e4d62721f9..a3778d79aa83 100644
18 --- a/dev-python/python-efl/Manifest
19 +++ b/dev-python/python-efl/Manifest
20 @@ -1 +1,2 @@
21 DIST python-efl-1.25.0.tar.xz 9543920 BLAKE2B fc2b951ade2fc2b7c32dd78a84800bc9f225499ee9d8431034b378c86e423181d918aba2c4d056974f3aa2df9cfb9c7b3dcf1c366362387048cde182c0b3128a SHA512 23ed29add25cd2639e9eb144f22c5e2809b8634389f7ab5c4b7ebc19302fde4ebb0fe8c41d7b10923e658676c4dfbb8670fda16675682fd376258beecbc3d9c3
22 +DIST python-efl-1.26.0.tar.xz 9547648 BLAKE2B b6fd9e86695569291b416140c92316aeb4e3bd42d12fc3fd656b86fe7fae364720c8457c53828dc00838a68620fa604426d86c5d4bce02e94eaa82a4fed120ee SHA512 fe552a65d7d4d3e3664310e6bb7189c883c64361a64a2def04e8d14df3e5a03211e2992333f1c05288b96f1d99f20ad4ac848baea91d43db280dad81315e2473
23
24 diff --git a/dev-python/python-efl/python-efl-1.26.0.ebuild b/dev-python/python-efl/python-efl-1.26.0.ebuild
25 new file mode 100644
26 index 000000000000..aca401d2ac5b
27 --- /dev/null
28 +++ b/dev-python/python-efl/python-efl-1.26.0.ebuild
29 @@ -0,0 +1,75 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
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://github.com/DaveMDS/python-efl https://docs.enlightenment.org/python-efl/current/"
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 ~riscv ~x86"
47 +IUSE="doc test"
48 +
49 +RESTRICT="!test? ( test )"
50 +
51 +RDEPEND="=dev-libs/efl-$(ver_cut 1-2)*
52 + dev-python/dbus-python[${PYTHON_USEDEP}]"
53 +DEPEND="${RDEPEND}"
54 +BDEPEND="dev-python/cython[${PYTHON_USEDEP}]
55 + virtual/pkgconfig
56 + doc? (
57 + dev-python/sphinx[${PYTHON_USEDEP}]
58 + media-gfx/graphviz
59 + )"
60 +
61 +PATCHES=( "${FILESDIR}/python-efl-1.25-clang-crosscompile.patch" )
62 +
63 +src_prepare() {
64 + default
65 +
66 + # Tries to download a file under /tmp
67 + rm tests/ecore/test_09_file_download.py || die
68 +
69 + # Tries to use that file which failed to download
70 + rm tests/ecore/test_10_file_monitor.py || die
71 +
72 + # Needs an active internet connection
73 + rm tests/ecore/test_11_con.py || die
74 +
75 + # Test fails because of deleted files above
76 + sed -i 's/>= 13/>= 10/g' tests/ecore/test_08_exe.py || die
77 +
78 + # Make tests verbose
79 + sed -i 's:verbosity=1:verbosity=3:' tests/00_run_all_tests.py || die
80 +
81 + # Disable any optimization on x86, #704260
82 + if use x86; then
83 + filter-flags -O?
84 + append-cflags -O0
85 + fi
86 +}
87 +
88 +python_compile_all() {
89 + if use doc ; then
90 + esetup.py build_doc --build-dir "${S}"/build/doc/
91 + fi
92 +
93 + distutils-r1_python_compile
94 +}
95 +
96 +python_test() {
97 + cd tests/ || die
98 + ${EPYTHON} 00_run_all_tests.py --verbose || die "Tests failed with ${EPYTHON}"
99 +}
100 +
101 +python_install_all() {
102 + use doc && local HTML_DOCS=( ./build/doc/html/. )
103 + distutils-r1_python_install_all
104 +}