1 |
commit: dd1fff4735b3bc62f9fa362955824943992a9edb |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 24 21:28:41 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 24 21:28:41 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd1fff47 |
7 |
|
8 |
dev-python/python-efl: new package #504592 |
9 |
|
10 |
Based on Martin Schötterl's ebuild. |
11 |
|
12 |
dev-python/python-efl/Manifest | 1 + |
13 |
dev-python/python-efl/metadata.xml | 5 +++ |
14 |
dev-python/python-efl/python-efl-1.16.0.ebuild | 62 ++++++++++++++++++++++++++ |
15 |
3 files changed, 68 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/python-efl/Manifest b/dev-python/python-efl/Manifest |
18 |
new file mode 100644 |
19 |
index 0000000..beada91 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/python-efl/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST python-efl-1.16.0.tar.xz 8737592 SHA256 3418ca7dc38f07bf610b9dcc7ce356bc8c45247a2100679bf840f640e2744e90 SHA512 6ee6f373b376af67af4124360482f7f0c2fb8b6e4c354ebba21c141a06be3f68ff17dcea45422c38d9e19595df035603df268aff74489007be6b9db13b861812 WHIRLPOOL 14cf92c31efae6a75de3d693075db8c3657519a60662db3373c8abef655d982f24e8ceddf10be605ec515b15d545ca4e2417767e3e48d68639e312f089bf2eff |
24 |
|
25 |
diff --git a/dev-python/python-efl/metadata.xml b/dev-python/python-efl/metadata.xml |
26 |
new file mode 100644 |
27 |
index 0000000..71cdd72 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/python-efl/metadata.xml |
30 |
@@ -0,0 +1,5 @@ |
31 |
+<?xml version='1.0' encoding='UTF-8'?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'> |
33 |
+<pkgmetadata> |
34 |
+<herd>enlightenment</herd> |
35 |
+</pkgmetadata> |
36 |
|
37 |
diff --git a/dev-python/python-efl/python-efl-1.16.0.ebuild b/dev-python/python-efl/python-efl-1.16.0.ebuild |
38 |
new file mode 100644 |
39 |
index 0000000..602a8f7 |
40 |
--- /dev/null |
41 |
+++ b/dev-python/python-efl/python-efl-1.16.0.ebuild |
42 |
@@ -0,0 +1,62 @@ |
43 |
+# Copyright 1999-2015 Gentoo Foundation |
44 |
+# Distributed under the terms of the GNU General Public License v2 |
45 |
+# $Id$ |
46 |
+ |
47 |
+EAPI="5" |
48 |
+ |
49 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
50 |
+ |
51 |
+MY_P=${P/_/-} |
52 |
+ |
53 |
+if [[ "${PV}" == "9999" ]] ; then |
54 |
+ EGIT_SUB_PROJECT="bindings/python" |
55 |
+ EGIT_URI_APPEND="${PN}" |
56 |
+ EGIT_REPO_URI="git://git.enlightenment.org/${EGIT_SUB_PROJECT}/${EGIT_URI_APPEND}.git" |
57 |
+ inherit git-2 |
58 |
+else |
59 |
+ SRC_URI="https://download.enlightenment.org/rel/bindings/python/${MY_P}.tar.xz" |
60 |
+fi |
61 |
+ |
62 |
+inherit distutils-r1 |
63 |
+ |
64 |
+DESCRIPTION="Python bindings for Enlightenment Fundation Libraries" |
65 |
+HOMEPAGE="http://www.enlightenment.org" |
66 |
+ |
67 |
+LICENSE="|| ( GPL-3 LGPL-3 )" |
68 |
+SLOT="0" |
69 |
+KEYWORDS="~amd64 ~x86" |
70 |
+IUSE="doc examples" |
71 |
+ |
72 |
+RDEPEND=">=dev-libs/efl-${PV} |
73 |
+ >=media-libs/elementary-${PV} |
74 |
+ >dev-python/dbus-python-0.83[${PYTHON_USEDEP}]" |
75 |
+DEPEND="${RDEPEND} |
76 |
+ virtual/pkgconfig |
77 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
78 |
+ >=dev-python/cython-0.17[${PYTHON_USEDEP}] |
79 |
+ doc? ( |
80 |
+ media-gfx/graphviz[python] |
81 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
82 |
+ ) |
83 |
+ doc? ( >dev-python/sphinx-1.0[${PYTHON_USEDEP}] )" |
84 |
+ |
85 |
+python_compile_all() { |
86 |
+ if use doc ; then |
87 |
+ # Point sphinx to right location with builded sources |
88 |
+ sed -i 's|"../build/"+d|"'"${BUILD_DIR}"'/lib"|g' doc/conf.py |
89 |
+ esetup.py build_doc --build-dir "${S}"/build/doc/ |
90 |
+ fi |
91 |
+} |
92 |
+ |
93 |
+python_test() { |
94 |
+ cd "${S}"/tests |
95 |
+ rm -f ecore/test_09_file_download.py # violates sandbox |
96 |
+ sed -i 's:verbosity=1:verbosity=3:' 00_run_all_tests.py || die |
97 |
+ ${PYTHON} 00_run_all_tests.py --verbose || die "Tests failed with ${EPYTHON}" |
98 |
+} |
99 |
+ |
100 |
+python_install_all() { |
101 |
+ use doc && DOCS=( "${S}"/build/doc/html ) |
102 |
+ use examples && EXAMPLES=( examples/. ) |
103 |
+ distutils-r1_python_install_all |
104 |
+} |