1 |
commit: 6bc87db73ed1c21e6fb9bd1be3c727815ddf6686 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 7 08:50:05 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 7 08:58:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bc87db7 |
7 |
|
8 |
sci-misc/jupyterlab-desktop-bin: add 3.4.4.1 |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
11 |
|
12 |
sci-misc/jupyterlab-desktop-bin/Manifest | 1 + |
13 |
.../jupyterlab-desktop-bin-3.4.4.1.ebuild | 116 +++++++++++++++++++++ |
14 |
2 files changed, 117 insertions(+) |
15 |
|
16 |
diff --git a/sci-misc/jupyterlab-desktop-bin/Manifest b/sci-misc/jupyterlab-desktop-bin/Manifest |
17 |
index 948f06fc5faf..0ad85ece09e0 100644 |
18 |
--- a/sci-misc/jupyterlab-desktop-bin/Manifest |
19 |
+++ b/sci-misc/jupyterlab-desktop-bin/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST jupyterlab-desktop-bin-3.3.4.2.rpm 317104304 BLAKE2B d983738b3f0e8bf25014e5c4dca2eb0ccfd5be238d2376a3703a2f5347687d1737b97fed8cf5a8937a1b2258bc26bb6fb4311624fbd76d690c88f74569b4c2d3 SHA512 d444865a2a51d10d27ffb8f98f137151eaccc8901dadbdb34794fd705cc395b33ee789ad921fa03300ff31657805e51a61656f3ece35c98843737d751512637c |
22 |
+DIST jupyterlab-desktop-bin-3.4.4.1.rpm 318510660 BLAKE2B ddbe9786082546bcefd39f7aa9cf631d5dd830c0771e1eca84838829433503dd37a1445e232a4a9c9332a256a294034a6538b3115b105063a2c26698f40a0c07 SHA512 5556e75fbedf8e152811b1164364dbc4d99fbfb6cd41ced81d479673f5705dade6d15240bc5096338de0056970fffc32444aa78c93bb1b66b44bc266a7254d8d |
23 |
|
24 |
diff --git a/sci-misc/jupyterlab-desktop-bin/jupyterlab-desktop-bin-3.4.4.1.ebuild b/sci-misc/jupyterlab-desktop-bin/jupyterlab-desktop-bin-3.4.4.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..fb775790888d |
27 |
--- /dev/null |
28 |
+++ b/sci-misc/jupyterlab-desktop-bin/jupyterlab-desktop-bin-3.4.4.1.ebuild |
29 |
@@ -0,0 +1,116 @@ |
30 |
+# Copyright 2019-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+CHROMIUM_LANGS=" |
36 |
+ am ar bg bn ca cs da de el en-GB en-US es es-419 et fa fi fil fr gu he hi |
37 |
+ hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr sv |
38 |
+ sw ta te th tr uk vi zh-CN zh-TW |
39 |
+" |
40 |
+ |
41 |
+inherit chromium-2 desktop rpm xdg |
42 |
+ |
43 |
+DESCRIPTION="JupyterLab desktop application, based on Electron" |
44 |
+HOMEPAGE="https://jupyter.org/" |
45 |
+SRC_URI="https://github.com/jupyterlab/${PN%%-bin}/releases/download/v$(ver_rs 3 -)/JupyterLab-Setup-Fedora.rpm -> ${P}.rpm" |
46 |
+S="${WORKDIR}" |
47 |
+ |
48 |
+KEYWORDS="-* ~amd64" |
49 |
+# Electron bundles a bunch of things |
50 |
+LICENSE=" |
51 |
+ MIT BSD BSD-2 BSD-4 AFL-2.1 Apache-2.0 Ms-PL GPL-2 LGPL-2.1 APSL-2 |
52 |
+ unRAR OFL CC-BY-SA-3.0 MPL-2.0 android public-domain all-rights-reserved |
53 |
+" |
54 |
+SLOT="0" |
55 |
+RESTRICT="bindist mirror" |
56 |
+ |
57 |
+RDEPEND=" |
58 |
+ app-accessibility/at-spi2-atk |
59 |
+ app-accessibility/at-spi2-core |
60 |
+ dev-libs/atk |
61 |
+ dev-libs/expat |
62 |
+ dev-libs/glib |
63 |
+ dev-libs/nspr |
64 |
+ dev-libs/nss |
65 |
+ dev-python/jupyterlab |
66 |
+ media-libs/alsa-lib |
67 |
+ media-libs/mesa |
68 |
+ net-print/cups |
69 |
+ sys-apps/dbus |
70 |
+ sys-libs/glibc |
71 |
+ x11-libs/cairo |
72 |
+ x11-libs/gdk-pixbuf |
73 |
+ x11-libs/gtk+:3 |
74 |
+ x11-libs/libdrm |
75 |
+ x11-libs/libX11 |
76 |
+ x11-libs/libxcb |
77 |
+ x11-libs/libXcomposite |
78 |
+ x11-libs/libXdamage |
79 |
+ x11-libs/libXext |
80 |
+ x11-libs/libXfixes |
81 |
+ x11-libs/libxkbcommon |
82 |
+ x11-libs/libXrandr |
83 |
+ x11-libs/libxshmfence |
84 |
+ x11-libs/pango |
85 |
+" |
86 |
+ |
87 |
+QA_PREBUILT="opt/JupyterLab/*" |
88 |
+ |
89 |
+pkg_pretend() { |
90 |
+ chromium_suid_sandbox_check_kernel_config |
91 |
+} |
92 |
+ |
93 |
+src_prepare() { |
94 |
+ default |
95 |
+ # cleanup languages |
96 |
+ pushd "opt/JupyterLab/locales" || die |
97 |
+ chromium_remove_language_paks |
98 |
+ popd || die |
99 |
+} |
100 |
+ |
101 |
+src_configure() { |
102 |
+ chromium_suid_sandbox_check_kernel_config |
103 |
+ default |
104 |
+} |
105 |
+ |
106 |
+src_install() { |
107 |
+ for size in {16,32,48,64,128,256,512}; do |
108 |
+ doicon -s ${size} "usr/share/icons/hicolor/${size}x${size}/apps/jupyterlab-desktop.png" |
109 |
+ done |
110 |
+ |
111 |
+ domenu usr/share/applications/jupyterlab-desktop.desktop |
112 |
+ |
113 |
+ local DESTDIR="/opt/JupyterLab" |
114 |
+ pushd "opt/JupyterLab" || die |
115 |
+ |
116 |
+ exeinto "${DESTDIR}" |
117 |
+ doexe chrome-sandbox chrome_crashpad_handler jupyterlab-desktop *.so* |
118 |
+ |
119 |
+ exeinto "${DESTDIR}/swiftshader" |
120 |
+ doexe swiftshader/*.so* |
121 |
+ |
122 |
+ insinto "${DESTDIR}" |
123 |
+ doins *.pak *.bin *.json *.dat |
124 |
+ insopts -m0755 |
125 |
+ doins -r locales resources |
126 |
+ |
127 |
+ # Chrome-sandbox requires the setuid bit to be specifically set. |
128 |
+ # see https://github.com/electron/electron/issues/17972 |
129 |
+ fperms 4755 "${DESTDIR}"/chrome-sandbox |
130 |
+ |
131 |
+ dosym "${DESTDIR}"/jupyterlab-desktop /opt/bin/jupyterlab-desktop |
132 |
+ popd || die |
133 |
+} |
134 |
+ |
135 |
+pkg_postinst() { |
136 |
+ xdg_pkg_postinst |
137 |
+ elog "" |
138 |
+ elog "On initial startup you will be prompted to select the python environment of" |
139 |
+ elog "your choice. Either select a specific python version, e.g. /usr/bin/pythonX.Y," |
140 |
+ elog "or choose /usr/bin/python to follow the system wide setting in" |
141 |
+ elog "/etc/python-exec/python-exec.conf." |
142 |
+ elog "Please note that only python environments corresponding to the enabled" |
143 |
+ elog "PYTHON_TARGETS on dev-python/jupyterlab will work." |
144 |
+ elog "" |
145 |
+} |