[oe-commits] [meta-openembedded] 22/25: Add python3 matplotlib

git at git.openembedded.org git at git.openembedded.org
Fri Sep 22 22:58:29 UTC 2017


This is an automated email from the git hooks/post-receive script.

martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.

commit 29e2608b0665546a1fd125c93743d30632a0ff83
Author: Guy Morand <guy at guy-morand.ch>
AuthorDate: Fri Sep 22 12:24:49 2017 +0200

    Add python3 matplotlib
    
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 .../python-matplotlib/files/0001-fix_setup.diff    | 13 +++++++++
 .../python/python-matplotlib/python-matplotlib.inc | 32 ++++++++++++++++++++++
 .../python-matplotlib/python3-matplotlib_2.0.2.bb  |  6 ++++
 3 files changed, 51 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python-matplotlib/files/0001-fix_setup.diff b/meta-python/recipes-devtools/python/python-matplotlib/files/0001-fix_setup.diff
new file mode 100644
index 0000000..8f1b505
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-matplotlib/files/0001-fix_setup.diff
@@ -0,0 +1,13 @@
+Index: matplotlib-2.0.2/setupext.py
+===================================================================
+--- matplotlib-2.0.2.orig/setupext.py
++++ matplotlib-2.0.2/setupext.py
+@@ -182,7 +182,7 @@ def get_base_dirs():
+         'gnu0': ['/usr'],
+         'aix5': ['/usr/local'],
+         }
+-    return basedir_map.get(sys.platform, ['/usr/local', '/usr'])
++    return basedir_map.get(sys.platform, [os.environ['STAGING_LIBDIR']])
+ 
+ 
+ def get_include_dirs():
diff --git a/meta-python/recipes-devtools/python/python-matplotlib/python-matplotlib.inc b/meta-python/recipes-devtools/python/python-matplotlib/python-matplotlib.inc
new file mode 100644
index 0000000..74dcf97
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-matplotlib/python-matplotlib.inc
@@ -0,0 +1,32 @@
+SUMMARY  = "Matplotlib produces publication quality figures"
+DESCRIPTION = "Matplotlib is a Python 2D plotting library which produces \
+publication quality figures in a variety of hardcopy formats and interactive \
+environments across platforms. Matplotlib can be used in Python scripts, the \
+Python and IPython shell, the jupyter notebook, web application servers, and \
+four graphical user interface toolkits."
+HOMEPAGE = "https://matplotlib.org/"
+LICENSE = "PSF"
+LIC_FILES_CHKSUM = "file://LICENSE/LICENSE;md5=afec61498aa5f0c45936687da9a53d74"
+
+PYPI_PACKAGE = "matplotlib"
+
+inherit pypi
+
+SRC_URI += "\
+  file://0001-fix_setup.diff \
+  "
+
+DEPENDS += " \
+  ${PYTHON_PN}-numpy-native \
+  freetype \
+  libpng \
+  "
+
+RDEPENDS_${PN} += " \
+  ${PYTHON_PN}-numpy \
+  ${PYTHON_PN}-dateutil \
+  ${PYTHON_PN}-pyparsing \
+  ${PYTHON_PN}-pytz \
+  ${PYTHON_PN}-six \
+  ${PYTHON_PN}-cycler \
+  "
diff --git a/meta-python/recipes-devtools/python/python-matplotlib/python3-matplotlib_2.0.2.bb b/meta-python/recipes-devtools/python/python-matplotlib/python3-matplotlib_2.0.2.bb
new file mode 100644
index 0000000..7e309b2
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-matplotlib/python3-matplotlib_2.0.2.bb
@@ -0,0 +1,6 @@
+inherit setuptools3
+require python-matplotlib.inc
+
+SRC_URI[md5sum] = "061111784278bde89b5d4987014be4ca"
+SRC_URI[sha256sum] = "0ffbc44faa34a8b1704bc108c451ecf87988f900ef7ce757b8e2e84383121ff1"
+

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list