Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/i3-gaps/, x11-wm/i3-gaps/files/
Date: Sun, 04 Oct 2020 16:13:10
Message-Id: 1601827961.74c3f22f3f3c9ef3e0f5b6fec85b2a3da6c2989c.soap@gentoo
1 commit: 74c3f22f3f3c9ef3e0f5b6fec85b2a3da6c2989c
2 Author: John Helmert III <jchelmert3 <AT> posteo <DOT> net>
3 AuthorDate: Sun Oct 4 16:12:41 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 4 16:12:41 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74c3f22f
7
8 x11-wm/i3-gaps: bump to 4.18.2
9
10 Tests depend on a version bump for dev-perl/X11-XCB [1], and I've
11 dropped a test for which a report is open upstream [2].
12
13 PPC64 is also dropped here pending rekeywording of new test deps.
14
15 [1] https://bugs.gentoo.org/744115
16 [2] https://github.com/i3/i3/issues/4204
17
18 Closes: https://bugs.gentoo.org/743013
19 Package-Manager: Portage-3.0.8, Repoman-3.0.1
20 Signed-off-by: John Helmert III <jchelmert3 <AT> posteo.net>
21 Signed-off-by: David Seifert <soap <AT> gentoo.org>
22
23 x11-wm/i3-gaps/Manifest | 1 +
24 .../files/i3-gaps-4.18.2-drop-branch-test.patch | 11 +++
25 x11-wm/i3-gaps/i3-gaps-4.18.2.ebuild | 101 +++++++++++++++++++++
26 3 files changed, 113 insertions(+)
27
28 diff --git a/x11-wm/i3-gaps/Manifest b/x11-wm/i3-gaps/Manifest
29 index 9f7fe358514..9d4ec11d394 100644
30 --- a/x11-wm/i3-gaps/Manifest
31 +++ b/x11-wm/i3-gaps/Manifest
32 @@ -1,3 +1,4 @@
33 DIST i3-gaps-4.16.1.tar.gz 3983420 BLAKE2B f0d5a85b06ce33e1cc177af6da29f9cdf42ed754bb767aa9eaa5ab52f3b9f4f688d251f2a16fb222fc8cf5052e79859891c4185b1325b2ef6c1a813aa220468c SHA512 904c2f63c6a35573f13fd216625c1349ac71de70ae8f0440667c9d76048cdaf30a398ab358f2366d5f46502d87e801713b625cb509a05f39dbca1371d2b8d0e9
34 DIST i3-gaps-4.17.1.tar.gz 3991747 BLAKE2B e5ff8293abf41ffbd15c35590a0594861d7c8b70c0f42886ef7f15fb34b8da57a92cf9bcae76576e7db6db9bacc2356722e5653b1cf35b8446716f8845468b4b SHA512 31e47487f6f662f27b2642925f4ddfc553f1fd075e612d0d2661db723897b12eeae0a2bcefa8a43e7f1d4c15aec2222d3a63e37c8f7e1f9fc96567faa380ebff
35 DIST i3-gaps-4.18.1.tar.gz 3999609 BLAKE2B 1a7f0d83831505fb8b75c00efeff276d3a837166029ff6d63dec7aa746a0d9c31245fdcf075f27a43f8c7456f178e30c8c8ddc87e30fbc53b244cf141a41aa34 SHA512 63a37e5920b3945be58e54f86b75523499e6b3a8dd9a05a952118e5609c9bd50fedabe05160eef0ebc377020042508a552f2a32272afcf1c913efcf48ac3e460
36 +DIST i3-gaps-4.18.2.tar.gz 3999555 BLAKE2B d825bb4acb76a7909569aa10c6cab517ff08ee4d4d29175c9a84686c83f225a8a090c26ad4bf4ef03e2062bf4d48c7e2e2bf70b49f7a67ecad386597fc1602bd SHA512 86c76340d1df40bbd7e804515ae9dda350458d22651bee508f9f141acd3f4ea4025c8f40ddf0cdfe1fc3c6b26cbf5c3900204545468776721857bb104200ee34
37
38 diff --git a/x11-wm/i3-gaps/files/i3-gaps-4.18.2-drop-branch-test.patch b/x11-wm/i3-gaps/files/i3-gaps-4.18.2-drop-branch-test.patch
39 new file mode 100644
40 index 00000000000..f6312fd0bf8
41 --- /dev/null
42 +++ b/x11-wm/i3-gaps/files/i3-gaps-4.18.2-drop-branch-test.patch
43 @@ -0,0 +1,11 @@
44 +diff --git a/testcases/t/193-ipc-version.t b/testcases/t/193-ipc-version.t
45 +index d5f4badf..1f911a63 100644
46 +--- a/testcases/t/193-ipc-version.t
47 ++++ b/testcases/t/193-ipc-version.t
48 +@@ -32,6 +32,4 @@ cmp_ok($version->{minor}, '>', 0, 'minor version > 0');
49 +
50 + is(int($version->{minor}), $version->{minor}, 'minor version is an integer');
51 + is(int($version->{patch}), $version->{patch}, 'patch version is an integer');
52 +-like($version->{human_readable}, qr/branch/, 'human readable version contains branch name');
53 +-
54 + done_testing;
55
56 diff --git a/x11-wm/i3-gaps/i3-gaps-4.18.2.ebuild b/x11-wm/i3-gaps/i3-gaps-4.18.2.ebuild
57 new file mode 100644
58 index 00000000000..b1f798d7b3d
59 --- /dev/null
60 +++ b/x11-wm/i3-gaps/i3-gaps-4.18.2.ebuild
61 @@ -0,0 +1,101 @@
62 +# Copyright 1999-2020 Gentoo Authors
63 +# Distributed under the terms of the GNU General Public License v2
64 +
65 +EAPI=7
66 +
67 +inherit autotools out-of-source
68 +
69 +DESCRIPTION="i3 fork with gaps and some more features"
70 +HOMEPAGE="https://github.com/Airblader/i3"
71 +SRC_URI="https://github.com/Airblader/i3/archive/${PV}.tar.gz -> ${P}.tar.gz"
72 +
73 +LICENSE="BSD"
74 +SLOT="0"
75 +KEYWORDS="~amd64 ~x86"
76 +IUSE="doc test"
77 +RESTRICT="!test? ( test )"
78 +
79 +CDEPEND="dev-libs/glib:2
80 + dev-libs/libev
81 + dev-libs/libpcre
82 + dev-libs/yajl
83 + x11-libs/cairo[X,xcb(+)]
84 + x11-libs/libxcb[xkb]
85 + x11-libs/libxkbcommon[X]
86 + x11-libs/pango[X]
87 + x11-libs/startup-notification
88 + x11-libs/xcb-util
89 + x11-libs/xcb-util-cursor
90 + x11-libs/xcb-util-keysyms
91 + x11-libs/xcb-util-wm
92 + x11-libs/xcb-util-xrm
93 +"
94 +DEPEND="${CDEPEND}
95 + test? (
96 + dev-perl/ExtUtils-PkgConfig
97 + dev-perl/IPC-Run
98 + dev-perl/Inline
99 + dev-perl/Inline-C
100 + dev-perl/X11-XCB
101 + dev-perl/XS-Object-Magic
102 + x11-base/xorg-server[xephyr,xvfb]
103 + x11-misc/xvfb-run
104 + )
105 +"
106 +BDEPEND="
107 + app-text/asciidoc
108 + app-text/xmlto
109 + dev-lang/perl
110 + virtual/pkgconfig
111 +"
112 +RDEPEND="${CDEPEND}
113 + dev-lang/perl
114 + dev-perl/AnyEvent-I3
115 + dev-perl/JSON-XS
116 + !x11-wm/i3
117 +"
118 +
119 +S="${WORKDIR}/i3-${PV}"
120 +
121 +DOCS=( RELEASE-NOTES-$(ver_cut 1-3) )
122 +
123 +PATCHES=(
124 + "${FILESDIR}/${PN}-$(ver_cut 1-2)-musl.patch"
125 + "${FILESDIR}/${PN}-4.18.2-drop-branch-test.patch"
126 +)
127 +
128 +src_prepare() {
129 + default
130 + eautoreconf
131 +}
132 +
133 +my_src_configure() {
134 + # disable sanitizer: otherwise injects -O0 -g
135 + local myeconfargs=(
136 + $(use_enable doc docs)
137 + --enable-debug=no
138 + --enable-mans
139 + --disable-sanitizers
140 + )
141 + econf "${myeconfargs[@]}"
142 +}
143 +
144 +my_src_install_all() {
145 + doman "${BUILD_DIR}"/man/*.1
146 + einstalldocs
147 +
148 + exeinto /etc/X11/Sessions
149 + newexe - i3wm <<- EOF
150 + #!/usr/bin/env sh
151 + exec /usr/bin/i3
152 + EOF
153 +}
154 +
155 +pkg_postinst() {
156 + einfo "There are several packages that you may find useful with ${PN} and"
157 + einfo "their usage is suggested by the upstream maintainers, namely:"
158 + einfo " x11-misc/dmenu"
159 + einfo " x11-misc/i3lock"
160 + einfo " x11-misc/i3status"
161 + einfo "Please refer to their description for additional info."
162 +}