diff --git a/dev-python/gbinder/Manifest b/dev-python/gbinder/Manifest new file mode 100644 index 0000000000..a17031d324 --- /dev/null +++ b/dev-python/gbinder/Manifest @@ -0,0 +1 @@ +DIST gbinder-1.0.0.tar.gz 22640 BLAKE2B dbd0b07c693c803c6646fded1ea0b546d7dc40a1a5f1592601d28d63dbe5113b2bcc07314710c7ba1b47f3417b943398e720ece089ff8a68856e7b2cfda55ae1 SHA512 3b52c01c99321108a3d5c0129fb4fcf22d164e5de1e197f0e01a77e3bcbf9c4fd7ee35ce58131f545f65561c622b30f5919f4bdc995005b00a18a15c695fbf51 diff --git a/dev-python/gbinder/files/gbinder-1.0.0-setuppy-extensions.patch b/dev-python/gbinder/files/gbinder-1.0.0-setuppy-extensions.patch new file mode 100644 index 0000000000..5990393e32 --- /dev/null +++ b/dev-python/gbinder/files/gbinder-1.0.0-setuppy-extensions.patch @@ -0,0 +1,22 @@ +From 79d40e9e564772973f7f085ed5c48e3fc625e0f5 Mon Sep 17 00:00:00 2001 +From: Erfan Abdi +Date: Mon, 6 Sep 2021 13:57:22 +0430 +Subject: [PATCH] setup: Drop None from keywords + +--- + setup.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/setup.py b/setup.py +index cf3a42e..ed2b1ed 100644 +--- a/setup.py ++++ b/setup.py +@@ -19,6 +19,8 @@ def pkgconfig(package, kw): + + extension_kwargs = { 'sources': ["gbinder" + file_ext] } + extension_kwargs = pkgconfig('libgbinder', extension_kwargs) ++if None in extension_kwargs: ++ del extension_kwargs[None] + extensions = [Extension('gbinder', **extension_kwargs)] + + if USE_CYTHON: diff --git a/dev-python/gbinder/gbinder-1.0.0.ebuild b/dev-python/gbinder/gbinder-1.0.0.ebuild new file mode 100644 index 0000000000..913d0d608b --- /dev/null +++ b/dev-python/gbinder/gbinder-1.0.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..10} ) + +inherit distutils-r1 + +if [[ ${PV} != *9999* ]]; then + MY_PN="${PN}-python" + MY_P="${MY_PN}-${PV}" + S="${WORKDIR}/${MY_P}" + SRC_URI="https://github.com/erfanoabdi/gbinder-python/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + PATCHES=( "${FILESDIR}/${P}-setuppy-extensions.patch" ) +else + inherit git-r3 + EGIT_REPO_URI="https://github.com/erfanoabdi/gbinder-python.git" +fi + +DESCRIPTION="Python bindings for libgbinder" +HOMEPAGE="https://github.com/erfanoabdi/gbinder-python" +LICENSE="GPL-3" +SLOT="0" + +DEPEND="dev-libs/gbinder" +RDEPEND="${DEPEND}" +BDEPEND=" + virtual/pkgconfig + dev-python/cython[${PYTHON_USEDEP}] +" + +python_compile() { + distutils-r1_python_compile --cython +} diff --git a/dev-python/gbinder/gbinder-9999.ebuild b/dev-python/gbinder/gbinder-9999.ebuild index f2df6a9225..913d0d608b 100644 --- a/dev-python/gbinder/gbinder-9999.ebuild +++ b/dev-python/gbinder/gbinder-9999.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -PYTHON_COMPAT=( python3_9 ) +PYTHON_COMPAT=( python3_{9..10} ) inherit distutils-r1 @@ -13,6 +13,7 @@ if [[ ${PV} != *9999* ]]; then S="${WORKDIR}/${MY_P}" SRC_URI="https://github.com/erfanoabdi/gbinder-python/archive/${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64" + PATCHES=( "${FILESDIR}/${P}-setuppy-extensions.patch" ) else inherit git-r3 EGIT_REPO_URI="https://github.com/erfanoabdi/gbinder-python.git"