commit: 4badc3895598e8aa83d0329589a02dc386ef8738
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Thu Sep 3 07:31:16 2015 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Thu Sep 3 07:31:16 2015 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=4badc389
dev-python/notebook: Implement pkg_preinst(); Fixes #478
Package-Manager: portage-2.2.20.1
dev-python/notebook/ChangeLog | 6 ++++++
.../notebook/{notebook-4.0.4.ebuild => notebook-4.0.4-r1.ebuild} | 0
dev-python/notebook/notebook-9999.ebuild | 6 ++++++
3 files changed, 12 insertions(+)
diff --git a/dev-python/notebook/ChangeLog b/dev-python/notebook/ChangeLog
index 2f9c366..d8f7c44 100644
--- a/dev-python/notebook/ChangeLog
+++ b/dev-python/notebook/ChangeLog
@@ -2,6 +2,12 @@
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Id$
+*notebook-4.0.4-r1 (03 Sep 2015)
+
+ 03 Sep 2015; Marius Brehler <[email protected]>
+ +notebook-4.0.4-r1.ebuild, -notebook-4.0.4.ebuild, notebook-9999.ebuild:
+ dev-python/notebook: Implement pkg_preinst(); Fixes #478
+
03 Sep 2015; Marius Brehler <[email protected]>
-notebook-4.0.1.ebuild:
dev-python/notebook: Drop old
diff --git a/dev-python/notebook/notebook-4.0.4.ebuild
b/dev-python/notebook/notebook-4.0.4-r1.ebuild
similarity index 100%
rename from dev-python/notebook/notebook-4.0.4.ebuild
rename to dev-python/notebook/notebook-4.0.4-r1.ebuild
diff --git a/dev-python/notebook/notebook-9999.ebuild
b/dev-python/notebook/notebook-9999.ebuild
index eef13b5..8d898cb 100644
--- a/dev-python/notebook/notebook-9999.ebuild
+++ b/dev-python/notebook/notebook-9999.ebuild
@@ -47,6 +47,12 @@ DEPEND="${RDEPEND}
)
"
+pkg_preinst() {
+ # remove old mathjax folder if present
+ [[ -d "${ROOT}$(python_get_sitedir)/notebook/static/components/MathJax"
]] \
+ && rm -rf
"${ROOT}$(python_get_sitedir)/notebook/static/components/MathJax"
+}
+
python_prepare_all() {
sed \
-e "/import setup/s:$:\nimport setuptools:g" \