Gentoo Archives: gentoo-commits

From: Shaoyu Tseng <shaoyu0209@××××.io>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/orjson-bin/
Date: Sat, 31 Jul 2021 08:17:43
Message-Id: 1627719451.aad796b7b1fdfec351a0d0c8dd7fc8cf1988ae3b.shaoyu0209@gentoo
1 commit: aad796b7b1fdfec351a0d0c8dd7fc8cf1988ae3b
2 Author: Shaoyu Tseng <shaoyu0209 <AT> tuta <DOT> io>
3 AuthorDate: Sat Jul 31 08:14:36 2021 +0000
4 Commit: Shaoyu Tseng <shaoyu0209 <AT> tuta <DOT> io>
5 CommitDate: Sat Jul 31 08:17:31 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=aad796b7
7
8 dev-python/orjson-bin: Fix soname filename
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.2
11 Signed-off-by: Shaoyu Tseng <shaoyu0209 <AT> tuta.io>
12
13 dev-python/orjson-bin/orjson-bin-3.6.0.ebuild | 9 ++++++++-
14 1 file changed, 8 insertions(+), 1 deletion(-)
15
16 diff --git a/dev-python/orjson-bin/orjson-bin-3.6.0.ebuild b/dev-python/orjson-bin/orjson-bin-3.6.0.ebuild
17 index 526e5a4b8..67e252ffa 100644
18 --- a/dev-python/orjson-bin/orjson-bin-3.6.0.ebuild
19 +++ b/dev-python/orjson-bin/orjson-bin-3.6.0.ebuild
20 @@ -46,6 +46,13 @@ src_install() {
21 elif use arm64; then
22 ARCH="aarch64"
23 fi
24 - python_foreach_impl python_domodule ${PN//-bin}.cpython-310-${ARCH}-linux-gnu.so
25 + do_install() {
26 + insinto "$(python_get_sitedir)"
27 + # Even though the soname is compatible, the python version has to be
28 + # corrected in order for it to work
29 + newins ${PN//-bin}.cpython-310-${ARCH}-linux-gnu.so ${PN//-bin}.cpython-3${EPYTHON##python3.}-${ARCH}-linux-gnu.so
30 + python_domodule ${P//-bin}.dist-info
31 + }
32 + python_foreach_impl do_install
33 }