From 5ce6e9f145b6967e96b21a3790699e035be60046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 28 Jan 2020 20:05:23 +0100 Subject: dev-python/matplotlib-python2: Split from matplotlib MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../files/matplotlib-2.2.4-doc-fix.patch | 18 ++++++++++++++++++ .../files/matplotlib-2.2.4-no-jqueryui-download.patch | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 dev-python/matplotlib-python2/files/matplotlib-2.2.4-doc-fix.patch create mode 100644 dev-python/matplotlib-python2/files/matplotlib-2.2.4-no-jqueryui-download.patch (limited to 'dev-python/matplotlib-python2/files') diff --git a/dev-python/matplotlib-python2/files/matplotlib-2.2.4-doc-fix.patch b/dev-python/matplotlib-python2/files/matplotlib-2.2.4-doc-fix.patch new file mode 100644 index 000000000000..b6a01b097a61 --- /dev/null +++ b/dev-python/matplotlib-python2/files/matplotlib-2.2.4-doc-fix.patch @@ -0,0 +1,18 @@ +diff --git a/doc/conf.py b/doc/conf.py +index 017ce210e..5a397082b 100644 +--- a/doc/conf.py ++++ b/doc/conf.py +@@ -170,10 +170,10 @@ source_encoding = "utf-8" + master_doc = 'contents' + + # General substitutions. +-from matplotlib.compat.subprocess import check_output +-SHA = check_output(['git', 'describe', '--dirty']).decode('utf-8').strip() ++#from matplotlib.compat.subprocess import check_output ++#SHA = check_output(['git', 'describe', '--dirty']).decode('utf-8').strip() + +-html_context = {'sha': SHA} ++#html_context = {'sha': SHA} + + project = 'Matplotlib' + copyright = ('2002 - 2012 John Hunter, Darren Dale, Eric Firing, ' diff --git a/dev-python/matplotlib-python2/files/matplotlib-2.2.4-no-jqueryui-download.patch b/dev-python/matplotlib-python2/files/matplotlib-2.2.4-no-jqueryui-download.patch new file mode 100644 index 000000000000..9d13adb8ab53 --- /dev/null +++ b/dev-python/matplotlib-python2/files/matplotlib-2.2.4-no-jqueryui-download.patch @@ -0,0 +1,18 @@ +diff --git a/setup.py b/setup.py +index 41037e95d..6a438fa99 100644 +--- a/setup.py ++++ b/setup.py +@@ -178,9 +178,10 @@ class sdist_with_jquery(_orgin_sdist): + class install_lib_with_jquery(InstallLibCommand): + def run(self): + InstallLibCommand.run(self) +- _download_jquery_to( +- os.path.join(self.install_dir, "matplotlib/backends/web_backend/")) +- ++ # Avoid downloading jquery ui during emerge: we already have it in ++ # pypi's tarball. use this! ++ name = "matplotlib/backends/web_backend/jquery-ui-1.12.1" ++ os.rename(os.path.join('lib', name), os.path.join(self.install_dir, name)) + + class develop_with_jquery(DevelopCommand): + def run(self): -- cgit v1.2.3