diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/pyqtgraph | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/pyqtgraph')
| -rw-r--r-- | dev-python/pyqtgraph/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/pyqtgraph/files/pyqtgraph-0.10.0-qt5.patch | 10 | ||||
| -rw-r--r-- | dev-python/pyqtgraph/files/pyqtgraph-0.11.0-qt5_only.patch | 11 | ||||
| -rw-r--r-- | dev-python/pyqtgraph/metadata.xml | 19 | ||||
| -rw-r--r-- | dev-python/pyqtgraph/pyqtgraph-0.10.0-r2.ebuild | 47 | ||||
| -rw-r--r-- | dev-python/pyqtgraph/pyqtgraph-0.11.0_rc0.ebuild | 48 |
6 files changed, 137 insertions, 0 deletions
diff --git a/dev-python/pyqtgraph/Manifest b/dev-python/pyqtgraph/Manifest new file mode 100644 index 000000000000..5b078024ea79 --- /dev/null +++ b/dev-python/pyqtgraph/Manifest @@ -0,0 +1,2 @@ +DIST pyqtgraph-0.10.0.tar.gz 704972 BLAKE2B cb1295608536b06de32ea72503b2df2be7f4ae3065b42431542539feec5eb37412e3a7697e2ee97309594b9aecc19c692ef7b45f843f37bd50148a3c0b6e1d31 SHA512 d995da7b4f13ae0009582aebe3f753dc78566dc50ba9314d3a2d37ad4ed8f2fd8bb497a01bb8b37b6d96bf14c071aad018bcbc7224d9dd9b47589a7b5b640d30 +DIST pyqtgraph-0.11.0_rc0.tar.gz 755973 BLAKE2B 845c57a16c71d449419cca452ac70468eb21f198b3aebe39204e8ac1408ebd4471a95b24cbd91cd4c745439c17a805738e50a29f8690de5d84f86c2597310aea SHA512 6eb5573b19c7fc0bc263bdc5d75a9a7a5d86d5ce525e406fcbd8f4215a8b2a0a9a7d4839d177fb10ff62a5feacdf088347828900daa9f60ae84e54824b98f470 diff --git a/dev-python/pyqtgraph/files/pyqtgraph-0.10.0-qt5.patch b/dev-python/pyqtgraph/files/pyqtgraph-0.10.0-qt5.patch new file mode 100644 index 000000000000..b74df26df5d3 --- /dev/null +++ b/dev-python/pyqtgraph/files/pyqtgraph-0.10.0-qt5.patch @@ -0,0 +1,10 @@ +diff -r -U2 pyqtgraph-0.10.0.orig/pyqtgraph/Qt.py pyqtgraph-0.10.0/pyqtgraph/Qt.py +--- pyqtgraph-0.10.0.orig/pyqtgraph/Qt.py 2016-10-17 23:22:41.000000000 +0700 ++++ pyqtgraph-0.10.0/pyqtgraph/Qt.py 2018-01-23 22:52:19.503525554 +0700 +@@ -25,5 +25,5 @@ + ## is already imported. If not, then attempt to import PyQt4, then PySide. + if QT_LIB is None: +- libOrder = [PYQT4, PYSIDE, PYQT5] ++ libOrder = [PYQT5] + + for lib in libOrder: diff --git a/dev-python/pyqtgraph/files/pyqtgraph-0.11.0-qt5_only.patch b/dev-python/pyqtgraph/files/pyqtgraph-0.11.0-qt5_only.patch new file mode 100644 index 000000000000..1e65b0de9264 --- /dev/null +++ b/dev-python/pyqtgraph/files/pyqtgraph-0.11.0-qt5_only.patch @@ -0,0 +1,11 @@ +--- a/pyqtgraph/Qt.py ++++ b/pyqtgraph/Qt.py +@@ -25,7 +25,7 @@ + ## This is done by first checking to see whether one of the libraries + ## is already imported. If not, then attempt to import PyQt4, then PySide. + if QT_LIB is None: +- libOrder = [PYQT4, PYSIDE, PYQT5, PYSIDE2] ++ libOrder = [PYQT5] + + for lib in libOrder: + if lib in sys.modules: diff --git a/dev-python/pyqtgraph/metadata.xml b/dev-python/pyqtgraph/metadata.xml new file mode 100644 index 000000000000..1fba66bd4dd8 --- /dev/null +++ b/dev-python/pyqtgraph/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription> + PyQtGraph is a pure-python graphics and GUI library built on PyQt and numpy. + It is intended for use in mathematics / scientific / engineering applications. + Despite being written entirely in python, the library is very fast + due to its heavy leverage of numpy for number crunching + and Qt's GraphicsView framework for fast display. + </longdescription> + <upstream> + <remote-id type="github">pyqtgraph/pyqtgraph</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/pyqtgraph/pyqtgraph-0.10.0-r2.ebuild b/dev-python/pyqtgraph/pyqtgraph-0.10.0-r2.ebuild new file mode 100644 index 000000000000..b3db85104e1f --- /dev/null +++ b/dev-python/pyqtgraph/pyqtgraph-0.10.0-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python3_{6,7} ) +inherit distutils-r1 + +DESCRIPTION="A pure-python graphics and GUI library built on PyQt and numpy" +HOMEPAGE="http://www.pyqtgraph.org/ https://pypi.org/project/pyqtgraph/" +SRC_URI="http://www.pyqtgraph.org/downloads/${PV}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc examples opengl svg" + +RDEPEND="dev-python/numpy[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}] + dev-python/PyQt5[gui,widgets,opengl=,svg=,${PYTHON_USEDEP}] + opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +PATCHES=( "${FILESDIR}"/${P}-qt5.patch ) +S=${WORKDIR}/${PN}-${P} + +python_prepare_all() { + distutils-r1_python_prepare_all + + # fix distutils warning + sed -i 's/install_requires/requires/' setup.py || die + + if ! use opengl; then + rm -r pyqtgraph/opengl || die + fi +} + +python_compile_all() { + use doc && emake -C doc html +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/build/html/. ) + use examples && dodoc -r examples + distutils-r1_python_install_all +} diff --git a/dev-python/pyqtgraph/pyqtgraph-0.11.0_rc0.ebuild b/dev-python/pyqtgraph/pyqtgraph-0.11.0_rc0.ebuild new file mode 100644 index 000000000000..2259d40e1ec3 --- /dev/null +++ b/dev-python/pyqtgraph/pyqtgraph-0.11.0_rc0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8} ) + +inherit distutils-r1 + +MY_PV=$(ver_rs 3 "") +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="A pure-python graphics and GUI library built on PyQt and numpy" +HOMEPAGE="http://www.pyqtgraph.org/ https://pypi.org/project/pyqtgraph/" +SRC_URI="https://github.com/${PN}/${PN}/archive/${MY_P}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="examples opengl svg" + +RDEPEND="dev-python/numpy[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}] + dev-python/PyQt5[gui,widgets,opengl=,svg=,${PYTHON_USEDEP}] + opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )" + +PATCHES=( + "${FILESDIR}"/${PN}-0.11.0-qt5_only.patch +) + +DOCS=( CHANGELOG README.md ) + +S="${WORKDIR}"/${PN}-${MY_P} + +distutils_enable_sphinx doc/source + +python_prepare_all() { + distutils-r1_python_prepare_all + + if ! use opengl; then + rm -r pyqtgraph/opengl || die + fi +} + +python_install_all() { + use examples && DOCS+=( examples/ ) + distutils-r1_python_install_all +} |
