commit:     6d0def81baa14741877bf4795a52053efaf5070f
Author:     Andrew Udvare <audvare <AT> gmail <DOT> com>
AuthorDate: Thu Nov 11 12:43:54 2021 +0000
Commit:     Andrew Udvare <audvare <AT> gmail <DOT> com>
CommitDate: Thu Nov 11 12:43:54 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6d0def81

dev-python/hidapi: add new version

Pass --with-system-hidapi to setup.py in all versions

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Andrew Udvare <audvare <AT> gmail.com>

 dev-python/hidapi/Manifest                                        | 1 +
 dev-python/hidapi/hidapi-0.10.1.ebuild                            | 3 +++
 .../hidapi/{hidapi-0.10.1.ebuild => hidapi-0.11.0.2.ebuild}       | 8 +++++++-
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/dev-python/hidapi/Manifest b/dev-python/hidapi/Manifest
index 257b0a044..b43625462 100644
--- a/dev-python/hidapi/Manifest
+++ b/dev-python/hidapi/Manifest
@@ -1 +1,2 @@
 DIST hidapi-0.10.1.tar.gz 60712 BLAKE2B 
9f66015f801a73ad520b303a011edbfecb6b2e79e4366b8e72cc15a4b509cd5744c4c5f9d710b120a44f10cab0c72edf6f679961979d7ad2581edf3238426609
 SHA512 
681e3691a4b05b13abc38d305c68e448728612442d0ef12ce54d12eeebee6e18d33566c462a276d18ce5e29fad208e6fcde49bbe4b162eae5cd72ce37dea880b
+DIST hidapi-0.11.0.post2.tar.gz 136467 BLAKE2B 
9469817cf5a87d9367d9b1d57e9b3832fc83756fbe7ba314e266fc17a17a7f82efadbb73e8e4808a0eaef8ad6478675222b99488b1ffac7b9426eb951ee3e77b
 SHA512 
5365299ef8488561a82d2a2c911523c5d34e260f8068b4d4d26e912b6e348b328229498f0ee38d1eb9c81a969e9f91ffc7a0b9a60359f4e9d0511f8937e5ff21

diff --git a/dev-python/hidapi/hidapi-0.10.1.ebuild 
b/dev-python/hidapi/hidapi-0.10.1.ebuild
index 4174ede60..a99715054 100644
--- a/dev-python/hidapi/hidapi-0.10.1.ebuild
+++ b/dev-python/hidapi/hidapi-0.10.1.ebuild
@@ -22,6 +22,9 @@ DEPEND="
 RDEPEND="${DEPEND}"
 
 distutils_enable_tests pytest
+python_configure_all() {
+       mydistutilsargs=( --with-system-hidapi )
+}
 
 python_test() {
        epytest tests.py

diff --git a/dev-python/hidapi/hidapi-0.10.1.ebuild 
b/dev-python/hidapi/hidapi-0.11.0.2.ebuild
similarity index 73%
copy from dev-python/hidapi/hidapi-0.10.1.ebuild
copy to dev-python/hidapi/hidapi-0.11.0.2.ebuild
index 4174ede60..7480a78ba 100644
--- a/dev-python/hidapi/hidapi-0.10.1.ebuild
+++ b/dev-python/hidapi/hidapi-0.11.0.2.ebuild
@@ -9,7 +9,8 @@ inherit distutils-r1
 
 DESCRIPTION="A Cython interface to the hidapi"
 HOMEPAGE="https://github.com/trezor/cython-hidapi";
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+MY_PV=$(ver_rs 3 .post)
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${MY_PV}.tar.gz"
 
 LICENSE="|| ( BSD GPL-3 )"
 KEYWORDS="~amd64 ~arm ~arm64 ~x86"
@@ -22,6 +23,11 @@ DEPEND="
 RDEPEND="${DEPEND}"
 
 distutils_enable_tests pytest
+S="${WORKDIR}/cython-${PN}-${MY_PV}"
+
+python_configure_all() {
+       mydistutilsargs=( --with-system-hidapi )
+}
 
 python_test() {
        epytest tests.py

Reply via email to