commit:     720e1d6139727d6366b8d7ae69aedb5c297f113e
Author:     Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Mon Feb  1 01:48:30 2021 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Mon Feb  1 01:48:30 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=720e1d61

sci-visualization/fsleyes-widgets: keep old versions

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Horea Christian <chr <AT> chymera.eu>

 .../fsleyes-widgets/fsleyes-widgets-0.8.4.ebuild   | 47 ++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/sci-visualization/fsleyes-widgets/fsleyes-widgets-0.8.4.ebuild 
b/sci-visualization/fsleyes-widgets/fsleyes-widgets-0.8.4.ebuild
new file mode 100644
index 000000000..eac611cac
--- /dev/null
+++ b/sci-visualization/fsleyes-widgets/fsleyes-widgets-0.8.4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit distutils-r1 virtualx
+
+MY_P="widgets-${PV}"
+
+DESCRIPTION="GUI widgets and utilities for the FSLeyes viewer"
+HOMEPAGE="https://git.fmrib.ox.ac.uk/fsl/fsleyes/fsleyes/tree/master";
+SRC_URI="https://git.fmrib.ox.ac.uk/fsl/fsleyes/widgets/-/archive/${PV}/${MY_P}.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+DEPEND="
+       test? (
+               dev-python/pytest[${PYTHON_USEDEP}]
+               )
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       "
+RDEPEND="
+       dev-python/deprecation[${PYTHON_USEDEP}]
+       =dev-python/numpy-1*[${PYTHON_USEDEP}]
+       dev-python/matplotlib[${PYTHON_USEDEP}]
+       =dev-python/six-1*[${PYTHON_USEDEP}]
+       dev-python/wxpython[${PYTHON_USEDEP}]
+       "
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+       "${FILESDIR}/fsleyes-widgets-0.8.4-coverage.patch"
+       "${FILESDIR}/fsleyes-widgets-0.8.4-tests.patch"
+)
+
+python_test() {
+       # If this could be set for the eclass, it might fix some of the tests:
+       # 
https://github.com/pauldmccarthy/fsleyes-widgets/issues/1#issuecomment-575387724
+       #xvfbargs="-screen 0 1920x1200x24 +extension RANDR"
+       virtx pytest --verbose || die
+}

Reply via email to