Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/emacs-ipython-notebook/files/, app-emacs/emacs-ipython-notebook/
Date: Wed, 04 May 2022 13:41:09
Message-Id: 1651671640.eb2b4325dbc9d5418675d95424c3706d9aee7643.xgqt@gentoo
1 commit: eb2b4325dbc9d5418675d95424c3706d9aee7643
2 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 4 13:40:19 2022 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Wed May 4 13:40:40 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb2b4325
7
8 app-emacs/emacs-ipython-notebook: new package; add 0.17.0_p20220419
9
10 2022.04.19 snapshot
11
12 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
13
14 app-emacs/emacs-ipython-notebook/Manifest | 1 +
15 .../emacs-ipython-notebook-0.17.0_p20220419.ebuild | 66 ++++++++++++++++++++++
16 .../files/50emacs-ipython-notebook-gentoo.el | 4 ++
17 app-emacs/emacs-ipython-notebook/metadata.xml | 13 +++++
18 4 files changed, 84 insertions(+)
19
20 diff --git a/app-emacs/emacs-ipython-notebook/Manifest b/app-emacs/emacs-ipython-notebook/Manifest
21 new file mode 100644
22 index 000000000000..41326ee84aa3
23 --- /dev/null
24 +++ b/app-emacs/emacs-ipython-notebook/Manifest
25 @@ -0,0 +1 @@
26 +DIST emacs-ipython-notebook-0.17.0_p20220419.tar.gz 313340 BLAKE2B 5ab9b82d8d17c3f64c375de7638aa4006e7dc47137260ab0a8222f7c507a54b32aa145d1630b3d0018c8303e0f116da81b61df27cd401875dfad5fd49ecdae13 SHA512 f6c2c293e7d2ddcba9dfac751523e0f8d55047ed01d4546ba1ece1f8833a1d54a1bcc066f34f06e111c34baee21a97c2ede2d90d188d7a05f407631acfd74037
27
28 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.ebuild
29 new file mode 100644
30 index 000000000000..9e0ed53eda37
31 --- /dev/null
32 +++ b/app-emacs/emacs-ipython-notebook/emacs-ipython-notebook-0.17.0_p20220419.ebuild
33 @@ -0,0 +1,66 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +# NOTICE: Check package version in "lisp/ein-pkg.el".
38 +# NOTICE: File "lisp/ein-pkg.el" is needed by the "ein:dev-sys-info" function.
39 +
40 +EAPI=8
41 +
42 +H=388c8f753cfb99b4f82acbdff26bbe27189d2299
43 +NEED_EMACS=25
44 +
45 +inherit elisp readme.gentoo-r1
46 +
47 +DESCRIPTION="Jupyter notebook client in Emacs"
48 +HOMEPAGE="https://github.com/millejoh/emacs-ipython-notebook/"
49 +SRC_URI="https://github.com/millejoh/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz"
50 +S="${WORKDIR}"/${PN}-${H}
51 +
52 +LICENSE="GPL-3+"
53 +KEYWORDS="~amd64 ~x86"
54 +SLOT="0"
55 +IUSE="test"
56 +RESTRICT="!test? ( test )"
57 +
58 +RDEPEND="
59 + app-emacs/anaphora
60 + app-emacs/dash
61 + app-emacs/deferred
62 + app-emacs/polymode
63 + app-emacs/request
64 + app-emacs/websocket
65 + app-emacs/with-editor
66 + dev-python/ipython
67 + dev-python/notebook
68 + www-servers/tornado
69 +"
70 +BDEPEND="
71 + ${RDEPEND}
72 + test? ( app-emacs/ert-runner )
73 +"
74 +
75 +DOCS=( README.rst thumbnail.png )
76 +DOC_CONTENTS="There may be problems with connecting to Jupyter Notebooks
77 + because of the tokens, in that case you can try running \"jupyter
78 + notebook\" with --NotebookApp.token=\"\" (and --NotebookApp.ip=127.0.0.1 to
79 + limit connections only to local machine), but be warned that this can
80 + compromise your system if used without caution! For reference check out
81 + https://github.com/millejoh/emacs-ipython-notebook/issues/838"
82 +
83 +SITEFILE="50${PN}-gentoo.el"
84 +
85 +src_compile() {
86 + BYTECOMPFLAGS="-L lisp" elisp-compile lisp/*.el
87 +}
88 +
89 +src_test() {
90 + ert-runner -L lisp -L test -l test/testein.el \
91 + --reporter ert+duration test/test-ein*.el || die
92 +}
93 +
94 +src_install() {
95 + elisp-install ${PN} lisp/*.el{,c}
96 + elisp-site-file-install "${FILESDIR}/${SITEFILE}"
97 +
98 + readme.gentoo_create_doc
99 +}
100
101 diff --git a/app-emacs/emacs-ipython-notebook/files/50emacs-ipython-notebook-gentoo.el b/app-emacs/emacs-ipython-notebook/files/50emacs-ipython-notebook-gentoo.el
102 new file mode 100644
103 index 000000000000..97bab14bcf69
104 --- /dev/null
105 +++ b/app-emacs/emacs-ipython-notebook/files/50emacs-ipython-notebook-gentoo.el
106 @@ -0,0 +1,4 @@
107 +(add-to-list 'load-path "@SITELISP@")
108 +(autoload 'ein:ipynb-mode "ein-ipynb-mode"
109 + "A simple mode for ipynb file." t)
110 +(add-to-list 'auto-mode-alist '("\\.ipynb\\'" . ein:ipynb-mode))
111
112 diff --git a/app-emacs/emacs-ipython-notebook/metadata.xml b/app-emacs/emacs-ipython-notebook/metadata.xml
113 new file mode 100644
114 index 000000000000..d0e5ba20a2d5
115 --- /dev/null
116 +++ b/app-emacs/emacs-ipython-notebook/metadata.xml
117 @@ -0,0 +1,13 @@
118 +<?xml version="1.0" encoding="UTF-8"?>
119 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
120 +
121 +<pkgmetadata>
122 + <maintainer type="project">
123 + <email>gnu-emacs@g.o</email>
124 + <name>Gentoo GNU Emacs project</name>
125 + </maintainer>
126 + <upstream>
127 + <bugs-to>https://github.com/millejoh/emacs-ipython-notebook/issues/</bugs-to>
128 + <remote-id type="github">millejoh/emacs-ipython-notebook</remote-id>
129 + </upstream>
130 +</pkgmetadata>