1 |
commit: 9fee34c9cc1ada4d5bb5729338b79f43f8e25570 |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 26 08:20:57 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 26 08:31:27 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fee34c9 |
7 |
|
8 |
app-emacs/emacs-ipython-notebook: correctly depend on py packages |
9 |
|
10 |
fix QA - correctly depend on python packages |
11 |
|
12 |
Closes: https://bugs.gentoo.org/872986 |
13 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
14 |
|
15 |
...macs-ipython-notebook-0.17.0_p20220419-r1.ebuild} | 20 +++++++++++++++----- |
16 |
1 file changed, 15 insertions(+), 5 deletions(-) |
17 |
|
18 |
diff --git a/app-emacs/emacs-ipython-notebook/emacs-ipython-notebook-0.17.0_p20220419.ebuild b/app-emacs/emacs-ipython-notebook/emacs-ipython-notebook-0.17.0_p20220419-r1.ebuild |
19 |
similarity index 80% |
20 |
rename from app-emacs/emacs-ipython-notebook/emacs-ipython-notebook-0.17.0_p20220419.ebuild |
21 |
rename to app-emacs/emacs-ipython-notebook/emacs-ipython-notebook-0.17.0_p20220419-r1.ebuild |
22 |
index e04873c402a4..1d67af472a51 100644 |
23 |
--- a/app-emacs/emacs-ipython-notebook/emacs-ipython-notebook-0.17.0_p20220419.ebuild |
24 |
+++ b/app-emacs/emacs-ipython-notebook/emacs-ipython-notebook-0.17.0_p20220419-r1.ebuild |
25 |
@@ -8,8 +8,9 @@ EAPI=8 |
26 |
|
27 |
H=388c8f753cfb99b4f82acbdff26bbe27189d2299 |
28 |
NEED_EMACS=25 |
29 |
+PYTHON_COMPAT=( python3_{8..10} ) |
30 |
|
31 |
-inherit elisp readme.gentoo-r1 |
32 |
+inherit elisp readme.gentoo-r1 python-single-r1 |
33 |
|
34 |
DESCRIPTION="Jupyter notebook client in Emacs" |
35 |
HOMEPAGE="https://github.com/millejoh/emacs-ipython-notebook/" |
36 |
@@ -21,8 +22,10 @@ KEYWORDS="~amd64 ~x86" |
37 |
SLOT="0" |
38 |
IUSE="test" |
39 |
RESTRICT="!test? ( test )" |
40 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
41 |
|
42 |
RDEPEND=" |
43 |
+ ${PYTHON_DEPS} |
44 |
app-emacs/anaphora |
45 |
app-emacs/dash |
46 |
app-emacs/deferred |
47 |
@@ -30,9 +33,11 @@ RDEPEND=" |
48 |
app-emacs/request |
49 |
app-emacs/websocket |
50 |
app-emacs/with-editor |
51 |
- dev-python/ipython |
52 |
- dev-python/notebook |
53 |
- dev-python/tornado |
54 |
+ $(python_gen_cond_dep ' |
55 |
+ dev-python/ipython[${PYTHON_USEDEP}] |
56 |
+ dev-python/notebook[${PYTHON_USEDEP}] |
57 |
+ dev-python/tornado[${PYTHON_USEDEP}] |
58 |
+ ') |
59 |
" |
60 |
BDEPEND=" |
61 |
${RDEPEND} |
62 |
@@ -52,13 +57,18 @@ DOC_CONTENTS="There may be problems with connecting to Jupyter Notebooks |
63 |
|
64 |
SITEFILE="50${PN}-gentoo.el" |
65 |
|
66 |
+pkg_setup() { |
67 |
+ elisp_pkg_setup |
68 |
+ python-single-r1_pkg_setup |
69 |
+} |
70 |
+ |
71 |
src_compile() { |
72 |
BYTECOMPFLAGS="-L lisp" elisp-compile lisp/*.el |
73 |
} |
74 |
|
75 |
src_test() { |
76 |
ert-runner -L lisp -L test -l test/testein.el \ |
77 |
- --reporter ert+duration test/test-ein*.el || die |
78 |
+ --reporter ert+duration test/test-ein*.el || die |
79 |
} |
80 |
|
81 |
src_install() { |