Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New packages: python3-grpcio{,-tools}-1.32.0
@ 2020-09-21 18:16 ahesford
  2020-09-21 19:45 ` [PR PATCH] [Merged]: " ahesford
  0 siblings, 1 reply; 2+ messages in thread
From: ahesford @ 2020-09-21 18:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 330 bytes --]

There is a new pull request by ahesford against master on the void-packages repository

https://github.com/ahesford/void-packages grpcio
https://github.com/void-linux/void-packages/pull/25014

New packages: python3-grpcio{,-tools}-1.32.0


A patch file from https://github.com/void-linux/void-packages/pull/25014.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-grpcio-25014.patch --]
[-- Type: text/x-diff, Size: 4122 bytes --]

From d86c164bf89c2d6746c7b2ad8775d80e5b39adb0 Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Mon, 21 Sep 2020 13:57:40 -0400
Subject: [PATCH 1/2] New package: python3-grpcio-1.32.0

---
 srcpkgs/python3-grpcio/template | 50 +++++++++++++++++++++++++++++++++
 srcpkgs/python3-grpcio/update   |  1 +
 2 files changed, 51 insertions(+)
 create mode 100644 srcpkgs/python3-grpcio/template
 create mode 100644 srcpkgs/python3-grpcio/update

diff --git a/srcpkgs/python3-grpcio/template b/srcpkgs/python3-grpcio/template
new file mode 100644
index 00000000000..10bb03582a0
--- /dev/null
+++ b/srcpkgs/python3-grpcio/template
@@ -0,0 +1,50 @@
+# Template file for 'python3-grpcio'
+pkgname=python3-grpcio
+version=1.32.0
+revision=1
+wrksrc="${pkgname#*-}-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools python3-six"
+makedepends="python3-devel zlib-devel c-ares-devel libressl-devel"
+depends="python3-six"
+short_desc="HTTP/2-based gRPC framework for Python"
+maintainer="Andrew J. Hesford <ajh@sideband.org>"
+license="Apache-2.0"
+homepage="https://grpc.io"
+distfiles="${PYPI_SITE}/g/grpcio/grpcio-${version}.tar.gz"
+checksum=01d3046fe980be25796d368f8fc5ff34b7cf5e1444f3789a017a7fe794465639
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	makedepends+=" libatomic-devel"
+fi
+
+if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
+export GRPC_PYTHON_BUILD_SYSTEM_CARES=1
+
+post_patch() {
+	if [ "${CROSS_BUILD}" ]; then
+		vsed -i setup.py -e "s@['\"]cc['\"]@'${CC}'@g" \
+			-e "/os.path.join/s@/usr@${XBPS_CROSS_BASE}/usr@g"
+		vsed -e "s@['\"]cc['\"]@'${CC}'@g" \
+			-i src/python/grpcio/commands.py
+	fi
+
+	# Use BoringSSL ASM when possible
+	local asm_key
+	case "${XBPS_TARGET_MACHINE}" in
+		x86_64*) asm_key=crypto_linux_x86_64;;
+		i686*) asm_key=crypto_linux_x86;;
+		aarch64*) asm_key=crypto_linux_aarch64;;
+		armv6l*|armv7l*) asm_key=crypto_linux_arm;;
+		ppc64le*) asm_key=crypto_linux_ppc64le;;
+		*) ;;
+	esac
+
+	vsed -i setup.py \
+		-e "s/asm_key = .*/asm_key = '${asm_key}'/" \
+		-e "s/if BUILD_WITH_BORING_SSL_ASM:/if False:/"
+}
diff --git a/srcpkgs/python3-grpcio/update b/srcpkgs/python3-grpcio/update
new file mode 100644
index 00000000000..864db4921be
--- /dev/null
+++ b/srcpkgs/python3-grpcio/update
@@ -0,0 +1 @@
+pattern="grpcio-\K[0-9.]+(?=.tar)"

From 998002348f9781f11053cc7489a3b799886fb773 Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Mon, 21 Sep 2020 14:06:37 -0400
Subject: [PATCH 2/2] New package: python3-grpcio-tools-1.32.0

---
 srcpkgs/python3-grpcio-tools/template | 25 +++++++++++++++++++++++++
 srcpkgs/python3-grpcio-tools/update   |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 srcpkgs/python3-grpcio-tools/template
 create mode 100644 srcpkgs/python3-grpcio-tools/update

diff --git a/srcpkgs/python3-grpcio-tools/template b/srcpkgs/python3-grpcio-tools/template
new file mode 100644
index 00000000000..5fd2235a5ff
--- /dev/null
+++ b/srcpkgs/python3-grpcio-tools/template
@@ -0,0 +1,25 @@
+# Template file for 'python3-grpcio-tools'
+pkgname=python3-grpcio-tools
+version=1.32.0
+revision=1
+wrksrc="${pkgname#*-}-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+makedepends="python3-devel"
+depends="python3-protobuf python3-grpcio"
+short_desc="Protobuf code generator for gRPC"
+maintainer="Andrew J. Hesford <ajh@sideband.org>"
+license="Apache-2.0"
+homepage="https://grpc.io"
+distfiles="${PYPI_SITE}/g/grpcio-tools/grpcio-tools-${version}.tar.gz"
+checksum=28547272c51e1d2d343685b9f531e85bb90ad7bd93e726ba646b5627173cbc47
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	makedepends+=" libatomic-devel"
+fi
+
+post_patch() {
+	if [ "${CROSS_BUILD}" ]; then
+		vsed -i setup.py -e "s@['\"]cc['\"]@'${CC}'@g"
+	fi
+}
diff --git a/srcpkgs/python3-grpcio-tools/update b/srcpkgs/python3-grpcio-tools/update
new file mode 100644
index 00000000000..e3360827d9a
--- /dev/null
+++ b/srcpkgs/python3-grpcio-tools/update
@@ -0,0 +1 @@
+pattern="grpcio-tools-\K[0-9.]+(?=.tar)"

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: New packages: python3-grpcio{,-tools}-1.32.0
  2020-09-21 18:16 [PR PATCH] New packages: python3-grpcio{,-tools}-1.32.0 ahesford
@ 2020-09-21 19:45 ` ahesford
  0 siblings, 0 replies; 2+ messages in thread
From: ahesford @ 2020-09-21 19:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 178 bytes --]

There's a merged pull request on the void-packages repository

New packages: python3-grpcio{,-tools}-1.32.0
https://github.com/void-linux/void-packages/pull/25014

Description:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-21 19:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21 18:16 [PR PATCH] New packages: python3-grpcio{,-tools}-1.32.0 ahesford
2020-09-21 19:45 ` [PR PATCH] [Merged]: " ahesford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).