1 |
commit: 42fb7b0a717807906436b886ce5e5ae506467867 |
2 |
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> |
3 |
AuthorDate: Wed Sep 23 06:39:49 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 23 06:39:49 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=42fb7b0a |
7 |
|
8 |
dev-python/nbformat: Replace symlink |
9 |
|
10 |
dev-python/nbformat/nbformat-4.0.0.ebuild | 60 ++++++++++++++++++++++++++++++- |
11 |
dev-python/nbformat/nbformat-9999.ebuild | 11 ++---- |
12 |
2 files changed, 61 insertions(+), 10 deletions(-) |
13 |
|
14 |
diff --git a/dev-python/nbformat/nbformat-4.0.0.ebuild b/dev-python/nbformat/nbformat-4.0.0.ebuild |
15 |
deleted file mode 120000 |
16 |
index c2590aa..0000000 |
17 |
--- a/dev-python/nbformat/nbformat-4.0.0.ebuild |
18 |
+++ /dev/null |
19 |
@@ -1 +0,0 @@ |
20 |
-nbformat-9999.ebuild |
21 |
\ No newline at end of file |
22 |
|
23 |
diff --git a/dev-python/nbformat/nbformat-4.0.0.ebuild b/dev-python/nbformat/nbformat-4.0.0.ebuild |
24 |
new file mode 100644 |
25 |
index 0000000..cc116c0 |
26 |
--- /dev/null |
27 |
+++ b/dev-python/nbformat/nbformat-4.0.0.ebuild |
28 |
@@ -0,0 +1,59 @@ |
29 |
+# Copyright 1999-2015 Gentoo Foundation |
30 |
+# Distributed under the terms of the GNU General Public License v2 |
31 |
+# $Id$ |
32 |
+ |
33 |
+EAPI=5 |
34 |
+PYTHON_COMPAT=( python2_7 python{3_3,3_4} ) |
35 |
+PYTHON_REQ_USE='sqlite' |
36 |
+ |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="Reference implementation of the Jupyter Notebook format" |
40 |
+HOMEPAGE="http://jupyter.org" |
41 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
42 |
+KEYWORDS="~amd64 ~x86" |
43 |
+ |
44 |
+LICENSE="BSD" |
45 |
+SLOT="0" |
46 |
+IUSE="doc test" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ dev-python/jsonschema[${PYTHON_USEDEP}] |
50 |
+ dev-python/ipython_genutils[${PYTHON_USEDEP}] |
51 |
+ dev-python/traitlets[${PYTHON_USEDEP}] |
52 |
+ dev-python/jupyter_core[${PYTHON_USEDEP}] |
53 |
+ " |
54 |
+DEPEND="${RDEPEND} |
55 |
+ doc? ( |
56 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
57 |
+ dev-python/numpydoc[${PYTHON_USEDEP}] |
58 |
+ ) |
59 |
+ test? ( |
60 |
+ dev-python/nose[${PYTHON_USEDEP}] |
61 |
+ dev-python/coverage[${PYTHON_USEDEP}] |
62 |
+ ) |
63 |
+ " |
64 |
+ |
65 |
+python_prepare_all() { |
66 |
+ # Prevent un-needed download during build |
67 |
+ if use doc; then |
68 |
+ sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/conf.py || die |
69 |
+ fi |
70 |
+ |
71 |
+ distutils-r1_python_prepare_all |
72 |
+} |
73 |
+ |
74 |
+python_compile_all() { |
75 |
+ use doc && emake -C docs html |
76 |
+} |
77 |
+ |
78 |
+python_test() { |
79 |
+ distutils_install_for_testing |
80 |
+ cd "${TEST_DIR}"/lib || die |
81 |
+ nosetests --with-coverage --cover-package=nbformat nbformat || die |
82 |
+} |
83 |
+ |
84 |
+python_install_all() { |
85 |
+ use doc && HTML_DOCS=( docs/_build/html/. ) |
86 |
+ distutils-r1_python_install_all |
87 |
+} |
88 |
|
89 |
diff --git a/dev-python/nbformat/nbformat-9999.ebuild b/dev-python/nbformat/nbformat-9999.ebuild |
90 |
index 3461090..777cf59 100644 |
91 |
--- a/dev-python/nbformat/nbformat-9999.ebuild |
92 |
+++ b/dev-python/nbformat/nbformat-9999.ebuild |
93 |
@@ -6,18 +6,11 @@ EAPI=5 |
94 |
PYTHON_COMPAT=( python2_7 python{3_3,3_4} ) |
95 |
PYTHON_REQ_USE='sqlite' |
96 |
|
97 |
-inherit distutils-r1 |
98 |
+inherit distutils-r1 git-r3 |
99 |
|
100 |
DESCRIPTION="Reference implementation of the Jupyter Notebook format" |
101 |
HOMEPAGE="http://jupyter.org" |
102 |
- |
103 |
-if [ ${PV} == "9999" ] ; then |
104 |
- inherit git-r3 |
105 |
- EGIT_REPO_URI="https://github.com/jupyter/${PN}.git git://github.com/jupyter/${PN}.git" |
106 |
-else |
107 |
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
108 |
- KEYWORDS="~amd64 ~x86" |
109 |
-fi |
110 |
+EGIT_REPO_URI="https://github.com/jupyter/${PN}.git git://github.com/jupyter/${PN}.git" |
111 |
|
112 |
LICENSE="BSD" |
113 |
SLOT="0" |