summaryrefslogtreecommitdiff
path: root/x11-base
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
commitd934827bf44b7cfcf6711964418148fa60877668 (patch)
tree0625f358789b5e015e49db139cc1dbc9be00428f /x11-base
parent2e34d110f164bf74d55fced27fe0000201b3eec5 (diff)
gentoo resync : 25.11.2020
Diffstat (limited to 'x11-base')
-rw-r--r--x11-base/Manifest.gzbin1049 -> 1048 bytes
-rw-r--r--x11-base/xcb-proto/Manifest5
-rw-r--r--x11-base/xcb-proto/files/xcb-proto-1.14-python3_9.patch54
-rw-r--r--x11-base/xcb-proto/xcb-proto-1.14-r1.ebuild4
-rw-r--r--x11-base/xcb-proto/xcb-proto-1.14.1.ebuild52
5 files changed, 113 insertions, 2 deletions
diff --git a/x11-base/Manifest.gz b/x11-base/Manifest.gz
index 1168c70494a8..6840d46b89aa 100644
--- a/x11-base/Manifest.gz
+++ b/x11-base/Manifest.gz
Binary files differ
diff --git a/x11-base/xcb-proto/Manifest b/x11-base/xcb-proto/Manifest
index b44c8ca23b59..b8123d0404c9 100644
--- a/x11-base/xcb-proto/Manifest
+++ b/x11-base/xcb-proto/Manifest
@@ -1,3 +1,6 @@
+AUX xcb-proto-1.14-python3_9.patch 1615 BLAKE2B 3c2def81fc944619a4848e00b28252cd1835f7568c9aaf963b6134a433f4447e46f7db2911c37d01378a8ef845f01ee1ab6a470d1d27711a2659ee6f0ec6ef05 SHA512 a6a365a055c6cd4721665d8838dfb48c1436e2a9796f81fbd34230883c5e7d585de86f11125ba9aa367c353198a6d811bed3875af7653b549c44943154f0bba0
+DIST xcb-proto-1.14.1.tar.xz 143588 BLAKE2B 24983ec26632e93ef2d0c854cd41272925b6f3aab2642701232b73bc37d200d794c46f438e4a4102484e6ac9723e78c923b99cc78ada3541f43eaf0ad7ebc863 SHA512 140fbf48483bacc7f6b70fdcf76f9e4ff0e87df9cb3a071cea47d8fe4574407cdefcfbd674099014d297e5fc010748e71d8609fca4cc32e8b25c634f928b727d
DIST xcb-proto-1.14.tar.xz 143384 BLAKE2B 60212b0f0ce039a64a2e6cbbc78564eeffc57cff20987b37dc780d8d97ae888a7dbfbbaadc6e0e4bedfc5d1e360f16318e3825ad8406de668d9c7c66cf7f4b5d SHA512 de66d568163b6da2be9d6c59984f3afa3acd119a781378638045fd68018665ef5c9af98f024e9962ba3eb7c7a4d85c27ba70ffafceb2324ccc6940f34de16690
-EBUILD xcb-proto-1.14-r1.ebuild 1292 BLAKE2B 28a2bb2656257f6348b5e780dc79751543e38acbf4e10d0c6723ad2c61f2026e78695cc59b7c6a2645dbea46d0900e5c5a9b115ccf8c9101d0e26c47a8c32fdc SHA512 c7ab6aa93485610b6e0424dc79022c8bfcf66e48d9e64236d10bab045658aeeec3837d00d321e10be7f9b6e5063582f41b66486a6b11bdc32e78a0825fc8295e
+EBUILD xcb-proto-1.14-r1.ebuild 1344 BLAKE2B 889cb5940342183312451a0fec195fda3b222ddc5c7189759cf286fc59c87d219c1cda9c49a2e844e801bc3c49f2ac04cd8b7a5a20d61de16d3a9acd2ed4e861 SHA512 f12b4868eeff69ea398dbe9ad57ef8b39596c7c62af3acc7623e361064480f8771eff3d590fcff3944bf2a363e6f0e7012b02d5ab0b869ef00135f367635cf11
+EBUILD xcb-proto-1.14.1.ebuild 1299 BLAKE2B 651d318fa72bd0b4b7327b2de26efc96753521ec0e5ff3c32c4963df1d32d60d73baec30d3a99671112d0e7490de4d052aa762966d8114e88c969110bbec0a80 SHA512 baa7706bade7a55b92206d966d566e7f4b1133794d0d2dc4c44f901ffeed2bf3d48d2d72e767b772108b1bba370c04010f90a72dfd53f522d7fd98b35df6f7d5
MISC metadata.xml 230 BLAKE2B 70bf59e64305ef14908197f2aa7ffbc1769ade265097da68e001245451658af5921760c91cb74aae717543ea0017e2471fd94bfc5c4c447d2d60e2c23aa3b007 SHA512 d7a2643abd1904cc5ff4d91cbb6f1baeb7f75fd1db542c5e14f19412f4f0bd4b903f8e703a7662ba7482c79dac5529057760b6427599d35e0842755fd946e057
diff --git a/x11-base/xcb-proto/files/xcb-proto-1.14-python3_9.patch b/x11-base/xcb-proto/files/xcb-proto-1.14-python3_9.patch
new file mode 100644
index 000000000000..358cd629eb6d
--- /dev/null
+++ b/x11-base/xcb-proto/files/xcb-proto-1.14-python3_9.patch
@@ -0,0 +1,54 @@
+diff --git a/xcbgen/align.py b/xcbgen/align.py
+index d4c12ee40195cb1986796bed009f5ba70dede1d3..5c4f5177dcb14753dabe6f0c8fee57781202efba 100644
+--- a/xcbgen/align.py
++++ b/xcbgen/align.py
+@@ -2,7 +2,12 @@
+ This module contains helper classes for alignment arithmetic and checks
+ '''
+
+-from fractions import gcd
++from sys import version_info
++
++if version_info[:2] >= (3, 5):
++ from math import gcd
++else:
++ from fractions import gcd
+
+ class Alignment(object):
+
+diff --git a/xcbgen/matcher.py b/xcbgen/matcher.py
+index 97a8b43bb24d29b6414b1e139c73cde966118ea8..a13ef2846fda2d2be249ca0c5dd06d35b90cf6cc 100644
+--- a/xcbgen/matcher.py
++++ b/xcbgen/matcher.py
+@@ -7,7 +7,12 @@ we do not create a new type object, we just record the existing one under a new
+ '''
+
+ from os.path import join
+-from xml.etree.cElementTree import parse
++from sys import version_info
++
++if version_info[:2] >= (3, 9):
++ from xml.etree.ElementTree import parse
++else:
++ from xml.etree.cElementTree import parse
+
+ from xcbgen.xtypes import *
+
+diff --git a/xcbgen/state.py b/xcbgen/state.py
+index 0dbecdc7b6f96bbf5f0e549787b20f9986039f1b..3b7eeb42bec1b00e5253aa93e58e0cd1fb7a3389 100644
+--- a/xcbgen/state.py
++++ b/xcbgen/state.py
+@@ -2,7 +2,12 @@
+ This module contains the namespace class and the singleton module class.
+ '''
+ from os.path import dirname, basename
+-from xml.etree.cElementTree import parse
++from sys import version_info
++
++if version_info[:2] >= (3, 9):
++ from xml.etree.ElementTree import parse
++else:
++ from xml.etree.cElementTree import parse
+
+ from xcbgen import matcher
+ from xcbgen.error import *
diff --git a/x11-base/xcb-proto/xcb-proto-1.14-r1.ebuild b/x11-base/xcb-proto/xcb-proto-1.14-r1.ebuild
index db6a3ce99915..c110c43bc101 100644
--- a/x11-base/xcb-proto/xcb-proto-1.14-r1.ebuild
+++ b/x11-base/xcb-proto/xcb-proto-1.14-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python{3_6,3_7,3_8} )
+PYTHON_COMPAT=( python3_{6,7,8,9} )
XORG_TARBALL_SUFFIX="xz"
XORG_MODULE=proto/
XORG_MULTILIB=yes
@@ -30,6 +30,8 @@ BDEPEND="
ECONF_SOURCE="${S}"
+PATCHES=( "${FILESDIR}"/${PN}-1.14-python3_9.patch )
+
multilib_src_configure() {
# Don't use Python to find sitedir here.
PYTHON=true default
diff --git a/x11-base/xcb-proto/xcb-proto-1.14.1.ebuild b/x11-base/xcb-proto/xcb-proto-1.14.1.ebuild
new file mode 100644
index 000000000000..911a6583b181
--- /dev/null
+++ b/x11-base/xcb-proto/xcb-proto-1.14.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8,9} )
+XORG_TARBALL_SUFFIX="xz"
+XORG_MODULE=proto/
+XORG_MULTILIB=yes
+XORG_STATIC=no
+
+inherit python-r1 xorg-3
+
+DESCRIPTION="X C-language Bindings protocol headers"
+HOMEPAGE="https://xcb.freedesktop.org/ https://gitlab.freedesktop.org/xorg/proto/xcbproto"
+EGIT_REPO_URI="https://gitlab.freedesktop.org/xorg/proto/xcbproto.git"
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND=""
+RDEPEND="
+ ${PYTHON_DEPS}
+"
+BDEPEND="
+ ${PYTHON_DEPS}
+ dev-libs/libxml2
+"
+
+ECONF_SOURCE="${S}"
+
+multilib_src_configure() {
+ # Don't use Python to find sitedir here.
+ PYTHON=true default
+}
+
+src_compile() {
+ :
+}
+
+xcbgen_install() {
+ # Use eclass to find sitedir instead.
+ emake -C xcbgen install DESTDIR="${D}" pythondir="$(python_get_sitedir)"
+ python_optimize
+}
+
+multilib_src_install() {
+ # Restrict SUBDIRS to prevent xcbgen with empty sitedir.
+ emake install DESTDIR="${D}" SUBDIRS=src
+ multilib_is_native_abi && python_foreach_impl xcbgen_install
+}