Gentoo Archives: gentoo-commits

From: Slawek Lis <slis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/Kivy/
Date: Wed, 29 Mar 2017 09:33:45
Message-Id: 1490779994.6b6029857a071b7baedffe18fce6d49bf6be181f.slis@gentoo
1 commit: 6b6029857a071b7baedffe18fce6d49bf6be181f
2 Author: Slawomir Lis <slis <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 29 09:30:38 2017 +0000
4 Commit: Slawek Lis <slis <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 29 09:33:14 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b602985
7
8 dev-python/Kivy: fixed installing examples
9
10 Reported in #613354. In EAPI 6 using EXAMPLES var is banned. Fixed.
11
12 Reported-By: MaurizioB
13 Package-Manager: Portage-2.3.5, Repoman-2.3.2
14
15 dev-python/Kivy/Kivy-1.9.1-r1.ebuild | 71 ++++++++++++++++++++++++++++++++++++
16 1 file changed, 71 insertions(+)
17
18 diff --git a/dev-python/Kivy/Kivy-1.9.1-r1.ebuild b/dev-python/Kivy/Kivy-1.9.1-r1.ebuild
19 new file mode 100644
20 index 00000000000..e21b01c75f5
21 --- /dev/null
22 +++ b/dev-python/Kivy/Kivy-1.9.1-r1.ebuild
23 @@ -0,0 +1,71 @@
24 +# Copyright 1999-2017 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=6
28 +
29 +PYTHON_COMPAT=( python{2_7,3_4,3_5} )
30 +
31 +inherit distutils-r1
32 +
33 +DISTUTILS_IN_SOURCE_BUILD=1
34 +
35 +DESCRIPTION="Library for rapid development of hardware-accelerated multitouch applications"
36 +HOMEPAGE="http://kivy.org/"
37 +SRC_URI="https://pypi.io/packages/source/${PN:0:1}/${PN}/${P,,}.tar.gz"
38 +
39 +LICENSE="MIT"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~x86"
42 +IUSE="cairo camera doc examples garden gstreamer +sdl spell test"
43 +
44 +RDEPEND="
45 + dev-python/pillow[${PYTHON_USEDEP}]
46 + cairo? ( dev-python/pycairo[${PYTHON_USEDEP}] )
47 + camera? ( media-libs/opencv:0/2.4[$(python_gen_usedep 'python2_7')] )
48 + garden? ( dev-python/kivy-garden[${PYTHON_USEDEP}] )
49 + gstreamer? ( dev-python/gst-python:1.0[${PYTHON_USEDEP}] )
50 + sdl? ( media-libs/libsdl2
51 + media-libs/sdl2-ttf
52 + media-libs/sdl2-image
53 + media-libs/sdl2-mixer )
54 + !sdl? ( dev-python/pygame[${PYTHON_USEDEP}] )
55 + spell? ( dev-python/pyenchant[${PYTHON_USEDEP}] )"
56 +DEPEND="${RDEPEND}
57 + dev-python/cython[${PYTHON_USEDEP}]
58 + dev-python/setuptools[${PYTHON_USEDEP}]
59 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
60 + test? ( dev-python/nose[${PYTHON_USEDEP}] )"
61 +
62 +S="${WORKDIR}/${P,,}"
63 +
64 +python_prepare_all() {
65 + sed -e '/data_files=/d' -i "${S}/setup.py" || die
66 + sed -e 's/PYTHON = python/PYTHON ?= python/' -i Makefile || die
67 +
68 + export USE_SDL2=$(usex sdl 1 0)
69 + export USE_GSTREAMER=$(usex gstreamer 1 0)
70 + export KIVY_USE_SETUPTOOLS=1
71 + distutils-r1_python_prepare_all
72 +}
73 +
74 +python_compile() {
75 + esetup.py build_ext --inplace
76 + esetup.py build
77 +}
78 +
79 +python_compile_all() {
80 + use doc && emake html
81 +}
82 +
83 +python_test() {
84 + emake test PYTHON="${PYTHON}"
85 +}
86 +
87 +python_install_all() {
88 + use doc && HTML_DOCS=( doc/build/html/. )
89 + if use examples; then
90 + insinto "/usr/share/doc/${PF}/examples/${f}/"
91 + doins "${S}/examples"/* "${S}/examples"/*/*
92 + fi
93 + distutils-r1_python_install_all
94 +}