public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/jupyterlab/
Date: Tue,  7 Sep 2021 19:09:42 +0000 (UTC)	[thread overview]
Message-ID: <1631041771.6fa9b784963ad6227f124cf2601113902e06c341.andrewammerlaan@gentoo> (raw)

commit:     6fa9b784963ad6227f124cf2601113902e06c341
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue Sep  7 19:09:31 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Sep  7 19:09:31 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=6fa9b784

dev-python/jupyterlab: depend on jupyter_packaging

to take care of the js stuff, makes life nice and easy

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

 ...lab-3.1.10.ebuild => jupyterlab-3.1.10-r1.ebuild} | 20 +++++---------------
 1 file changed, 5 insertions(+), 15 deletions(-)

diff --git a/dev-python/jupyterlab/jupyterlab-3.1.10.ebuild b/dev-python/jupyterlab/jupyterlab-3.1.10-r1.ebuild
similarity index 62%
rename from dev-python/jupyterlab/jupyterlab-3.1.10.ebuild
rename to dev-python/jupyterlab/jupyterlab-3.1.10-r1.ebuild
index 7d3603c67..3fb54861a 100644
--- a/dev-python/jupyterlab/jupyterlab-3.1.10.ebuild
+++ b/dev-python/jupyterlab/jupyterlab-3.1.10-r1.ebuild
@@ -18,6 +18,8 @@ KEYWORDS="~amd64"
 # TODO: package openapi et al
 RESTRICT="test"
 
+BDEPEND="dev-python/jupyter_packaging[${PYTHON_USEDEP}]"
+
 RDEPEND="
 	dev-python/ipython[${PYTHON_USEDEP}]
 	dev-python/packaging[${PYTHON_USEDEP}]
@@ -33,19 +35,7 @@ distutils_enable_tests pytest
 # TODO: package myst_parser
 #distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme
 
-pkg_postinst() {
-	# We have to do this here because we need internet since this uses yarn
-	jupyter-lab build -y || ( \
-		ewarn "Failed to build jupyterlab javascript assets, please run"
-		ewarn "'jupyter-lab build' manually before starting jupyter-lab."
-		ewarn "Note that this will likely require network access."
-		)
-}
-
-pkg_prerm() {
-	jupyter-lab clean -y --static || ( \
-		ewarn "Failed to clean jupyterlab javascript assets, please remove"
-		ewarn "/usr/share/jupyter/lab/staging and /usr/share/jupyter/lab/static"
-		ewarn "manually."
-	)
+python_install_all() {
+	distutils-r1_python_install_all
+	mv "${ED}/usr/etc" "${ED}/etc" || die
 }


             reply	other threads:[~2021-09-07 19:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-07 19:09 Andrew Ammerlaan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-09-07 18:44 [gentoo-commits] proj/sci:master commit in: dev-python/jupyterlab/ Andrew Ammerlaan
2021-09-07 18:01 Andrew Ammerlaan
2021-09-03 19:45 Andrew Ammerlaan
2021-09-03 19:24 Andrew Ammerlaan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1631041771.6fa9b784963ad6227f124cf2601113902e06c341.andrewammerlaan@gentoo \
    --to=andrewammerlaan@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox