Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/libxkbcommon/
Date: Thu, 17 Sep 2020 14:00:26
Message-Id: 1600351129.44ccafe031b0d409d416b75333db55453011319d.polynomial-c@gentoo
1 commit: 44ccafe031b0d409d416b75333db55453011319d
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 17 13:58:49 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 17 13:58:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44ccafe0
7
8 x11-libs/libxkbcommon: Bump to version 1.0.1
9
10 Package-Manager: Portage-3.0.7, Repoman-3.0.1
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 x11-libs/libxkbcommon/Manifest | 1 +
14 x11-libs/libxkbcommon/libxkbcommon-1.0.1.ebuild | 56 +++++++++++++++++++++++++
15 2 files changed, 57 insertions(+)
16
17 diff --git a/x11-libs/libxkbcommon/Manifest b/x11-libs/libxkbcommon/Manifest
18 index 570598248cf..e7524f531f6 100644
19 --- a/x11-libs/libxkbcommon/Manifest
20 +++ b/x11-libs/libxkbcommon/Manifest
21 @@ -1 +1,2 @@
22 DIST libxkbcommon-0.10.0.tar.xz 383788 BLAKE2B 0e2cc110c35a4d07cfd55a46a4cc30038bc296f74522beb97b72d0318799adb76fa514427640f286254de7aa59fb8b8c26de5d8fd52f7e09c5ba3521febb97bd SHA512 58c523b42a8ea0cae7322d453fbc5d4624374221246cb067074e2ff9820eef3ceea8686283136432cdf0842acfc0858c7b2d3954de234b6501092ae1d27c9e79
23 +DIST libxkbcommon-1.0.1.tar.xz 432692 BLAKE2B 151e9c2260b517e7e646defea8dfa1891af87aaeeebbf52d41d8e6b52c2c1d5079ca55da9e998300145c83718ce981be13c3fa35d8825bcde7846dcd330e9dfd SHA512 929be7b52fae360a696f01e0a8f3aa9b585ad99db975a88680ababf623e46f4d98e6f7590a2859c24060856f45b27e7249072702fbbf5a7bd0d4a10791e6d489
24
25 diff --git a/x11-libs/libxkbcommon/libxkbcommon-1.0.1.ebuild b/x11-libs/libxkbcommon/libxkbcommon-1.0.1.ebuild
26 new file mode 100644
27 index 00000000000..15fdecd2c42
28 --- /dev/null
29 +++ b/x11-libs/libxkbcommon/libxkbcommon-1.0.1.ebuild
30 @@ -0,0 +1,56 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +if [[ ${PV} = *9999* ]]; then
37 + GIT_ECLASS="git-r3"
38 + EGIT_REPO_URI="https://github.com/xkbcommon/${PN}"
39 +else
40 + SRC_URI="https://xkbcommon.org/download/${P}.tar.xz"
41 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
42 +fi
43 +
44 +inherit meson multilib-minimal ${GIT_ECLASS}
45 +
46 +DESCRIPTION="keymap handling library for toolkits and window systems"
47 +HOMEPAGE="https://xkbcommon.org/ https://github.com/xkbcommon/libxkbcommon/"
48 +LICENSE="MIT"
49 +IUSE="X doc static-libs test"
50 +RESTRICT="!test? ( test )"
51 +SLOT="0"
52 +
53 +BDEPEND="
54 + sys-devel/bison
55 + doc? ( app-doc/doxygen )"
56 +RDEPEND="X? ( >=x11-libs/libxcb-1.10:=[${MULTILIB_USEDEP},xkb] )"
57 +DEPEND="${RDEPEND}
58 + X? ( x11-base/xorg-proto )"
59 +
60 +src_unpack() {
61 + default
62 + [[ $PV = 9999* ]] && git-r3_src_unpack
63 +}
64 +
65 +multilib_src_configure() {
66 + local emesonargs=(
67 + -Ddefault_library="$(usex static-libs both shared)"
68 + -Dxkb-config-root="${EPREFIX}/usr/share/X11/xkb"
69 + -Denable-wayland=false # Demo applications
70 + $(meson_use X enable-x11)
71 + $(meson_use doc enable-docs)
72 + )
73 + meson_src_configure
74 +}
75 +
76 +multilib_src_compile() {
77 + meson_src_compile
78 +}
79 +
80 +multilib_src_test() {
81 + meson_src_test
82 +}
83 +
84 +multilib_src_install() {
85 + meson_src_install
86 +}