commit:     9fee34c9cc1ada4d5bb5729338b79f43f8e25570
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 26 08:20:57 2022 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Mon Sep 26 08:31:27 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fee34c9

app-emacs/emacs-ipython-notebook: correctly depend on py packages

fix QA - correctly depend on python packages

Closes: https://bugs.gentoo.org/872986
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 ...macs-ipython-notebook-0.17.0_p20220419-r1.ebuild} | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

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
similarity index 80%
rename from 
app-emacs/emacs-ipython-notebook/emacs-ipython-notebook-0.17.0_p20220419.ebuild
rename to 
app-emacs/emacs-ipython-notebook/emacs-ipython-notebook-0.17.0_p20220419-r1.ebuild
index e04873c402a4..1d67af472a51 100644
--- 
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
@@ -8,8 +8,9 @@ EAPI=8
 
 H=388c8f753cfb99b4f82acbdff26bbe27189d2299
 NEED_EMACS=25
+PYTHON_COMPAT=( python3_{8..10} )
 
-inherit elisp readme.gentoo-r1
+inherit elisp readme.gentoo-r1 python-single-r1
 
 DESCRIPTION="Jupyter notebook client in Emacs"
 HOMEPAGE="https://github.com/millejoh/emacs-ipython-notebook/";
@@ -21,8 +22,10 @@ KEYWORDS="~amd64 ~x86"
 SLOT="0"
 IUSE="test"
 RESTRICT="!test? ( test )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 RDEPEND="
+       ${PYTHON_DEPS}
        app-emacs/anaphora
        app-emacs/dash
        app-emacs/deferred
@@ -30,9 +33,11 @@ RDEPEND="
        app-emacs/request
        app-emacs/websocket
        app-emacs/with-editor
-       dev-python/ipython
-       dev-python/notebook
-       dev-python/tornado
+       $(python_gen_cond_dep '
+               dev-python/ipython[${PYTHON_USEDEP}]
+               dev-python/notebook[${PYTHON_USEDEP}]
+               dev-python/tornado[${PYTHON_USEDEP}]
+       ')
 "
 BDEPEND="
        ${RDEPEND}
@@ -52,13 +57,18 @@ DOC_CONTENTS="There may be problems with connecting to 
Jupyter Notebooks
 
 SITEFILE="50${PN}-gentoo.el"
 
+pkg_setup() {
+       elisp_pkg_setup
+       python-single-r1_pkg_setup
+}
+
 src_compile() {
        BYTECOMPFLAGS="-L lisp" elisp-compile lisp/*.el
 }
 
 src_test() {
        ert-runner -L lisp -L test -l test/testein.el \
-                          --reporter ert+duration test/test-ein*.el || die
+               --reporter ert+duration test/test-ein*.el || die
 }
 
 src_install() {

Reply via email to