From 5302be914ac0bab9b7d4724202043684ba183771 Mon Sep 17 00:00:00 2001 From: Paddy Milner Date: Mon, 18 Aug 2025 19:24:12 +0100 Subject: [PATCH] Add dependency --- .../Kivy-Garden/Kivy-Garden-9999.ebuild | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 dev-python/Kivy-Garden/Kivy-Garden-9999.ebuild diff --git a/dev-python/Kivy-Garden/Kivy-Garden-9999.ebuild b/dev-python/Kivy-Garden/Kivy-Garden-9999.ebuild new file mode 100644 index 0000000..71616f2 --- /dev/null +++ b/dev-python/Kivy-Garden/Kivy-Garden-9999.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..12} ) + +inherit distutils-r1 + +DESCRIPTION="Kivy garden installation script" +HOMEPAGE="https://github.com/kivy-garden/garden" + +LICENSE="MIT" +SLOT="0" + +DEPEND="" +RDEPEND="dev-python/requests[${PYTHON_USEDEP}]" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/kivy-garden/garden.git" + EGIT_BRANCH="master" + SRC_URI="" + KEYWORDS="" +else + # Note that this package is non-trivial to fetch from PyPI due to being + # hosted at a non-standard host: e.g., + # https://files.pythonhosted.org/packages/0b/33/9ad8dab579e7c48e95e7de6bf00b5e671c4ee1c0a57df140fb2d145ffe36/Kivy%20Garden-0.1.5.tar.gz + SRC_URI="https://github.com/kivy-garden/garden/archive/refs/tags/v${PV}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~x86" + + S="${WORKDIR}/garden-${PV}" +fi + +python_prepare_all() { + # Prevent Windows-specific batch files from being subsequently installed. + sed -i -e "s~'bin/garden.bat'~~" setup.py || die '"sed" failed.' + + distutils-r1_python_prepare_all +}