aboutsummaryrefslogtreecommitdiff
blob: 09093cf5a5d5b4590b1927c5de83cea5a91e36ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{10..11} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 optfeature pypi

DESCRIPTION="Bezier curve manipulation library"
HOMEPAGE="
	https://pypi.org/project/beziers/
	https://github.com/simoncozens/beziers.py
"

LICENSE="MIT"
KEYWORDS="~amd64"
SLOT="0"

RDEPEND="dev-python/pyclipper[${PYTHON_USEDEP}]"
BDEPEND="
	test? (
		dev-python/dotmap[${PYTHON_USEDEP}]
		dev-python/matplotlib[${PYTHON_USEDEP}]
	)
"

PATCHES=( "${FILESDIR}/${PN}-0.4.0-no-install-tests.patch" )

distutils_enable_tests pytest

pkg_postinst() {
	optfeature "alpha_shape support" "dev-python/numpy dev-python/scipy dev-python/shapely"
	optfeature "brush support" dev-python/shapely
	optfeature "pen protocol support" dev-python/fonttools
	optfeature "plot support" dev-python/matplotlib
}