1 |
commit: 19d6e50f932fda793635949d84aad549c069dd89 |
2 |
Author: Joonas Niilola <juippis <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Aug 27 11:08:03 2018 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 31 22:12:33 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19d6e50f |
7 |
|
8 |
dev-python/python-efl: version bump to 1.21.0. |
9 |
|
10 |
- Enabled python3.7 |
11 |
|
12 |
Package-Manager: Portage[mgorny]-2.3.43.3 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/9708 |
14 |
|
15 |
dev-python/python-efl/Manifest | 1 + |
16 |
dev-python/python-efl/python-efl-1.21.0.ebuild | 74 ++++++++++++++++++++++++++ |
17 |
2 files changed, 75 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/python-efl/Manifest b/dev-python/python-efl/Manifest |
20 |
index 6a61c48d106..b07cb0b5091 100644 |
21 |
--- a/dev-python/python-efl/Manifest |
22 |
+++ b/dev-python/python-efl/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST python-efl-1.18.0.tar.xz 8927932 BLAKE2B c1b41e1316c78fc42cf21541aba386dce799f1ec26549dda8c547de4cf47870a100070bb442d21116ce956808bcf948eba96601343512ba61fb1fc472e2574be SHA512 c1fc8d4129c2ac61b367ad373ad676a60cf0aed4c9150104d7e81bf464c44a3a5ae555d2298bbf1bdf6a3d6ba3b7d934af390e36755a1516972db2675d920c2b |
25 |
DIST python-efl-1.20.0.tar.xz 8984492 BLAKE2B 526c530d7b8dad59d01cefcbb6cad2710cb46c3b62eb0b2746c3552c8c1ef42cc4691072fbbce16a8a3b6ea9d6b5651a3645ca739e569a0f4db3dd9988ddf2fa SHA512 93d8d6c990350074e203bf3632d92b5253f34f318b30357b05ab5ab73a9f6656d127ff0c1831af1bf7c736822b483c12754085e52103eb0e41362cc28db5651f |
26 |
+DIST python-efl-1.21.0.tar.xz 9544352 BLAKE2B b49fc0e0d795a0334f647f414673fdaf3b086eda35f9e2d0e9e6a03d2cde572e6076eeb62c4f977b770a72e8f14d4ae536f46d0510b8753088d80e2dfc98e43f SHA512 23a8487b660e9885a1d43a4835c560edd8d27eeb9aa44f9e1878ac1d1acf9833fc62c14036fe0fe5e0bd1144cb993b0b67bcf42c78db8505ca1b8aad0715350f |
27 |
|
28 |
diff --git a/dev-python/python-efl/python-efl-1.21.0.ebuild b/dev-python/python-efl/python-efl-1.21.0.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..923b11076c6 |
31 |
--- /dev/null |
32 |
+++ b/dev-python/python-efl/python-efl-1.21.0.ebuild |
33 |
@@ -0,0 +1,74 @@ |
34 |
+# Copyright 1999-2018 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python2_7 python3_{4..7} ) |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+DESCRIPTION="Python bindings for Enlightenment Foundation Libraries" |
43 |
+HOMEPAGE="https://phab.enlightenment.org/w/projects/python_bindings_for_efl/" |
44 |
+SRC_URI="https://download.enlightenment.org/rel/bindings/python/${P}.tar.xz" |
45 |
+ |
46 |
+LICENSE="|| ( GPL-3 LGPL-3 )" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+IUSE="doc test" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ =dev-libs/efl-1.21* |
53 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
54 |
+" |
55 |
+DEPEND=" |
56 |
+ ${RDEPEND} |
57 |
+ >=dev-python/cython-0.28.4[${PYTHON_USEDEP}] |
58 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
59 |
+ virtual/pkgconfig |
60 |
+ doc? ( |
61 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
62 |
+ media-gfx/graphviz |
63 |
+ ) |
64 |
+" |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ default |
68 |
+ |
69 |
+ # Tries to download a file under /tmp |
70 |
+ rm tests/ecore/test_09_file_download.py || die |
71 |
+ |
72 |
+ # Tries to use that file which failed to download |
73 |
+ rm tests/ecore/test_10_file_monitor.py || die |
74 |
+ |
75 |
+ # Needs an active internet connetion |
76 |
+ rm tests/ecore/test_11_con.py || die |
77 |
+ |
78 |
+ # Test fails because of deleted files above |
79 |
+ sed -i 's/>= 13/>= 10/g' tests/ecore/test_08_exe.py || die |
80 |
+ |
81 |
+ # Make tests verbose |
82 |
+ sed -i 's:verbosity=1:verbosity=3:' tests/00_run_all_tests.py || die |
83 |
+} |
84 |
+ |
85 |
+python_compile_all() { |
86 |
+ if use doc ; then |
87 |
+ # Point sphinx to right location with built sources |
88 |
+ sed -i 's|"../build/"+d|"'"${BUILD_DIR}"'/lib"|g' doc/conf.py || die |
89 |
+ |
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 |
+ if use doc ; then |
103 |
+ local HTML_DOCS=( build/doc/html/. ) |
104 |
+ fi |
105 |
+ |
106 |
+ distutils-r1_python_install_all |
107 |
+} |