Added backup download and solidified tests
§
This commit is contained in:
parent
1c26efc59f
commit
479da4d903
@ -1 +1 @@
|
||||
DIST svg-path-3.0.tar.gz 17077 SHA256 4cba1904378b3587132bb454f70d43e8f6c98d3f33e346111d1dc4de88cf5022 SHA512 73d23f1386bbd4d1c1d805766f7e6fe6f8b7ac731e104020e7d853d7f1b46bc2681f44ef20d9c5343197d9d16b2af49f2c4ef4ba5945f4d25fa0493502203e13 WHIRLPOOL d330db5a918b365ed6cfb2485ead33227631632a5391503e9313c924b16c8136c90fcaaa07edcb470c51c08ca81a2469511f9e08eef0bedb6386ba3bfa3099cf
|
||||
DIST svg.path-3.0.tar.gz 17077 SHA256 4cba1904378b3587132bb454f70d43e8f6c98d3f33e346111d1dc4de88cf5022 SHA512 73d23f1386bbd4d1c1d805766f7e6fe6f8b7ac731e104020e7d853d7f1b46bc2681f44ef20d9c5343197d9d16b2af49f2c4ef4ba5945f4d25fa0493502203e13 WHIRLPOOL d330db5a918b365ed6cfb2485ead33227631632a5391503e9313c924b16c8136c90fcaaa07edcb470c51c08ca81a2469511f9e08eef0bedb6386ba3bfa3099cf
|
||||
|
@ -8,10 +8,11 @@ PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN="svg.path"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="SVG path objects and parser"
|
||||
HOMEPAGE="https://github.com/regebro/svg.path"
|
||||
SRC_URI="https://github.com/regebro/svg.path/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI="https://github.com/regebro/svg.path/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
@ -21,14 +22,13 @@ IUSE=""
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_test() {
|
||||
esetup.py test || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
MODNAME="svg"
|
||||
cd src || die
|
||||
python_foreach_impl python_domodule ${MODNAME}
|
||||
python_foreach_impl python_domodule svg
|
||||
}
|
||||
|
@ -5,13 +5,16 @@ EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_5,3_6} )
|
||||
|
||||
inherit distutils-r1 gnome2-utils
|
||||
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"
|
||||
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"
|
||||
@ -44,17 +47,24 @@ RDEPEND="
|
||||
sci-visualization/fsleyes-props[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-fsldir.patch" )
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.26.2-fsldir.patch"
|
||||
"${FILESDIR}/${PN}-0.26.2-test.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "s/Pillow>=3.2.0,<5.0/Pillow>=3.2.0/g" requirements.txt
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
doicon userdoc/images/fsleyes_icon.png
|
||||
make_desktop_entry fsleyes FSLeyes /usr/share/icons/hicolor/512x512i/apps/fsleyes_icon.svg
|
||||
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() {
|
||||
@ -65,8 +75,10 @@ pkg_postrm() {
|
||||
}
|
||||
|
||||
python_test() {
|
||||
echo "GLXINFO"
|
||||
glxinfo
|
||||
echo "GLXINFO END"
|
||||
pytest -v || die
|
||||
rm tests/test_addmaskdataseries.py
|
||||
rm tests/test_embed.py
|
||||
rm tests/test_screenshot.py
|
||||
rm tests/test_state.py
|
||||
rm tests/test_views.py
|
||||
virtx pytest -v || die
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user