commit:     4beb46211dd06000f00992e55b7605634fa114fb
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Sun Sep  5 19:59:53 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sun Sep  5 19:59:53 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=4beb4621

sci-misc/europa-bin: add new package

The official electron client for jupyterlab (jupyterlab_app) is inactive and
freezes upon launch.
This is one of the few alternatives that: has releases, is up to date, and
actually works.

It works rather nice and avoids having to run jupyterlab in the browser.
Thanks to @suyashmahar !

https://github.com/jupyterlab/jupyterlab_app/issues/186

Package-Manager: Portage-3.0.22, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sci-misc/europa-bin/europa-bin-1.0.0.ebuild | 57 +++++++++++++++++++++++++++++
 sci-misc/europa-bin/metadata.xml            | 12 ++++++
 2 files changed, 69 insertions(+)

diff --git a/sci-misc/europa-bin/europa-bin-1.0.0.ebuild 
b/sci-misc/europa-bin/europa-bin-1.0.0.ebuild
new file mode 100644
index 000000000..ad502cfac
--- /dev/null
+++ b/sci-misc/europa-bin/europa-bin-1.0.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2019-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit xdg
+
+DESCRIPTION="JupyterLab's Desktop client in electron"
+HOMEPAGE="https://github.com/suyashmahar/europa";
+SRC_URI="https://drive.google.com/uc?export=download&id=1c6NYXJgioU4_2v-CQ6oxtb1jzMMhDeMo
 -> ${P}.tar.xz"
+
+KEYWORDS="-* ~amd64"
+LICENSE="GPL-3"
+SLOT="0"
+
+RDEPEND="
+       app-accessibility/at-spi2-atk:2
+       dev-libs/atk
+       dev-libs/expat
+       dev-libs/libappindicator
+       dev-libs/nspr
+       dev-libs/nss
+       dev-python/jupyterlab
+       media-libs/alsa-lib
+       net-print/cups
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf:2
+       x11-libs/gtk+:3
+       x11-libs/libnotify
+       x11-libs/libxcb
+       x11-libs/libX11
+       x11-libs/libXcomposite
+       x11-libs/libXcursor
+       x11-libs/libXdamage
+       x11-libs/libXext
+       x11-libs/libXfixes
+       x11-libs/libXi
+       x11-libs/libxkbcommon
+       x11-libs/libXrandr
+       x11-libs/libXrender
+       x11-libs/libXtst
+       x11-libs/libXScrnSaver
+       x11-libs/pango
+"
+
+QA_PREBUILT="/opt/${PN//-bin}*"
+
+S="${WORKDIR}"
+
+src_install() {
+       # Move icon to correct dir
+       mv usr/share/icons/hicolor/0x0 usr/share/icons/hicolor/256x256 || die
+       # Write name in desktop file with capital letter
+       sed -i -e 's/Name=europa/Name=Europa/g' 
usr/share/applications/europa.desktop || die
+
+       mv "${S}"/* "${ED}" || die
+}

diff --git a/sci-misc/europa-bin/metadata.xml b/sci-misc/europa-bin/metadata.xml
new file mode 100644
index 000000000..0c2747670
--- /dev/null
+++ b/sci-misc/europa-bin/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <upstream>
+               <remote-id type="github">suyashmahar/europa</remote-id>
+               <bugs-to>https://github.com/suyashmahar/europa/issues</bugs-to>
+       </upstream>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo Science Project</name>
+       </maintainer>
+</pkgmetadata>

Reply via email to