dev-python/orjson-bin: Fix soname filename

Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Shaoyu Tseng <shaoyu0209@tuta.io>
This commit is contained in:
Shaoyu Tseng
2021-07-31 16:14:36 +08:00
parent 21337ef4d3
commit aad796b7b1

View File

@@ -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
}