public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Shaoyu Tseng" <shaoyu0209@tuta.io>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/orjson-bin/
Date: Thu, 29 Jul 2021 10:11:50 +0000 (UTC)	[thread overview]
Message-ID: <1627553482.9c308e990aa087c98d1d51ae88d3f05bf0339480.shaoyu0209@gentoo> (raw)

commit:     9c308e990aa087c98d1d51ae88d3f05bf0339480
Author:     Shaoyu Tseng <shaoyu0209 <AT> tuta <DOT> io>
AuthorDate: Thu Jul 29 10:11:22 2021 +0000
Commit:     Shaoyu Tseng <shaoyu0209 <AT> tuta <DOT> io>
CommitDate: Thu Jul 29 10:11:22 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9c308e99

dev-python/orjson-bin: new package

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

 dev-python/orjson-bin/Manifest                |  2 ++
 dev-python/orjson-bin/metadata.xml            | 12 +++++++
 dev-python/orjson-bin/orjson-bin-3.6.0.ebuild | 48 +++++++++++++++++++++++++++
 3 files changed, 62 insertions(+)

diff --git a/dev-python/orjson-bin/Manifest b/dev-python/orjson-bin/Manifest
new file mode 100644
index 000000000..665d13755
--- /dev/null
+++ b/dev-python/orjson-bin/Manifest
@@ -0,0 +1,2 @@
+DIST orjson-bin-3.6.0_aarch64.zip 218609 BLAKE2B 880852a268f833b906bb6ef1cd7c9f2f40fe6ce043f52a8a7bdf965b4274a2ac0c215849b55da994f8bb328b903bc4a6a9414d0c3f16cb1a9be4f5c029e5b632 SHA512 70382465c3676fe3722688e0c223de3c86bb4555c1c996dd586aa782a3ecd3f6003a5c0f4154bfe90c18b2d4027b0a2c169b97315206e656a48557a5415eabd2
+DIST orjson-bin-3.6.0_x86_64.zip 235974 BLAKE2B 8d80d7b40fa87be2b5a6b25840c02392e411dbce45247e46ebbfef94c15fd9e1596ba7ac6a40a53dde775f68d82b6c66c7350b392ce0f07ad92bb6ae65455767 SHA512 e80a7e0c785d6927a1d971553d04fca75e4b13fe5fb099ab362465cdfea69e911918ce94a480e9fead564a795f4a96a594918f4326e407f015b7d3c00ff08764

diff --git a/dev-python/orjson-bin/metadata.xml b/dev-python/orjson-bin/metadata.xml
new file mode 100644
index 000000000..5093c32b1
--- /dev/null
+++ b/dev-python/orjson-bin/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
+<pkgmetadata>
+	<maintainer type="person">
+		<email>shaoyu0209@tuta.io</email>
+		<name>Shaoyu Tseng</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="pypi">orjson</remote-id>
+		<remote-id type="github">ijl/orjson</remote-id>
+	</upstream>
+</pkgmetadata>

diff --git a/dev-python/orjson-bin/orjson-bin-3.6.0.ebuild b/dev-python/orjson-bin/orjson-bin-3.6.0.ebuild
new file mode 100644
index 000000000..c3e93b01f
--- /dev/null
+++ b/dev-python/orjson-bin/orjson-bin-3.6.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..9} )
+inherit python-r1 python-utils-r1
+
+MY_PN=${PN//-bin/}
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy"
+HOMEPAGE="https://github.com/ijl/orjson"
+
+SRC_URI="
+	amd64? (
+	https://files.pythonhosted.org/packages/cp310/${P:0:1}/${MY_PN}/${MY_P}-cp310-cp310-manylinux_2_24_x86_64.whl -> ${P}_x86_64.zip
+	)
+	arm64? (
+	https://files.pythonhosted.org/packages/cp310/${P:0:1}/${MY_PN}/${MY_P}-cp310-cp310-manylinux_2_24_aarch64.whl -> ${P}_aarch64.zip
+	)
+
+	"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="test"
+
+S="${WORKDIR}/"
+
+pkg_setup() {
+	python_setup
+}
+
+src_install(){
+	insinto "$(python_get_sitedir)"
+	if use amd64; then
+		doins orjson.cpython-310-x86_64-linux-gnu.so
+		dosym  $(python_get_sitedir)/orjson.cpython-310-x86_64-linux-gnu.so $(python_get_sitedir)/orjson.cpython-39-x86_64-linux-gnu.so
+		dosym  $(python_get_sitedir)/orjson.cpython-310-x86_64-linux-gnu.so $(python_get_sitedir)/orjson.cpython-38-x86_64-linux-gnu.so
+		dosym  $(python_get_sitedir)/orjson.cpython-310-x86_64-linux-gnu.so $(python_get_sitedir)/orjson.cpython-37-x86_64-linux-gnu.so
+	elif use arm64; then
+		doins orjson.cpython-310-aarch64-linux-gnu.so
+		dosym  $(python_get_sitedir)/orjson.cpython-310-aarch64-linux-gnu.so $(python_get_sitedir)/orjson.cpython-39-aarch64-linux-gnu.so
+		dosym  $(python_get_sitedir)/orjson.cpython-310-aarch64-linux-gnu.so $(python_get_sitedir)/orjson.cpython-38-aarch64-linux-gnu.so
+		dosym  $(python_get_sitedir)/orjson.cpython-310-aarch64-linux-gnu.so $(python_get_sitedir)/orjson.cpython-37-aarch64-linux-gnu.so
+	fi
+}


             reply	other threads:[~2021-07-29 10:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-29 10:11 Shaoyu Tseng [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-07-30  8:50 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/orjson-bin/ Andrew Ammerlaan
2021-07-31  7:23 Shaoyu Tseng
2021-07-31  8:17 Shaoyu Tseng
2021-08-03  8:49 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-08-03  8:49 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-08-08  4:11 Shaoyu Tseng
2021-10-17 16:46 Shaoyu Tseng
2022-04-06 21:50 Shaoyu Tseng
2022-04-11 18:39 Shaoyu Tseng
2022-11-28 18:41 Jack Sangdahl
2023-03-09  9:38 Anna Vyalkova

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1627553482.9c308e990aa087c98d1d51ae88d3f05bf0339480.shaoyu0209@gentoo \
    --to=shaoyu0209@tuta.io \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox