dev-python/orjson-bin: treeclean

Closes: https://bugs.gentoo.org/897484
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2023-03-09 14:37:16 +05:00
parent bbe98bf851
commit ce197c85a8
3 changed files with 0 additions and 73 deletions

View File

@@ -1,2 +0,0 @@
DIST orjson-bin-3.6.7-amd64.zip 255321 BLAKE2B 5c10b6da6e388754e8ba3eac65d96ad5af8cce745877de8c0c73f2747841613b5aaca70be6b718b813e8c0376a33e8e6e8d4ee472bcd86962f47482766392429 SHA512 3ace1ab1d610b2a435b09a00b5dea62aec688bc186422397cc7191b910d904e54bc51768c50fe1c67f27d51503cf57e1209597c9281f2972653c171e0c4b0b0b
DIST orjson-bin-3.6.7-arm64.zip 235165 BLAKE2B 292a28851d23eb386f5065a336826482c3f96468bebf95c606c30df0d5249ec5b09f0331423349a9e616bbdd59cb465b50d5be77ab42e8216eeadaa41c42ed5b SHA512 a6520cb6744765d939003f39efa8aeda8e6b8fac6f96d8772a3842d0d08a775e2b2a21e775f99ca0b9656a7dbe270d0b83f6ea8f1b9b77f2cb26e71f61800afe

View File

@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
<pkgmetadata>
<maintainer type="person">
<email>1over137@anche.no</email>
<name>Shaoyu Tseng</name>
</maintainer>
<upstream>
<remote-id type="pypi">orjson</remote-id>
<remote-id type="github">ijl/orjson</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -1,59 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..10} )
inherit python-r1
QA_PREBUILT="usr/lib/*"
DESCRIPTION="Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy"
HOMEPAGE="https://github.com/ijl/orjson"
# As per PEP 600 manylinux platform tag specfication, a wheel tagged
# manylinux_x_y should work with systems with >=glibc-x.y , and on Python
# versions 3.8 to 3.10
SRC_URI="
amd64? (
https://files.pythonhosted.org/packages/cp310/${P:0:1}/${PN%%-bin}/${P//-bin}-cp310-cp310-manylinux_2_24_x86_64.whl
-> ${P}-amd64.zip
)
arm64? (
https://files.pythonhosted.org/packages/cp310/${P:0:1}/${PN%%-bin}/${P//-bin}-cp310-cp310-manylinux_2_24_aarch64.whl
-> ${P}-arm64.zip
)
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RESTRICT="!test? ( test )"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
BDEPEND="app-arch/unzip"
RDEPEND="${PYTHON_DEPS}"
pkg_setup() {
python_setup
}
S="${WORKDIR}"
src_install() {
if use amd64; then
ARCH="x86_64"
elif use arm64; then
ARCH="aarch64"
fi
do_install() {
local my_installdir="$(python_get_sitedir)"
my_installdir="${my_installdir##${EPREFIX}/}"
insinto "${my_installdir}"
# Even though the soname is compatible, the python version has to be
# corrected in order for it to work
newins orjson/${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
}