commit:     aad796b7b1fdfec351a0d0c8dd7fc8cf1988ae3b
Author:     Shaoyu Tseng <shaoyu0209 <AT> tuta <DOT> io>
AuthorDate: Sat Jul 31 08:14:36 2021 +0000
Commit:     Shaoyu Tseng <shaoyu0209 <AT> tuta <DOT> io>
CommitDate: Sat Jul 31 08:17:31 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=aad796b7

dev-python/orjson-bin: Fix soname filename

Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Shaoyu Tseng <shaoyu0209 <AT> tuta.io>

 dev-python/orjson-bin/orjson-bin-3.6.0.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/dev-python/orjson-bin/orjson-bin-3.6.0.ebuild 
b/dev-python/orjson-bin/orjson-bin-3.6.0.ebuild
index 526e5a4b8..67e252ffa 100644
--- a/dev-python/orjson-bin/orjson-bin-3.6.0.ebuild
+++ b/dev-python/orjson-bin/orjson-bin-3.6.0.ebuild
@@ -46,6 +46,13 @@ src_install() {
        elif use arm64; then
                ARCH="aarch64"
        fi
-       python_foreach_impl python_domodule 
${PN//-bin}.cpython-310-${ARCH}-linux-gnu.so
+       do_install() {
+               insinto "$(python_get_sitedir)"
+               # Even though the soname is compatible, the python version has 
to be
+               # corrected in order for it to work
+               newins ${PN//-bin}.cpython-310-${ARCH}-linux-gnu.so 
${PN//-bin}.cpython-3${EPYTHON##python3.}-${ARCH}-linux-gnu.so
+               python_domodule ${P//-bin}.dist-info
+       }
+       python_foreach_impl do_install
 }
 

Reply via email to