You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
1.9 KiB
80 lines
1.9 KiB
2 years ago
|
# Copyright 1999-2022 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
# NOTICE: Check package version in "lisp/ein-pkg.el".
|
||
|
# NOTICE: File "lisp/ein-pkg.el" is needed by the "ein:dev-sys-info" function.
|
||
|
|
||
|
EAPI=8
|
||
|
|
||
|
H=388c8f753cfb99b4f82acbdff26bbe27189d2299
|
||
|
NEED_EMACS=25
|
||
2 years ago
|
PYTHON_COMPAT=( python3_{8..10} )
|
||
2 years ago
|
|
||
2 years ago
|
inherit elisp readme.gentoo-r1 python-single-r1
|
||
2 years ago
|
|
||
|
DESCRIPTION="Jupyter notebook client in Emacs"
|
||
|
HOMEPAGE="https://github.com/millejoh/emacs-ipython-notebook/"
|
||
|
SRC_URI="https://github.com/millejoh/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz"
|
||
|
S="${WORKDIR}"/${PN}-${H}
|
||
|
|
||
|
LICENSE="GPL-3+"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
SLOT="0"
|
||
|
IUSE="test"
|
||
|
RESTRICT="!test? ( test )"
|
||
2 years ago
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||
2 years ago
|
|
||
|
RDEPEND="
|
||
2 years ago
|
${PYTHON_DEPS}
|
||
2 years ago
|
app-emacs/anaphora
|
||
|
app-emacs/dash
|
||
|
app-emacs/deferred
|
||
|
app-emacs/polymode
|
||
|
app-emacs/request
|
||
|
app-emacs/websocket
|
||
|
app-emacs/with-editor
|
||
2 years ago
|
$(python_gen_cond_dep '
|
||
|
dev-python/ipython[${PYTHON_USEDEP}]
|
||
|
dev-python/notebook[${PYTHON_USEDEP}]
|
||
|
dev-python/tornado[${PYTHON_USEDEP}]
|
||
|
')
|
||
2 years ago
|
"
|
||
|
BDEPEND="
|
||
|
${RDEPEND}
|
||
|
test? (
|
||
|
app-emacs/ert-runner
|
||
|
app-emacs/mocker
|
||
|
)
|
||
|
"
|
||
|
|
||
|
DOCS=( README.rst thumbnail.png )
|
||
|
DOC_CONTENTS="There may be problems with connecting to Jupyter Notebooks
|
||
|
because of the tokens, in that case you can try running \"jupyter
|
||
|
notebook\" with --NotebookApp.token=\"\" (and --NotebookApp.ip=127.0.0.1 to
|
||
|
limit connections only to local machine), but be warned that this can
|
||
|
compromise your system if used without caution! For reference check out
|
||
|
https://github.com/millejoh/emacs-ipython-notebook/issues/838"
|
||
|
|
||
|
SITEFILE="50${PN}-gentoo.el"
|
||
|
|
||
2 years ago
|
pkg_setup() {
|
||
|
elisp_pkg_setup
|
||
|
python-single-r1_pkg_setup
|
||
|
}
|
||
|
|
||
2 years ago
|
src_compile() {
|
||
|
BYTECOMPFLAGS="-L lisp" elisp-compile lisp/*.el
|
||
|
}
|
||
|
|
||
|
src_test() {
|
||
|
ert-runner -L lisp -L test -l test/testein.el \
|
||
2 years ago
|
--reporter ert+duration test/test-ein*.el || die
|
||
2 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
elisp-install ${PN} lisp/*.el{,c}
|
||
|
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||
|
|
||
|
readme.gentoo_create_doc
|
||
|
}
|