aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-09-05 21:59:53 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-09-05 21:59:53 +0200
commit4beb46211dd06000f00992e55b7605634fa114fb (patch)
treed941fcb1bab490c8cd5e88316fe5ae5d7d412ddf /sci-misc
parentdev-python/jupyterlab_launcher: add new package (diff)
downloadsci-4beb46211dd06000f00992e55b7605634fa114fb.tar.gz
sci-4beb46211dd06000f00992e55b7605634fa114fb.tar.bz2
sci-4beb46211dd06000f00992e55b7605634fa114fb.zip
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@gentoo.org>
Diffstat (limited to 'sci-misc')
-rw-r--r--sci-misc/europa-bin/Manifest1
-rw-r--r--sci-misc/europa-bin/europa-bin-1.0.0.ebuild57
-rw-r--r--sci-misc/europa-bin/metadata.xml12
3 files changed, 70 insertions, 0 deletions
diff --git a/sci-misc/europa-bin/Manifest b/sci-misc/europa-bin/Manifest
new file mode 100644
index 000000000..24c662f60
--- /dev/null
+++ b/sci-misc/europa-bin/Manifest
@@ -0,0 +1 @@
+DIST europa-bin-1.0.0.tar.xz 47742444 BLAKE2B 6729c49f48d399fa4b80661c1efada0b6268ccf83eb548e73af708e375d3377e847d3fa52219007ee0aec0ce16bd0df839ea88c09cb2cfe7bad1979d24611f68 SHA512 f0c37d162246eddc7c2c19878aae0128afdae82b2ac2584a4a441fb12ef19429387ea62230fc50928d10b89add747b1c8b42637eaf63d58fa3c43a20ad02e7c7
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>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+</pkgmetadata>