Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-base/xorg-proto/
Date: Thu, 11 Aug 2022 18:20:10
Message-Id: 1660239636.369f9d3e07ee4771ea5dd15544d24257662203c5.mattst88@gentoo
1 commit: 369f9d3e07ee4771ea5dd15544d24257662203c5
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 11 17:37:33 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 11 17:40:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=369f9d3e
7
8 x11-base/xorg-proto: Version bump to 2022.2
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 x11-base/xorg-proto/Manifest | 1 +
13 x11-base/xorg-proto/xorg-proto-2022.2.ebuild | 54 ++++++++++++++++++++++++++++
14 2 files changed, 55 insertions(+)
15
16 diff --git a/x11-base/xorg-proto/Manifest b/x11-base/xorg-proto/Manifest
17 index 724cae2bffbd..24828bbfcd00 100644
18 --- a/x11-base/xorg-proto/Manifest
19 +++ b/x11-base/xorg-proto/Manifest
20 @@ -1 +1,2 @@
21 DIST xorgproto-2022.1.tar.gz 1107316 BLAKE2B b7c60d77978f95b62208c5c5974c7310a9b6197c8b14218ba319eb44660f20c5eb33ef106beccae16f79a0530a20bd38b6aa2de81329c4b48a2da285ab903c31 SHA512 e34404eb9f7edfebdecbf38c66491fbca91929c59b5762d3266b2808cdae3f4e65589001d29bf5374effc56173a5467f5a107bf4fe05acae69839b841e83f72c
22 +DIST xorgproto-2022.2.tar.xz 757080 BLAKE2B 0fee7910fced83548780fd1c7bfd214c932c7c5064c6ebd40ac9285d071837056b9eca24dadb53a572a05768f8762c4dd81ac58fcf6b43028f557ed56a98f7f9 SHA512 8e6108110600d076a94cc6d0e465b2e9adfbbe8d7e6b75fae9c5262d99dc6074ab1ed561a74d6d451f00f5b7af9f507a6317be9c0770efeed9e60b64beb7a1c9
23
24 diff --git a/x11-base/xorg-proto/xorg-proto-2022.2.ebuild b/x11-base/xorg-proto/xorg-proto-2022.2.ebuild
25 new file mode 100644
26 index 000000000000..ccbe4831235d
27 --- /dev/null
28 +++ b/x11-base/xorg-proto/xorg-proto-2022.2.ebuild
29 @@ -0,0 +1,54 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +PYTHON_COMPAT=( python3_{8..11} )
35 +
36 +MY_PN="${PN/xorg-/xorg}"
37 +MY_P="${MY_PN}-${PV}"
38 +
39 +EGIT_REPO_URI="https://gitlab.freedesktop.org/xorg/proto/${MY_PN}.git"
40 +
41 +if [[ ${PV} = 9999* ]]; then
42 + GIT_ECLASS="git-r3"
43 +fi
44 +
45 +inherit ${GIT_ECLASS} meson python-any-r1
46 +
47 +DESCRIPTION="X.Org combined protocol headers"
48 +HOMEPAGE="https://gitlab.freedesktop.org/xorg/proto/xorgproto"
49 +if [[ ${PV} = 9999* ]]; then
50 + SRC_URI=""
51 +else
52 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
53 + SRC_URI="https://xorg.freedesktop.org/archive/individual/proto/${MY_P}.tar.xz"
54 + S="${WORKDIR}/${MY_P}"
55 +fi
56 +
57 +LICENSE="MIT"
58 +SLOT="0"
59 +IUSE="test"
60 +RESTRICT="!test? ( test )"
61 +
62 +DEPEND="
63 + test? (
64 + $(python_gen_any_dep '
65 + dev-python/python-libevdev[${PYTHON_USEDEP}]
66 + ')
67 + )
68 +"
69 +RDEPEND=""
70 +
71 +python_check_deps() {
72 + has_version -b "dev-python/python-libevdev[${PYTHON_USEDEP}]"
73 +}
74 +
75 +pkg_setup() {
76 + use test && python-any-r1_pkg_setup
77 +}
78 +
79 +src_install() {
80 + meson_src_install
81 +
82 + mv "${ED}"/usr/share/doc/{xorgproto,${P}} || die
83 +}