diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-25 03:04:45 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-25 03:04:45 -0500 |
| commit | a2d754850b88dddfc90152e4eaf858d6907b5201 (patch) | |
| tree | e987342a645cd8d7bce252c8e897fcc8f1abd79b /x11-misc | |
| parent | 719f5679cb7b1141529b574349239e0640bae1ca (diff) | |
| download | baldeagleos-repo-a2d754850b88dddfc90152e4eaf858d6907b5201.tar.gz baldeagleos-repo-a2d754850b88dddfc90152e4eaf858d6907b5201.tar.xz baldeagleos-repo-a2d754850b88dddfc90152e4eaf858d6907b5201.zip | |
Adding metadata
Diffstat (limited to 'x11-misc')
| -rw-r--r-- | x11-misc/xkeyboard-config/Manifest | 1 | ||||
| -rw-r--r-- | x11-misc/xkeyboard-config/xkeyboard-config-2.48.ebuild | 80 |
2 files changed, 81 insertions, 0 deletions
diff --git a/x11-misc/xkeyboard-config/Manifest b/x11-misc/xkeyboard-config/Manifest index 87d83c58429f..ef77580a27cf 100644 --- a/x11-misc/xkeyboard-config/Manifest +++ b/x11-misc/xkeyboard-config/Manifest @@ -1 +1,2 @@ DIST xkeyboard-config-2.47.tar.xz 930468 BLAKE2B ddfe6d3c8a088cd625c1a81c56ffe1f2ada5e003b3bf0628983a0058aa9e0ff9c26ab8cfcd0a6aded22e6a545d63533b2de05570b4e0c3a22879e195dcb96f61 SHA512 bd9b70ec5c8957e087f6c12272725044e6e124c15c7cbbfffb7f3c231944984d3302adda604da05464b7be6c91b5461e74fbec8544ac21b06e3bd8c748fd04e3 +DIST xkeyboard-config-2.48.tar.xz 953316 BLAKE2B 3200801ed54cc9ec28790053fa3311429e9fbce4607cda67f1f2991b4f0764df0dc35c4f880541833644ba9a4aba075792ce3dd26c54a2539312d8c6bbb75a54 SHA512 2c24f9cca97b8863ff2e71fc3780e9c3e22e4486c80d45022e2208d559bdb40824bdb8a4037e0d5690900b6e080ddef4eacfc8bff843e04ba5ab86940f1fb6ea diff --git a/x11-misc/xkeyboard-config/xkeyboard-config-2.48.ebuild b/x11-misc/xkeyboard-config/xkeyboard-config-2.48.ebuild new file mode 100644 index 000000000000..9d58d66866b6 --- /dev/null +++ b/x11-misc/xkeyboard-config/xkeyboard-config-2.48.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{13..14} ) +inherit meson python-any-r1 + +DESCRIPTION="X keyboard configuration database" +HOMEPAGE="https://www.freedesktop.org/wiki/Software/XKeyboardConfig/ https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config" + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config.git" + inherit git-r3 +else + SRC_URI="https://www.x.org/releases/individual/data/${PN}/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + dev-lang/perl + dev-libs/libxslt + sys-devel/gettext + ${PYTHON_DEPS} + test? ( + x11-apps/xkbcomp + x11-libs/libxkbcommon + $(python_gen_any_dep ' + dev-python/pycountry[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + ') + ) +" + +python_check_deps() { + use test || return 0 + python_has_version \ + "dev-python/pycountry[${PYTHON_USEDEP}]" \ + "dev-python/pytest-xdist[${PYTHON_USEDEP}]" \ + "dev-python/pytest[${PYTHON_USEDEP}]" +} + +pkg_setup() { + python-any-r1_pkg_setup +} + +src_prepare() { + default + + # Remove pytest timeout + sed -i -e "/test('pytest'/,/)$/ { s/timeout: [0-9]*/timeout: 0/ }" meson.build || die +} + +src_configure() { + local emesonargs=( + -Dcompat-rules=true + ) + meson_src_configure +} + +src_install() { + meson_src_install + + # Workaround for portage's collision checks, see pkg_preinst (bug #957712) + mv "${ED}"/usr/share/X11/xkb{,.workaround} || die +} + +pkg_preinst() { + # Avoid touching EROOT if not needed, and use -f just-in-case anyway + if [[ -d ${EROOT}/usr/share/X11/xkb && ! -L ${EROOT}/usr/share/X11/xkb ]]; then + rm -rf "${EROOT}"/usr/share/X11/xkb || die + fi + mv "${ED}"/usr/share/X11/xkb{.workaround,} || die +} |
