Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-efl/
Date: Thu, 25 May 2017 21:08:37
Message-Id: 1495746499.f710b83c668c8405368235e04f90dbacb91e8860.monsieurp@gentoo
1 commit: f710b83c668c8405368235e04f90dbacb91e8860
2 Author: Bertrand Jacquin <bertrand <AT> jacquin <DOT> bzh>
3 AuthorDate: Sat Mar 18 15:28:47 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu May 25 21:08:19 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f710b83c
7
8 dev-python/python-efl: version bump.
9
10 See: https://sourceforge.net/p/enlightenment/mailman/message/35295082/
11
12 Package-Manager: Portage-2.3.3, Repoman-2.3.1
13 Closes: https://github.com/gentoo/gentoo/pull/4238
14
15 dev-python/python-efl/Manifest | 1 +
16 dev-python/python-efl/python-efl-1.18.0.ebuild | 61 ++++++++++++++++++++++++++
17 2 files changed, 62 insertions(+)
18
19 diff --git a/dev-python/python-efl/Manifest b/dev-python/python-efl/Manifest
20 index c5b71b0cda2..a2fd4cca880 100644
21 --- a/dev-python/python-efl/Manifest
22 +++ b/dev-python/python-efl/Manifest
23 @@ -1 +1,2 @@
24 DIST python-efl-1.17.0.tar.xz 8835228 SHA256 9ea0fe0938bd4a970206b2b18f46f4d2a4fd1994e9b5f84af2d5f9fa98739179 SHA512 ff610dbacf72853b6c8fb1dcd41451f97156845efeb67a2d5d6c35d9b20c0f024c145a26a579f675bc2ad5844c23e58d8b21a09374aa195174f1a0c6316c0de4 WHIRLPOOL 0ee05c0cb175128c4719883a4c362ce4b3f98a93a7d960e47be2fa60a375748fc89599a111277d77a44caa9c96ad509d5b1c14c1ebafeb739461914560f2b4ed
25 +DIST python-efl-1.18.0.tar.xz 8927932 SHA256 1751e119c3fc4ee842c00ae3d667d6bda88d92eff424b06a31e9407db8ee225d SHA512 c1fc8d4129c2ac61b367ad373ad676a60cf0aed4c9150104d7e81bf464c44a3a5ae555d2298bbf1bdf6a3d6ba3b7d934af390e36755a1516972db2675d920c2b WHIRLPOOL cb5e9df770b4dd5fae78b6e7ba0ff8e593f9fa5c1ee098a5976250e2b44e3c428b57ef58dd184abd50beef29af1c08574b8f84be4e3ce06218580f6e559e068a
26
27 diff --git a/dev-python/python-efl/python-efl-1.18.0.ebuild b/dev-python/python-efl/python-efl-1.18.0.ebuild
28 new file mode 100644
29 index 00000000000..cc8c0587849
30 --- /dev/null
31 +++ b/dev-python/python-efl/python-efl-1.18.0.ebuild
32 @@ -0,0 +1,61 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
39 +
40 +MY_P=${P/_/-}
41 +
42 +if [[ "${PV}" == "9999" ]]; then
43 + EGIT_SUB_PROJECT="bindings/python"
44 + EGIT_URI_APPEND="${PN}"
45 + EGIT_REPO_URI="git://git.enlightenment.org/${EGIT_SUB_PROJECT}/${EGIT_URI_APPEND}.git"
46 + inherit git-2
47 +else
48 + SRC_URI="https://download.enlightenment.org/rel/bindings/python/${MY_P}.tar.xz"
49 +fi
50 +
51 +inherit distutils-r1
52 +
53 +DESCRIPTION="Python bindings for Enlightenment Fundation Libraries"
54 +HOMEPAGE="http://www.enlightenment.org"
55 +
56 +LICENSE="|| ( GPL-3 LGPL-3 )"
57 +SLOT="0"
58 +KEYWORDS="~amd64 ~x86"
59 +IUSE="doc examples"
60 +
61 +RDEPEND=">=dev-libs/efl-${PV}
62 + >dev-python/dbus-python-0.83[${PYTHON_USEDEP}]"
63 +DEPEND="${RDEPEND}
64 + virtual/pkgconfig
65 + dev-python/setuptools[${PYTHON_USEDEP}]
66 + >=dev-python/cython-0.21[${PYTHON_USEDEP}]
67 + doc? (
68 + media-gfx/graphviz[python]
69 + dev-python/sphinx[${PYTHON_USEDEP}]
70 + )
71 + doc? ( >dev-python/sphinx-1.0[${PYTHON_USEDEP}] )"
72 +
73 +python_compile_all() {
74 + if use doc; then
75 + # Point sphinx to right location with built sources
76 + sed -i 's|"../build/"+d|"'"${BUILD_DIR}"'/lib"|g' doc/conf.py || die
77 + esetup.py build_doc --build-dir "${S}"/build/doc/
78 + fi
79 +}
80 +
81 +python_test() {
82 + cd "${S}"/tests || die
83 + # violates sandbox
84 + rm -f ecore/test_09_file_download.py || die
85 + sed -i 's:verbosity=1:verbosity=3:' 00_run_all_tests.py || die
86 + ${PYTHON} 00_run_all_tests.py --verbose || die "Tests failed with ${EPYTHON}"
87 +}
88 +
89 +python_install_all() {
90 + use doc && DOCS=( "${S}"/build/doc/html )
91 + use examples && EXAMPLES=( examples/. )
92 + distutils-r1_python_install_all
93 +}