diff --git a/x11-libs/libxkbcommon/Manifest b/x11-libs/libxkbcommon/Manifest index 89134a09e96d8..0954dcfb3d63c 100644 --- a/x11-libs/libxkbcommon/Manifest +++ b/x11-libs/libxkbcommon/Manifest @@ -1,3 +1,4 @@ DIST libxkbcommon-1.8.0.tar.gz 995648 BLAKE2B 8edd795aff35c881bfad7905b4dc73d4a99fde23afad1b8874cb599490b5245e6b1d83a97dfd7a2031c1d232618c9a8ecfd586990b4a46df1eb87944f20660c1 SHA512 2e9a9c02bcc515c43db38266ad4b23d3530be3de28d05e086d3c12155cf1c569609a55fa4ea4ca9b0adbd8d2a553724bfa78f63481487bfee6379b3664f3aed0 DIST libxkbcommon-1.8.1.tar.gz 983334 BLAKE2B e990a37261e584b9f87348518f9036793896b7e55c490b90a05329a00c3589eb9ad1001ed7e125dc4b98b51f5e4f77de32779967407fd986697c0dc079e94142 SHA512 a11b8563b11bd085b909753fa99e5b2129343363a05d4fac44a46b334b644dbdd57c356021926e9fdcc2bf6855b90283af93e74c471c3d5677c2ed1bf19427c2 DIST libxkbcommon-1.9.0.tar.gz 1047465 BLAKE2B 3c7d5840057281cb1490a161e8ad504596dafacd4961e41599d8f753b8de032173a791bd1dd8ef441948aab9ed685bb60d123974ad8d68bfb86bc2320cd1b70a SHA512 e3f93c940f730b4932fe94e042cb2368005a13fcd4b4c2ef89c79a19ebaddeed3e036260817f862a7d7c6878cb8c77a63285beaf232e252bf8e17b558410495f +DIST libxkbcommon-1.9.1.tar.gz 1049295 BLAKE2B 50b1f68a428d875bb589262faa60d5f53e259bd11489684268402024152096a13f15518571330aae474603e03aafacbe3a9da6c74492a8305af9f5a9dd56c777 SHA512 4afd759a85dfe2cbf07469dda8497ad6857778ae5d1b476b646fb7ff564a086160bc8b6f419cb340d4b51293867f808000f947eba26490176ca31ccb53ef4483 diff --git a/x11-libs/libxkbcommon/libxkbcommon-1.9.1.ebuild b/x11-libs/libxkbcommon/libxkbcommon-1.9.1.ebuild new file mode 100644 index 0000000000000..38d001ad809c0 --- /dev/null +++ b/x11-libs/libxkbcommon/libxkbcommon-1.9.1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [[ ${PV} = *9999* ]]; then + GIT_ECLASS="git-r3" + EGIT_REPO_URI="https://github.com/xkbcommon/${PN}" +else + SRC_URI="https://github.com/xkbcommon/libxkbcommon/archive/refs/tags/xkbcommon-${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + S="${WORKDIR}/libxkbcommon-xkbcommon-${PV}" +fi + +PYTHON_COMPAT=( python3_{11..13} ) + +inherit bash-completion-r1 meson-multilib ${GIT_ECLASS} python-any-r1 virtualx + +DESCRIPTION="Keymap handling library for toolkits and window systems" +HOMEPAGE="https://xkbcommon.org/ https://github.com/xkbcommon/libxkbcommon/" +LICENSE="MIT" +SLOT="0" + +IUSE="doc static-libs test tools wayland X" +RESTRICT="!test? ( test )" + +BDEPEND=" + app-alternatives/yacc + doc? ( app-text/doxygen[dot] ) + test? ( ${PYTHON_DEPS} ) + tools? ( wayland? ( dev-util/wayland-scanner ) ) +" +RDEPEND=" + X? ( >=x11-libs/libxcb-1.10:=[${MULTILIB_USEDEP}] ) + tools? ( wayland? ( >=dev-libs/wayland-1.2.0[${MULTILIB_USEDEP}] ) ) + dev-libs/libxml2[${MULTILIB_USEDEP}] + x11-misc/compose-tables + x11-misc/xkeyboard-config +" +DEPEND="${RDEPEND} + X? ( x11-base/xorg-proto ) + tools? ( wayland? ( >=dev-libs/wayland-protocols-1.12 ) ) +" + +pkg_setup() { + if use test; then + python-any-r1_pkg_setup + fi +} + +multilib_src_configure() { + local emesonargs=( + -Ddefault_library="$(usex static-libs both shared)" + -Dxkb-config-root="${EPREFIX}/usr/share/X11/xkb" + -Dbash-completion-path="$(get_bashcompdir)" + $(meson_native_use_bool tools enable-tools) + $(meson_use X enable-x11) + $(meson_native_use_bool doc enable-docs) + $(meson_use wayland enable-wayland) + ) + meson_src_configure +} + +multilib_src_test() { + virtx meson_src_test +} + +multilib_src_install_all() { + if use doc; then + mv "${ED}"/usr/share/doc/{${PN},${P}} || die + fi +}