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