mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
net-libs/nodejs: support python3_10
The version of jinja bundled with v8 (in all versions currently in the tree) still imports ABCs from collections rather than collections.abc, then again with that patched everything seems to be in order. Signed-off-by: Marek Szuba <marecki@gentoo.org>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
--- a/deps/v8/third_party/jinja2/tests.py
|
||||
+++ b/deps/v8/third_party/jinja2/tests.py
|
||||
@@ -10,7 +10,7 @@
|
||||
"""
|
||||
import operator
|
||||
import re
|
||||
-from collections import Mapping
|
||||
+from collections.abc import Mapping
|
||||
from jinja2.runtime import Undefined
|
||||
from jinja2._compat import text_type, string_types, integer_types
|
||||
import decimal
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
PYTHON_COMPAT=( python3_{7..10} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
|
||||
@@ -53,6 +53,7 @@ DEPEND="
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
|
||||
"${FILESDIR}"/${PN}-12.20.1-fix_ppc64_crashes.patch
|
||||
"${FILESDIR}"/${PN}-12.22.1-jinja_collections_abc.patch
|
||||
"${FILESDIR}"/${PN}-12.22.1-uvwasi_shared_libuv.patch
|
||||
"${FILESDIR}"/${PN}-12.22.1-v8_icu69.patch
|
||||
"${FILESDIR}"/${PN}-99999999-llhttp.patch
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
PYTHON_COMPAT=( python3_{7..10} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
|
||||
@@ -48,6 +48,7 @@ DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
|
||||
"${FILESDIR}"/${PN}-12.22.1-jinja_collections_abc.patch
|
||||
"${FILESDIR}"/${PN}-12.22.1-uvwasi_shared_libuv.patch
|
||||
"${FILESDIR}"/${PN}-14.15.0-fix_ppc64_crashes.patch
|
||||
"${FILESDIR}"/${PN}-14.16.1-v8_icu69.patch
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
PYTHON_COMPAT=( python3_{7..10} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
|
||||
@@ -47,6 +47,7 @@ BDEPEND="${PYTHON_DEPS}
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-12.22.1-jinja_collections_abc.patch
|
||||
"${FILESDIR}"/${PN}-12.22.1-uvwasi_shared_libuv.patch
|
||||
"${FILESDIR}"/${PN}-15.2.0-global-npm-config.patch
|
||||
"${FILESDIR}"/${PN}-16.1.0-test-repl-history-navigation.patch
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
PYTHON_COMPAT=( python3_{7..10} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
|
||||
@@ -46,6 +46,10 @@ BDEPEND="${PYTHON_DEPS}
|
||||
pax_kernel? ( sys-apps/elfix )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-12.22.1-jinja_collections_abc.patch # still needed as of 2021-05-13
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
(use x86 && ! use cpu_flags_x86_sse2) && \
|
||||
die "Your CPU doesn't support the required SSE2 instruction."
|
||||
|
||||
Reference in New Issue
Block a user