commit: 29a710b40bef7ebf08e82f63528047ba02c2c82f
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sun Feb 26 19:28:40 2023 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Sun Feb 26 22:41:35 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=29a710b4
dev-python/beziers: enable py3.11
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
dev-python/beziers/beziers-0.4.0-r1.ebuild | 35 ----------------------------
dev-python/beziers/beziers-0.4.0-r2.ebuild | 37 ++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 35 deletions(-)
diff --git a/dev-python/beziers/beziers-0.4.0-r1.ebuild
b/dev-python/beziers/beziers-0.4.0-r1.ebuild
deleted file mode 100644
index 0c99ca988..000000000
--- a/dev-python/beziers/beziers-0.4.0-r1.ebuild
+++ /dev/null
@@ -1,35 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{8..10} )
-DISTUTILS_USE_PEP517=setuptools
-
-inherit distutils-r1
-
-DESCRIPTION="Python bezier manipulation library"
-HOMEPAGE="https://github.com/simoncozens/beziers.py"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="MIT"
-KEYWORDS="~amd64"
-SLOT="0"
-
-RDEPEND="
- dev-python/numpy[${PYTHON_USEDEP}]
- dev-python/pyclipper[${PYTHON_USEDEP}]
- dev-python/scipy[${PYTHON_USEDEP}]
- dev-python/shapely[${PYTHON_USEDEP}]
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
- test? (
- dev-python/dotmap[${PYTHON_USEDEP}]
- dev-python/matplotlib[${PYTHON_USEDEP}]
- )
-"
-
-PATCHES=( "${FILESDIR}/${P}-no-install-tests.patch" )
-
-distutils_enable_tests pytest
diff --git a/dev-python/beziers/beziers-0.4.0-r2.ebuild
b/dev-python/beziers/beziers-0.4.0-r2.ebuild
new file mode 100644
index 000000000..69501c49d
--- /dev/null
+++ b/dev-python/beziers/beziers-0.4.0-r2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..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
+}