1
0
Fork 0

Updates and version bump to 0.27.3

This commit is contained in:
Horea Christian 2019-03-26 22:20:27 +01:00
parent 2c435e4a44
commit b43394423c
4 changed files with 110 additions and 1 deletions

View File

@ -1 +1,2 @@
DIST fsleyes-0.26.2.tar.gz 82646638 SHA256 d702c8905eaadeb38ac5393a0207074c37639f7a74acc4b1f7e04a84bd17b9f6 SHA512 36bb376726f7cafd2b850686230077f1c4d65692c9d76259a3278e2e1e8bec3df86d0a2439262b56f9ab2d10519fddd89cbbfa5b2fd4c218820b10ecebae59d3 WHIRLPOOL 90737e94f1f7fa9d03f93d5946598a55eb6955170ef6b94e2d7cfb30deb0063daaf30cabf6db052ee9c8a78f5535c2cc003b437d4234d04957c6985d203dc2ad
DIST fsleyes-0.27.3.tar.gz 83243157 SHA256 df7d5c40097962333e182d25179f243920f7f44611a456146ed53b37ade8bdbe SHA512 7a109d656edfa4bd7b4d81867bfdf219169c7066f1bf9c700db092d8b82645b71f334fb790e2893bdc38ea51a3a19ee47fabb57371a01da65e685e886916051c WHIRLPOOL e9a333961a470eb2b4f9ff635d4b8d36dc2087df87f0d14ed5d6c53e0fbff8f9a3affa347e7345d15eb3aee711e3c2d7c7eb3805f6358ec0d7d937fa4db614df

View File

@ -26,6 +26,7 @@ DEPEND="
${RDEPEND}
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/pytest-cov[${PYTHON_USEDEP}]
)
dev-python/setuptools[${PYTHON_USEDEP}]
"
@ -49,7 +50,6 @@ RDEPEND="
PATCHES=(
"${FILESDIR}/${PN}-0.26.2-fsldir.patch"
"${FILESDIR}/${PN}-0.26.2-test.patch"
)
src_prepare() {
@ -77,6 +77,9 @@ pkg_postrm() {
python_test() {
rm tests/test_addmaskdataseries.py
rm tests/test_embed.py
rm tests/test_overlay_displayprops.py
rm tests/test_overlay_freesurfermesh.py
rm tests/test_overlay_giftimesh.py
rm tests/test_screenshot.py
rm tests/test_state.py
rm tests/test_views.py

View File

@ -0,0 +1,87 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python{2_7,3_5,3_6} )
inherit distutils-r1 gnome2-utils virtualx
MY_HASH="bfc2c0919b68583b6237cbdd9492e69a7bed30189b19dd21f7ba59f9f39e"
DESCRIPTION="The new FSL image viewer, released with FSL 5.0.10"
HOMEPAGE="https://git.fmrib.ox.ac.uk/fsl/fsleyes/fsleyes/tree/master"
SRC_URI="
https://git.fmrib.ox.ac.uk/fsl/fsleyes/fsleyes/-/archive/${PV}/${P}.tar.gz
https://github.com/pauldmccarthy/fsleyes/archive/${PV}.tar.gz -> ${P}.tar.gz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
DEPEND="
test? (
${RDEPEND}
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/pytest-cov[${PYTHON_USEDEP}]
)
dev-python/setuptools[${PYTHON_USEDEP}]
"
RDEPEND="
dev-python/fslpy[${PYTHON_USEDEP}]
=dev-python/jinja-2*[${PYTHON_USEDEP}]
>=dev-python/matplotlib-1.5.1[${PYTHON_USEDEP}]
>=dev-python/numpy-1.14.0[${PYTHON_USEDEP}]
>=dev-python/pillow-3.4.2[${PYTHON_USEDEP}]
>=dev-python/pyopengl-3.1.0[${PYTHON_USEDEP}]
>=dev-python/pyopengl_accelerate-3.1.0[${PYTHON_USEDEP}]
=dev-python/pyparsing-2*[${PYTHON_USEDEP}]
=dev-python/six-1*[${PYTHON_USEDEP}]
>=dev-python/wxpython-3.0.2.0[${PYTHON_USEDEP}]
>=sci-libs/scipy-0.18[${PYTHON_USEDEP}]
=sci-libs/nibabel-2*[${PYTHON_USEDEP}]
sci-visualization/fsleyes-widgets[${PYTHON_USEDEP}]
sci-visualization/fsleyes-props[${PYTHON_USEDEP}]
"
PATCHES=(
"${FILESDIR}/${PN}-0.26.2-fsldir.patch"
)
src_prepare() {
sed -i -e "s/Pillow>=3.2.0,<5.0/Pillow>=3.2.0/g" requirements.txt
distutils-r1_src_prepare
}
python_install_all() {
distutils-r1_python_install_all
doicon userdoc/images/fsleyes_icon.png
local size
for size in 16 32 128 256 512 ; do
doicon -s ${size} assets/icons/app_icon/${PN}.iconset/icon_${size}x${size}.png
done
make_desktop_entry fsleyes FSLeyes /usr/share/icons/hicolor/128x128/apps/icon_128x128.png
}
pkg_postinst() {
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}
python_test() {
rm tests/test_addmaskdataseries.py
rm tests/test_embed.py
#rm tests/test_overlay_displayprops.py
#rm tests/test_overlay_freesurfermesh.py
#rm tests/test_overlay_giftimesh.py
#rm tests/test_screenshot.py
#rm tests/test_state.py
#rm tests/test_views.py
virtx pytest -vv || die
}

View File

@ -0,0 +1,18 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>horea.christ@gmail.com</email>
<name>Horea Christian</name>
</maintainer>
<maintainer type="project">
<email>sci@gentoo.org</email>
<name>Gentoo Science Project</name>
</maintainer>
<longdescription lang="en">
FSLeyes is a viewer for 3D and 4D neuroimaging data. It is intended as a
replacement for the much loved FSLView. FSLeyes offers similar functionality
to FSLView, and aims to improve and expand upon this functionality in many
ways.
</longdescription>
</pkgmetadata>