Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-misc/jupyterlab-desktop-bin/
Date: Mon, 21 Feb 2022 19:02:40
Message-Id: 1645470150.132f0566b67c2ca13738aea632f7cbf3b13aa39a.andrewammerlaan@gentoo
1 commit: 132f0566b67c2ca13738aea632f7cbf3b13aa39a
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 21 19:01:46 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 21 19:02:30 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=132f0566
7
8 sci-misc/jupyterlab-desktop-bin: add version 3.2.9.1
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12
13 sci-misc/jupyterlab-desktop-bin/Manifest | 1 +
14 .../jupyterlab-desktop-bin-3.2.9.1.ebuild | 68 ++++++++++++++++++++++
15 2 files changed, 69 insertions(+)
16
17 diff --git a/sci-misc/jupyterlab-desktop-bin/Manifest b/sci-misc/jupyterlab-desktop-bin/Manifest
18 index 73ba007b1ea8..93fa8cf13034 100644
19 --- a/sci-misc/jupyterlab-desktop-bin/Manifest
20 +++ b/sci-misc/jupyterlab-desktop-bin/Manifest
21 @@ -1 +1,2 @@
22 DIST jupyterlab-desktop-bin-3.2.5.2.rpm 269694928 BLAKE2B c92a46c273d4b3edfedf9392ff65813366317003607ab27c359b995cd896591454fbf8460b6ce22d717e0d28ba2c7800bf346f18c23dd758e58b4c329b3164f1 SHA512 7720c727a2a027f0f45072c92186b9fe7ea911aa2168100995e79feac0e248e9d3dde2f2fadcd43b749c394f604f09a53db81eebf26fdac5396bba81f6c75904
23 +DIST jupyterlab-desktop-bin-3.2.9.1.rpm 332914260 BLAKE2B 57940cfc761cf3710303de6d6adc895027cacd9c97c40fa1773785ca66a9e4fdb041aef1857222b5c9eedfb766050aff4752927f87986b9fa0052cb9301a77f7 SHA512 73e963943f6e1254523d645264b4b1ac56cb2118c23fbf9a45a82a46b26bea9e876ef22549b832eb13392533a32edec5432ae7c29546ca7798f573e27880a0ab
24
25 diff --git a/sci-misc/jupyterlab-desktop-bin/jupyterlab-desktop-bin-3.2.9.1.ebuild b/sci-misc/jupyterlab-desktop-bin/jupyterlab-desktop-bin-3.2.9.1.ebuild
26 new file mode 100644
27 index 000000000000..15bdd61754eb
28 --- /dev/null
29 +++ b/sci-misc/jupyterlab-desktop-bin/jupyterlab-desktop-bin-3.2.9.1.ebuild
30 @@ -0,0 +1,68 @@
31 +# Copyright 2019-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit rpm xdg
37 +
38 +DESCRIPTION="JupyterLab desktop application, based on Electron"
39 +HOMEPAGE="https://jupyter.org/"
40 +SRC_URI="https://github.com/jupyterlab/${PN%%-bin}/releases/download/v$(ver_rs 3 -)/JupyterLab-Setup-Fedora.rpm -> ${P}.rpm"
41 +
42 +KEYWORDS="-* ~amd64"
43 +LICENSE="BSD MIT"
44 +SLOT="0"
45 +
46 +RDEPEND="
47 + app-accessibility/at-spi2-atk
48 + app-accessibility/at-spi2-core
49 + dev-libs/atk
50 + dev-libs/expat
51 + dev-libs/glib
52 + dev-libs/nspr
53 + dev-libs/nss
54 + dev-python/jupyterlab
55 + media-libs/alsa-lib
56 + media-libs/mesa
57 + net-print/cups
58 + sys-apps/dbus
59 + sys-libs/glibc
60 + x11-libs/cairo
61 + x11-libs/gdk-pixbuf
62 + x11-libs/gtk+:3
63 + x11-libs/libdrm
64 + x11-libs/libX11
65 + x11-libs/libxcb
66 + x11-libs/libXcomposite
67 + x11-libs/libXdamage
68 + x11-libs/libXext
69 + x11-libs/libXfixes
70 + x11-libs/libxkbcommon
71 + x11-libs/libXrandr
72 + x11-libs/libxshmfence
73 + x11-libs/pango
74 +"
75 +
76 +QA_PREBUILT="opt/JupyterLab/*"
77 +
78 +S="${WORKDIR}"
79 +
80 +src_install() {
81 + # remove files useless for Gentoo
82 + rm -r usr/lib || die
83 + mv "${S}"/* "${ED}" || die
84 + # add convenience symlink to launch from cli
85 + dosym ../JupyterLab/jupyterlab-desktop /opt/bin/jupyterlab-desktop
86 +}
87 +
88 +pkg_postinst() {
89 + xdg_pkg_postinst
90 + elog ""
91 + elog "On initial startup you will be prompted to select the python environment of"
92 + elog "your choice. Either select a specific python version, e.g. /usr/bin/pythonX.Y,"
93 + elog "or choose /usr/bin/python to follow the system wide setting in"
94 + elog "/etc/python-exec/python-exec.conf."
95 + elog "Please note that only python environments corresponding to the enabled"
96 + elog "PYTHON_TARGETS on dev-python/jupyterlab will work."
97 + elog ""
98 +}