summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/svg2rlg')
-rw-r--r--media-gfx/svg2rlg/svg2rlg-0.4.0.ebuild18
1 files changed, 4 insertions, 14 deletions
diff --git a/media-gfx/svg2rlg/svg2rlg-0.4.0.ebuild b/media-gfx/svg2rlg/svg2rlg-0.4.0.ebuild
index c3ccccf45533..6be2f1ffbe8d 100644
--- a/media-gfx/svg2rlg/svg2rlg-0.4.0.ebuild
+++ b/media-gfx/svg2rlg/svg2rlg-0.4.0.ebuild
@@ -3,9 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python3_{7,8,9} )
-DISTUTILS_USE_SETUPTOOLS=rdepend
-
+PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="Converts SVG files to PDFs or reportlab graphics"
@@ -16,24 +14,16 @@ if [[ ${PV} = 9999* ]]; then
EGIT_BRANCH="master"
inherit git-r3
else
- SRC_URI="https://github.com/sarnold/${PN}/archive/${PV}.tar.gz -> ${PN}-${PV}.tar.gz"
+ SRC_URI="https://github.com/sarnold/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi
LICENSE="BSD"
SLOT="0"
-IUSE="test"
-
-RDEPEND="${PYTHON_DEPS}"
-DEPEND="${PYTHON_DEPS}
- dev-python/reportlab[${PYTHON_USEDEP}]
- dev-python/setuptools[${PYTHON_USEDEP}]
- test? (
- dev-python/nose[${PYTHON_USEDEP}] )
-"
+RDEPEND="dev-python/reportlab[${PYTHON_USEDEP}]"
-RESTRICT="!test? ( test )"
+distutils_enable_tests nose
python_test() {
nosetests -sx test_svg2rlg.py || die "Test failed with ${EPYTHON}"