Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/jupyterlab/
Date: Tue, 07 Sep 2021 18:01:10
Message-Id: 1631037654.d22723191e8cbb104437511c1a9eb141a0247ef1.andrewammerlaan@gentoo
1 commit: d22723191e8cbb104437511c1a9eb141a0247ef1
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 7 18:00:54 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 7 18:00:54 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=d2272319
7
8 dev-python/jupyterlab: also clean upon pkg_prerm
9
10 and include the licenses of the js stuff
11
12 Package-Manager: Portage-3.0.22, Repoman-3.0.3
13 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
14
15 dev-python/jupyterlab/jupyterlab-3.1.10.ebuild | 9 +++++++--
16 1 file changed, 7 insertions(+), 2 deletions(-)
17
18 diff --git a/dev-python/jupyterlab/jupyterlab-3.1.10.ebuild b/dev-python/jupyterlab/jupyterlab-3.1.10.ebuild
19 index 415bfa0ad..6940fff45 100644
20 --- a/dev-python/jupyterlab/jupyterlab-3.1.10.ebuild
21 +++ b/dev-python/jupyterlab/jupyterlab-3.1.10.ebuild
22 @@ -11,7 +11,7 @@ DESCRIPTION="JupyterLab computational environment"
23 HOMEPAGE="https://jupyter.org/"
24 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
25
26 -LICENSE="BSD"
27 +LICENSE="BSD MIT GPL-3 Apache-2.0"
28 SLOT="0"
29 KEYWORDS="~amd64"
30
31 @@ -34,5 +34,10 @@ distutils_enable_tests pytest
32 #distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme
33
34 pkg_postinst() {
35 - jupyter-lab build || die "Failed to build jupyter assets"
36 + # We have to do this here because we need internet since this uses yarn
37 + jupyter-lab build -y || die "Failed to build jupyterlab javascript assets"
38 +}
39 +
40 +pkg_prerm() {
41 + jupyter-lab clean -y || die "Failed to clean jupyterlab javascript assets"
42 }