From b92911550490e2da121ec4b02d3cf60a2d31a17d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 16 Apr 2024 12:04:26 +0100 Subject: gentoo auto-resync : 16:04:2024 - 12:04:26 --- x11-base/xcb-proto/xcb-proto-1.17.0.ebuild | 49 ++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 x11-base/xcb-proto/xcb-proto-1.17.0.ebuild (limited to 'x11-base/xcb-proto/xcb-proto-1.17.0.ebuild') diff --git a/x11-base/xcb-proto/xcb-proto-1.17.0.ebuild b/x11-base/xcb-proto/xcb-proto-1.17.0.ebuild new file mode 100644 index 000000000000..a7af99861180 --- /dev/null +++ b/x11-base/xcb-proto/xcb-proto-1.17.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +XORG_TARBALL_SUFFIX="xz" +XORG_MODULE=proto/ + +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 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# DEPEND="" +RDEPEND=" + ${PYTHON_DEPS} +" +BDEPEND=" + ${PYTHON_DEPS} + dev-libs/libxml2 +" + +ECONF_SOURCE="${S}" + +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 +} + +src_install() { + # Restrict SUBDIRS to prevent xcbgen with empty sitedir. + emake install DESTDIR="${D}" SUBDIRS=src + python_foreach_impl xcbgen_install +} -- cgit v1.2.3