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/, dev-python/python-efl/files/
Date: Fri, 25 Sep 2020 07:02:53
Message-Id: 1601017363.48c23655785b084dda1a57ef700d13c01a8d43ae.juippis@gentoo
1 commit: 48c23655785b084dda1a57ef700d13c01a8d43ae
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 25 07:02:18 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 25 07:02:43 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48c23655
7
8 dev-python/python-efl: bump to 1.25
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 dev-python/python-efl/Manifest | 1 +
13 .../files/python-efl-1.25-clang-crosscompile.patch | 14 ++++
14 dev-python/python-efl/python-efl-1.25.0.ebuild | 75 ++++++++++++++++++++++
15 3 files changed, 90 insertions(+)
16
17 diff --git a/dev-python/python-efl/Manifest b/dev-python/python-efl/Manifest
18 index 5c40865fe97..b3efa8b5067 100644
19 --- a/dev-python/python-efl/Manifest
20 +++ b/dev-python/python-efl/Manifest
21 @@ -1 +1,2 @@
22 DIST python-efl-1.24.0.tar.xz 9535212 BLAKE2B ab9535d60af75422f3c055e56f3c6297f595afbf682970afcb21f597486b307504fa83ab894c2029fb681dda8d886d1fc837726d1c4ae62df7185fbc0073724a SHA512 5b57de58b2351f00f744454e6aaa16f7bf9cf72b7f73d07a2d98cda4d152eb65810513b5c04b1eda127b6f5caf56e4b9bc9a7c1ef98593edde26a9ed3be953c9
23 +DIST python-efl-1.25.0.tar.xz 9543920 BLAKE2B fc2b951ade2fc2b7c32dd78a84800bc9f225499ee9d8431034b378c86e423181d918aba2c4d056974f3aa2df9cfb9c7b3dcf1c366362387048cde182c0b3128a SHA512 23ed29add25cd2639e9eb144f22c5e2809b8634389f7ab5c4b7ebc19302fde4ebb0fe8c41d7b10923e658676c4dfbb8670fda16675682fd376258beecbc3d9c3
24
25 diff --git a/dev-python/python-efl/files/python-efl-1.25-clang-crosscompile.patch b/dev-python/python-efl/files/python-efl-1.25-clang-crosscompile.patch
26 new file mode 100644
27 index 00000000000..856aed8474e
28 --- /dev/null
29 +++ b/dev-python/python-efl/files/python-efl-1.25-clang-crosscompile.patch
30 @@ -0,0 +1,14 @@
31 +diff -Naur a/setup.py b/setup.py
32 +--- a/setup.py 2020-06-25 19:46:38.312786000 +0300
33 ++++ b/setup.py 2020-09-25 09:52:34.830587205 +0300
34 +@@ -221,6 +221,10 @@
35 + # remove clang unknown flags
36 + if os.getenv("CC") == "clang":
37 + common_cflags.remove('-fno-var-tracking-assignments')
38 ++if os.getenv("CC") == "x86_64-pc-linux-gnu-clang":
39 ++ common_cflags.remove('-fno-var-tracking-assignments')
40 ++if os.getenv("CC") == "i686-pc-linux-gnu-clang":
41 ++ common_cflags.remove('-fno-var-tracking-assignments')
42 +
43 +
44 + if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
45
46 diff --git a/dev-python/python-efl/python-efl-1.25.0.ebuild b/dev-python/python-efl/python-efl-1.25.0.ebuild
47 new file mode 100644
48 index 00000000000..097475df6fa
49 --- /dev/null
50 +++ b/dev-python/python-efl/python-efl-1.25.0.ebuild
51 @@ -0,0 +1,75 @@
52 +# Copyright 1999-2020 Gentoo Authors
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=7
56 +
57 +PYTHON_COMPAT=( python3_{6..9} )
58 +DISTUTILS_USE_SETUPTOOLS=no
59 +
60 +inherit distutils-r1 flag-o-matic
61 +
62 +DESCRIPTION="Python bindings for Enlightenment Foundation Libraries"
63 +HOMEPAGE="https://phab.enlightenment.org/w/projects/python_bindings_for_efl/"
64 +SRC_URI="https://download.enlightenment.org/rel/bindings/python/${P}.tar.xz"
65 +
66 +LICENSE="|| ( GPL-3 LGPL-3 )"
67 +SLOT="0"
68 +KEYWORDS="~amd64 ~x86"
69 +IUSE="doc test"
70 +
71 +RESTRICT="!test? ( test )"
72 +
73 +RDEPEND="=dev-libs/efl-$(ver_cut 1-2)*
74 + dev-python/dbus-python[${PYTHON_USEDEP}]"
75 +DEPEND="${RDEPEND}
76 + dev-python/cython[${PYTHON_USEDEP}]"
77 +BDEPEND="virtual/pkgconfig
78 + doc? (
79 + dev-python/sphinx[${PYTHON_USEDEP}]
80 + media-gfx/graphviz
81 + )"
82 +
83 +PATCHES=( "${FILESDIR}/python-efl-1.25-clang-crosscompile.patch" )
84 +
85 +src_prepare() {
86 + default
87 +
88 + # Tries to download a file under /tmp
89 + rm tests/ecore/test_09_file_download.py || die
90 +
91 + # Tries to use that file which failed to download
92 + rm tests/ecore/test_10_file_monitor.py || die
93 +
94 + # Needs an active internet connection
95 + rm tests/ecore/test_11_con.py || die
96 +
97 + # Test fails because of deleted files above
98 + sed -i 's/>= 13/>= 10/g' tests/ecore/test_08_exe.py || die
99 +
100 + # Make tests verbose
101 + sed -i 's:verbosity=1:verbosity=3:' tests/00_run_all_tests.py || die
102 +
103 + # Disable any optimization on x86, #704260
104 + if use x86; then
105 + filter-flags -O?
106 + append-cflags -O0
107 + fi
108 +}
109 +
110 +python_compile_all() {
111 + if use doc ; then
112 + esetup.py build_doc --build-dir "${S}"/build/doc/
113 + fi
114 +
115 + distutils-r1_python_compile
116 +}
117 +
118 +python_test() {
119 + cd tests/ || die
120 + ${EPYTHON} 00_run_all_tests.py --verbose || die "Tests failed with ${EPYTHON}"
121 +}
122 +
123 +python_install_all() {
124 + use doc && local HTML_DOCS=( ./build/doc/html/. )
125 + distutils-r1_python_install_all
126 +}