summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-apps/portage/portage-2.3.43.ebuild6
-rw-r--r--sys-apps/portage/portage-9999.ebuild2
2 files changed, 6 insertions, 2 deletions
diff --git a/sys-apps/portage/portage-2.3.43.ebuild b/sys-apps/portage/portage-2.3.43.ebuild
index b0e8987ea116..4afb116e9521 100644
--- a/sys-apps/portage/portage-2.3.43.ebuild
+++ b/sys-apps/portage/portage-2.3.43.ebuild
@@ -5,7 +5,7 @@ EAPI=5
PYTHON_COMPAT=(
pypy
- python3_4 python3_5 python3_6
+ python3_4 python3_5 python3_6 python3_7
python2_7
)
PYTHON_REQ_USE='bzip2(+),threads(+)'
@@ -95,6 +95,10 @@ pkg_setup() {
python_prepare_all() {
distutils-r1_python_prepare_all
+ # Apply ae8cc32ccd81 and e46dd735cd4d for python3.7 compat.
+ sed -e 's|\(def call_.*,*args\)):$|\1, **kwargs):|' \
+ -i pym/portage/util/_eventloop/EventLoop.py || die
+
if use gentoo-dev; then
einfo "Disabling --dynamic-deps by default for gentoo-dev..."
sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \
diff --git a/sys-apps/portage/portage-9999.ebuild b/sys-apps/portage/portage-9999.ebuild
index b02d454312c9..fb6671b35c85 100644
--- a/sys-apps/portage/portage-9999.ebuild
+++ b/sys-apps/portage/portage-9999.ebuild
@@ -5,7 +5,7 @@ EAPI=6
PYTHON_COMPAT=(
pypy
- python3_4 python3_5 python3_6
+ python3_4 python3_5 python3_6 python3_7
python2_7
)
PYTHON_REQ_USE='bzip2(+),threads(+)'