diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
commit | 623ee73d661e5ed8475cb264511f683407d87365 (patch) | |
tree | 993eb27c93ec7a2d2d19550300d888fc1fed9e69 /dev-python/qdarkstyle/qdarkstyle-2.8.1.ebuild | |
parent | ceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff) |
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'dev-python/qdarkstyle/qdarkstyle-2.8.1.ebuild')
-rw-r--r-- | dev-python/qdarkstyle/qdarkstyle-2.8.1.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/qdarkstyle/qdarkstyle-2.8.1.ebuild b/dev-python/qdarkstyle/qdarkstyle-2.8.1.ebuild new file mode 100644 index 000000000000..9e29ded805c9 --- /dev/null +++ b/dev-python/qdarkstyle/qdarkstyle-2.8.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit eutils distutils-r1 + +MY_PN="QDarkStyleSheet" + +DESCRIPTION="A dark style sheet for QtWidgets application" +HOMEPAGE="https://github.com/ColinDuquesnoy/QDarkStyleSheet" +SRC_URI="https://github.com/ColinDuquesnoy/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="examples" + +RDEPEND=">=dev-python/helpdev-0.6.2[${PYTHON_USEDEP}] + >=dev-python/QtPy-1.7[${PYTHON_USEDEP}]" + +DEPEND="test? ( dev-python/qtsass[${PYTHON_USEDEP}] )" + +distutils_enable_tests pytest +distutils_enable_sphinx docs dev-python/sphinx_rtd_theme dev-python/m2r + +S="${WORKDIR}/${MY_PN}-${PV}" + +python_prepare_all() { + #/var/tmp/portage/dev-python/qdarkstyle-2.8/temp/environment: line 2949: 66 Aborted (core dumped) pytest -vv + sed -i -e 's:test_create_custom_qss:_&:' \ + test/test_sass_compiler.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + # tests look for a file in source dir that is not installed + PYTHONPATH="${S}" + cd "${S}" || die + pytest -vv || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use examples && dodoc -r example + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature "qdarkstyle.utils" dev-python/qtsass +} |