diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-08-07 14:12:01 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-08-07 14:12:01 +0100 |
commit | 32c7b79bcc8a67e6bc6516adbc729e83f957a368 (patch) | |
tree | 21df31dc0deb9c9cf559e956049f83a09bc2fa08 /sci-misc/jupyterlab-desktop-bin | |
parent | 79b62a1562ef813f413bc8facf13c063e5196c02 (diff) |
gentoo auto-resync : 07:08:2022 - 14:12:00
Diffstat (limited to 'sci-misc/jupyterlab-desktop-bin')
-rw-r--r-- | sci-misc/jupyterlab-desktop-bin/Manifest | 4 | ||||
-rw-r--r-- | sci-misc/jupyterlab-desktop-bin/jupyterlab-desktop-bin-3.4.4.1.ebuild (renamed from sci-misc/jupyterlab-desktop-bin/jupyterlab-desktop-bin-3.3.4.2.ebuild) | 58 |
2 files changed, 53 insertions, 9 deletions
diff --git a/sci-misc/jupyterlab-desktop-bin/Manifest b/sci-misc/jupyterlab-desktop-bin/Manifest index 9bbd304dccb5..b3ca80722156 100644 --- a/sci-misc/jupyterlab-desktop-bin/Manifest +++ b/sci-misc/jupyterlab-desktop-bin/Manifest @@ -1,3 +1,3 @@ -DIST jupyterlab-desktop-bin-3.3.4.2.rpm 317104304 BLAKE2B d983738b3f0e8bf25014e5c4dca2eb0ccfd5be238d2376a3703a2f5347687d1737b97fed8cf5a8937a1b2258bc26bb6fb4311624fbd76d690c88f74569b4c2d3 SHA512 d444865a2a51d10d27ffb8f98f137151eaccc8901dadbdb34794fd705cc395b33ee789ad921fa03300ff31657805e51a61656f3ece35c98843737d751512637c -EBUILD jupyterlab-desktop-bin-3.3.4.2.ebuild 1846 BLAKE2B e99eafc0d3de7c6e90b3e4d56024d7302e0b1a0a4aa16e35a11026fe4d0770589595cae4a2516dcd9af23bdf37dc6432e1a7dfc2d2c7d534251f525b1f7c8b39 SHA512 2f3d5ae4f3e22e72fe74b3f8d76c660cbf3e11d9f1322c75de9c85d5cea237fb257dc8121d6a11639dd56fc10e6e21e6fc994db9e914fcc58617d90a81c4766c +DIST jupyterlab-desktop-bin-3.4.4.1.rpm 318510660 BLAKE2B ddbe9786082546bcefd39f7aa9cf631d5dd830c0771e1eca84838829433503dd37a1445e232a4a9c9332a256a294034a6538b3115b105063a2c26698f40a0c07 SHA512 5556e75fbedf8e152811b1164364dbc4d99fbfb6cd41ced81d479673f5705dade6d15240bc5096338de0056970fffc32444aa78c93bb1b66b44bc266a7254d8d +EBUILD jupyterlab-desktop-bin-3.4.4.1.ebuild 2925 BLAKE2B 17d547174e5442101cc7e66971ab0b9c5fe0dfb5e5c2fd7cc71a445d2f14bbd0cbe0e854bf2f578a0903e3f35213324b31bc465ea651addfbad8a5f9d0dc081b SHA512 433bd8f18d70fe76f0b3c1024be3fa6ef357358837cacd848e3f7951b039109be170003bc71387409e4f8d882bc41014c7637060ab9d4b249f64282678f9c397 MISC metadata.xml 430 BLAKE2B 1bd3f621bb4d25086cc80c5b44a7eef4a61f58c1f56c7cb91ca4e39b8a5e7d5fdd37e912e48d99ee6ba6a19de1c61252b4ebe3afd554d487c549d22597c376fc SHA512 b99b088cb0bdcfdaa9d584fb580b12a754f30a378fdede655f7723075e81948fc57f9aad11a59944b164eb8c9c24f6f0828e95c5a227766e985778900ea08079 diff --git a/sci-misc/jupyterlab-desktop-bin/jupyterlab-desktop-bin-3.3.4.2.ebuild b/sci-misc/jupyterlab-desktop-bin/jupyterlab-desktop-bin-3.4.4.1.ebuild index aff596591a12..fb775790888d 100644 --- a/sci-misc/jupyterlab-desktop-bin/jupyterlab-desktop-bin-3.3.4.2.ebuild +++ b/sci-misc/jupyterlab-desktop-bin/jupyterlab-desktop-bin-3.4.4.1.ebuild @@ -3,11 +3,18 @@ EAPI=8 -inherit rpm xdg +CHROMIUM_LANGS=" + am ar bg bn ca cs da de el en-GB en-US es es-419 et fa fi fil fr gu he hi + 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 + sw ta te th tr uk vi zh-CN zh-TW +" + +inherit chromium-2 desktop rpm xdg DESCRIPTION="JupyterLab desktop application, based on Electron" HOMEPAGE="https://jupyter.org/" SRC_URI="https://github.com/jupyterlab/${PN%%-bin}/releases/download/v$(ver_rs 3 -)/JupyterLab-Setup-Fedora.rpm -> ${P}.rpm" +S="${WORKDIR}" KEYWORDS="-* ~amd64" # Electron bundles a bunch of things @@ -16,6 +23,7 @@ LICENSE=" unRAR OFL CC-BY-SA-3.0 MPL-2.0 android public-domain all-rights-reserved " SLOT="0" +RESTRICT="bindist mirror" RDEPEND=" app-accessibility/at-spi2-atk @@ -49,14 +57,50 @@ RDEPEND=" QA_PREBUILT="opt/JupyterLab/*" -S="${WORKDIR}" +pkg_pretend() { + chromium_suid_sandbox_check_kernel_config +} + +src_prepare() { + default + # cleanup languages + pushd "opt/JupyterLab/locales" || die + chromium_remove_language_paks + popd || die +} + +src_configure() { + chromium_suid_sandbox_check_kernel_config + default +} src_install() { - # remove files useless for Gentoo - rm -r usr/lib || die - mv "${S}"/* "${ED}" || die - # add convenience symlink to launch from cli - dosym ../JupyterLab/jupyterlab-desktop /opt/bin/jupyterlab-desktop + for size in {16,32,48,64,128,256,512}; do + doicon -s ${size} "usr/share/icons/hicolor/${size}x${size}/apps/jupyterlab-desktop.png" + done + + domenu usr/share/applications/jupyterlab-desktop.desktop + + local DESTDIR="/opt/JupyterLab" + pushd "opt/JupyterLab" || die + + exeinto "${DESTDIR}" + doexe chrome-sandbox chrome_crashpad_handler jupyterlab-desktop *.so* + + exeinto "${DESTDIR}/swiftshader" + doexe swiftshader/*.so* + + insinto "${DESTDIR}" + doins *.pak *.bin *.json *.dat + insopts -m0755 + doins -r locales resources + + # Chrome-sandbox requires the setuid bit to be specifically set. + # see https://github.com/electron/electron/issues/17972 + fperms 4755 "${DESTDIR}"/chrome-sandbox + + dosym "${DESTDIR}"/jupyterlab-desktop /opt/bin/jupyterlab-desktop + popd || die } pkg_postinst() { |