Gentoo Archives: gentoo-commits

From: "Jakov Smolić" <jsmolic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/i3/
Date: Tue, 27 Sep 2022 05:23:48
Message-Id: 1664256206.c7c7ab22ab90a31dfeb516cdc56e96bef6966afc.jsmolic@gentoo
1 commit: c7c7ab22ab90a31dfeb516cdc56e96bef6966afc
2 Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 26 19:26:57 2022 +0000
4 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 27 05:23:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7c7ab22
7
8 x11-wm/i3: add 4.21
9
10 Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>
11
12 x11-wm/i3/Manifest | 1 +
13 x11-wm/i3/i3-4.21.ebuild | 107 +++++++++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 108 insertions(+)
15
16 diff --git a/x11-wm/i3/Manifest b/x11-wm/i3/Manifest
17 index 127a1bc23e2e..be1a92133669 100644
18 --- a/x11-wm/i3/Manifest
19 +++ b/x11-wm/i3/Manifest
20 @@ -1 +1,2 @@
21 DIST i3-4.20.1.tar.xz 1284984 BLAKE2B a7943b3bc680eb3df596b008d751d034fc6ccf2b6891db731b9af5164fdcfc2872c0756c81c3f11f94a30aa9bdc4ecf4b47d20022a214bb6eb6c06fd78458fb3 SHA512 c0f6b991d46180ca470cbb7ab4cf5492552beb9dbf2631c61c8d92d0647106885481962381682e9129f3993d70bc6e5de506da1d32c3710fca64a66d51e8c8ce
22 +DIST i3-4.21.tar.xz 1294968 BLAKE2B cf53e0087cb4dabc8eefa8430cc5f7057de927ef49f8172a05c62d690ca60e5d20733da4f3a6230d311bf54a94f117d21665e3d2b39b7f45814e3b0462e12efe SHA512 db56d93850b0cbc8352f5762d9596d38a641e4cf7330cf0afd3778c41a8ed140bbbed3e5419023b1bf3dcc1c470da40018aac9bf684b18d02c12ffe886d29193
23
24 diff --git a/x11-wm/i3/i3-4.21.ebuild b/x11-wm/i3/i3-4.21.ebuild
25 new file mode 100644
26 index 000000000000..4c767977870b
27 --- /dev/null
28 +++ b/x11-wm/i3/i3-4.21.ebuild
29 @@ -0,0 +1,107 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit meson optfeature virtualx
36 +
37 +DESCRIPTION="An improved dynamic tiling window manager"
38 +HOMEPAGE="https://i3wm.org/"
39 +if [[ "${PV}" = *9999 ]]; then
40 + EGIT_REPO_URI="https://github.com/i3/i3"
41 + EGIT_BRANCH="next"
42 + inherit git-r3
43 +else
44 + SRC_URI="https://i3wm.org/downloads/${P}.tar.xz"
45 + KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
46 +fi
47 +
48 +LICENSE="BSD"
49 +SLOT="0"
50 +IUSE="doc test"
51 +RESTRICT="!test? ( test )"
52 +
53 +COMMON_DEPEND="
54 + dev-libs/libev
55 + dev-libs/libpcre2
56 + dev-libs/yajl
57 + x11-libs/cairo[X,xcb(+)]
58 + x11-libs/libxcb[xkb]
59 + x11-libs/libxkbcommon[X]
60 + x11-libs/pango[X]
61 + x11-libs/startup-notification
62 + x11-libs/xcb-util
63 + x11-libs/xcb-util-cursor
64 + x11-libs/xcb-util-keysyms
65 + x11-libs/xcb-util-wm
66 + x11-libs/xcb-util-xrm
67 + x11-misc/xkeyboard-config
68 +"
69 +DEPEND="
70 + ${COMMON_DEPEND}
71 + test? (
72 + dev-perl/AnyEvent
73 + dev-perl/ExtUtils-PkgConfig
74 + dev-perl/Inline
75 + dev-perl/Inline-C
76 + dev-perl/IPC-Run
77 + dev-perl/local-lib
78 + dev-perl/X11-XCB
79 + virtual/perl-Test-Simple
80 + x11-base/xorg-server[xephyr]
81 + x11-misc/xvfb-run
82 + )
83 + doc? (
84 + app-text/asciidoc
85 + app-text/xmlto
86 + dev-lang/perl
87 + )
88 +"
89 +RDEPEND="
90 + ${COMMON_DEPEND}
91 + dev-lang/perl
92 + dev-perl/AnyEvent-I3
93 + dev-perl/JSON-XS
94 +"
95 +BDEPEND="virtual/pkgconfig"
96 +
97 +PATCHES=(
98 + "${FILESDIR}"/${PN}-4.16-musl-GLOB_TILDE.patch
99 +)
100 +
101 +src_prepare() {
102 + default
103 +
104 + cat > "${T}"/i3wm <<- EOF || die
105 + #!/bin/sh
106 + exec /usr/bin/i3
107 + EOF
108 +}
109 +
110 +src_configure() {
111 + local emesonargs=(
112 + -Ddocdir="${EPREFIX}"/usr/share/doc/${PF}
113 + $(meson_use doc docs)
114 + $(meson_use doc mans)
115 + )
116 +
117 + meson_src_configure
118 +}
119 +
120 +src_test() {
121 + virtx meson_src_test
122 +}
123 +
124 +src_install() {
125 + meson_src_install
126 +
127 + exeinto /etc/X11/Sessions
128 + doexe "${T}"/i3wm
129 +}
130 +
131 +pkg_postinst() {
132 + optfeature_header "There are several packages that may be useful with i3:"
133 + optfeature "application launcher" x11-misc/dmenu
134 + optfeature "simple screen locker" x11-misc/i3lock
135 + optfeature "status bar generator" x11-misc/i3status
136 +}