summaryrefslogtreecommitdiff
path: root/x11-wm/i3-gaps
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
commitd934827bf44b7cfcf6711964418148fa60877668 (patch)
tree0625f358789b5e015e49db139cc1dbc9be00428f /x11-wm/i3-gaps
parent2e34d110f164bf74d55fced27fe0000201b3eec5 (diff)
gentoo resync : 25.11.2020
Diffstat (limited to 'x11-wm/i3-gaps')
-rw-r--r--x11-wm/i3-gaps/Manifest16
-rw-r--r--x11-wm/i3-gaps/files/i3-gaps-4.16-musl.patch86
-rw-r--r--x11-wm/i3-gaps/files/i3-gaps-4.17-musl.patch71
-rw-r--r--x11-wm/i3-gaps/files/i3-gaps-4.18.2-drop-branch-test.patch11
-rw-r--r--x11-wm/i3-gaps/files/i3-gaps-4.19-fix-docdir.patch22
-rw-r--r--x11-wm/i3-gaps/i3-gaps-4.16.1-r2.ebuild87
-rw-r--r--x11-wm/i3-gaps/i3-gaps-4.17.1-r1.ebuild87
-rw-r--r--x11-wm/i3-gaps/i3-gaps-4.18.2.ebuild (renamed from x11-wm/i3-gaps/i3-gaps-4.18.1.ebuild)38
-rw-r--r--x11-wm/i3-gaps/i3-gaps-4.19.ebuild91
-rw-r--r--x11-wm/i3-gaps/metadata.xml8
10 files changed, 165 insertions, 352 deletions
diff --git a/x11-wm/i3-gaps/Manifest b/x11-wm/i3-gaps/Manifest
index 8f4590475b38..9e88c91c9a0c 100644
--- a/x11-wm/i3-gaps/Manifest
+++ b/x11-wm/i3-gaps/Manifest
@@ -1,10 +1,8 @@
-AUX i3-gaps-4.16-musl.patch 2783 BLAKE2B 9dea47af64b78a77006d3aa641273aa7a77846d4425e1da17424528445450112ab275cdf7098ba8c2a76f1b08561b1d1a852cb9fd4ee4c61e53832ca702ad55d SHA512 fdff65255e7c9b30eefdbf032e04ba568d5b75a5b7dfc5fce1aecaac0f0d376b6bb4f87338e1eaf5f20b1c5882ebfc7349f8ab43c804349b5f5c626f9fc1d340
-AUX i3-gaps-4.17-musl.patch 2135 BLAKE2B 7b8609a5377cafc823798fd0d712d5d81e3de2c746f8d246907bfc791c7ec626cb26a8b3843d337c64bf0c28850703976d384e5a38303d6b5f342cad68eb6b80 SHA512 c6ae3f22d0303da5de7ca4c92734b043a76d7447559fe2ffc308a8d135076cf05ee53ef63eb28c1bd628a1edfb2d1a0ed2d090836cb5fc70f2b882ee1105dad3
AUX i3-gaps-4.18-musl.patch 2157 BLAKE2B 4fef024279d11e996c5c204f27b5a8b9fb654b392aeef19b92d5c3f9dfb203290fad7c31c003a046ee91c1201d940f3050a950721da8f58bdfd75495cb9be05c SHA512 14f70f067679b952e1ffc1965ea460173799292a33b5df6d3b2ca2c091219d6cd1f14b2d41b187452a83923b5b34cabe218ecb6fa70702accbef7562dd01f021
-DIST i3-gaps-4.16.1.tar.gz 3983420 BLAKE2B f0d5a85b06ce33e1cc177af6da29f9cdf42ed754bb767aa9eaa5ab52f3b9f4f688d251f2a16fb222fc8cf5052e79859891c4185b1325b2ef6c1a813aa220468c SHA512 904c2f63c6a35573f13fd216625c1349ac71de70ae8f0440667c9d76048cdaf30a398ab358f2366d5f46502d87e801713b625cb509a05f39dbca1371d2b8d0e9
-DIST i3-gaps-4.17.1.tar.gz 3991747 BLAKE2B e5ff8293abf41ffbd15c35590a0594861d7c8b70c0f42886ef7f15fb34b8da57a92cf9bcae76576e7db6db9bacc2356722e5653b1cf35b8446716f8845468b4b SHA512 31e47487f6f662f27b2642925f4ddfc553f1fd075e612d0d2661db723897b12eeae0a2bcefa8a43e7f1d4c15aec2222d3a63e37c8f7e1f9fc96567faa380ebff
-DIST i3-gaps-4.18.1.tar.gz 3999609 BLAKE2B 1a7f0d83831505fb8b75c00efeff276d3a837166029ff6d63dec7aa746a0d9c31245fdcf075f27a43f8c7456f178e30c8c8ddc87e30fbc53b244cf141a41aa34 SHA512 63a37e5920b3945be58e54f86b75523499e6b3a8dd9a05a952118e5609c9bd50fedabe05160eef0ebc377020042508a552f2a32272afcf1c913efcf48ac3e460
-EBUILD i3-gaps-4.16.1-r2.ebuild 1727 BLAKE2B a6c81dd66ff5280b58960b05404cd4aa7b2d221db4546f1dfea8ad78451bc448b8d06871d226dfefb16353fcac9262aaffbcfa7edcc055d2b3716470dbfaa5c5 SHA512 8b172d622aebdf34d0cc85f68449f50d1820d0cd9506bafba2aa11d29fb7ce9206e43c55e73c9926637f77083adbe7b15133664ab3a084e2d70176c85bb7b114
-EBUILD i3-gaps-4.17.1-r1.ebuild 1736 BLAKE2B ec7b2e25a1b12dc2bfcbe24944a9ecf5147efebf281da92c852b8aaa8d47ef83554fc48fcd7dbdc4d55f7626a5c8ce0ddede14b072c928b00cc0db28b4eb249e SHA512 36fca124501a8d903b9a4e27e61d7aa49ad1dec67994279207aa879203d59754205b51ad1b9edad9e982032d228fa002e91d544ba0cbba52e047fedc6cca7f58
-EBUILD i3-gaps-4.18.1.ebuild 1736 BLAKE2B ec7b2e25a1b12dc2bfcbe24944a9ecf5147efebf281da92c852b8aaa8d47ef83554fc48fcd7dbdc4d55f7626a5c8ce0ddede14b072c928b00cc0db28b4eb249e SHA512 36fca124501a8d903b9a4e27e61d7aa49ad1dec67994279207aa879203d59754205b51ad1b9edad9e982032d228fa002e91d544ba0cbba52e047fedc6cca7f58
-MISC metadata.xml 322 BLAKE2B bdba5a4519158f97944784fc4e2813c1b8e8d4f6f90d43b3a935e8b2565ecc5d2444c4b7b4d11266263d25a76b5c2dba55ec6535fdaab03129bb022206abbce2 SHA512 d3ca96f88473d21b81c420795c6eee5dd41f43354de85fd549a9ae8127e46f10d00034730bf850ddd6df8607821d30fce17aa349b1b2575f43fd3303a2da1cf6
+AUX i3-gaps-4.18.2-drop-branch-test.patch 524 BLAKE2B 576cd7fa9a077a22c5a575da0bdff130f32013fb184b5278243c29200e61ddc00222f86ea8cff940bbf010c610afdb867fea683d665cdd19abec74d4a6c08bb9 SHA512 adc9b5d01496d6784cabd43161db89550f2cf0be962656c972f44784d3204a8047eca3bd717d80e5c84ee1b891d38fde133a73804d125efe4e7829140171f4a3
+AUX i3-gaps-4.19-fix-docdir.patch 508 BLAKE2B 44aa2a2a7d0b77429345c4b62be66437714851481ca968098596c28aae8769036b8238b0295f4f80ca8e6e0f2c3e25c60130f3b941cb763d2069deb07d884dfd SHA512 8169cd9fdc2a4506af3d93eda672484a43ab30cf99afcdfc10094be36e6fcccf53d416376a475a95a80d34afb6dbec32bb657a81ccc7e5244c23b34717d5201a
+DIST i3-gaps-4.18.2.tar.gz 3999555 BLAKE2B d825bb4acb76a7909569aa10c6cab517ff08ee4d4d29175c9a84686c83f225a8a090c26ad4bf4ef03e2062bf4d48c7e2e2bf70b49f7a67ecad386597fc1602bd SHA512 86c76340d1df40bbd7e804515ae9dda350458d22651bee508f9f141acd3f4ea4025c8f40ddf0cdfe1fc3c6b26cbf5c3900204545468776721857bb104200ee34
+DIST i3-gaps-4.19.tar.gz 4192134 BLAKE2B cc70e36fd01e777e1e4357d1799777eb42c21f1666759d8730c548773c87e4c2806ae5376703956761a8fc036c5e847a4734cddd695067f684038c1cc9a8905e SHA512 db09203256172cc4807189bbf16d793c9203c908d2e75cbb7d973d1f0338f6e3734afe68ffe1c43ef3e43e5b2c6dba1ab9135625e4d42d10a9ea6f44f673d384
+EBUILD i3-gaps-4.18.2.ebuild 2027 BLAKE2B 93bbcd939e72a2707245e74ad9874183cba84c633b5a834c84edf930cf916b81ddcdb1174204c53294bfec0bf56433d81049423ce9c1c812ca5227424952cb4d SHA512 2222ff5a4d28f6a2dc70dbbbf022c2bcb09e571c8c9681309ac04a785a6b298a57317526a4297d11ab3d79b870c903ee330f266bc083d253809b802f9f3a6791
+EBUILD i3-gaps-4.19.ebuild 1765 BLAKE2B 4924ca2460b8c1c31e90c23513221ae7e0f900996ce0855eae842f7a8bc01cc3ff78358d36591ec16a191f63a7974897525723684206535973fd95ff64733d65 SHA512 4900cf098c796d05b42dc1222e671a9ada688ed2628aeedc4451aec139eb52150abb1e202edac5ef582f5cf554e47d210db1a3f5f104a59e2c2dc39f32d14586
+MISC metadata.xml 553 BLAKE2B a975c29cc436e391e4e85bd93b30258dfeb20cdd6f4895641cddb3b933a9674c0ddb9fc325b6b8a9f4e9ede42ebb4c7dbebd9917e14142a3a2b5054ce35d852b SHA512 2df67f18499497b55cbede5d732874cb5fbdb48c489a2e26a024e05b39a3355a0075d4c2b1fb4e42b4d12bf8ef927d9494b7b3a97d6fd52bca7bb1b17f4191bc
diff --git a/x11-wm/i3-gaps/files/i3-gaps-4.16-musl.patch b/x11-wm/i3-gaps/files/i3-gaps-4.16-musl.patch
deleted file mode 100644
index 1e67ec2a3c4f..000000000000
--- a/x11-wm/i3-gaps/files/i3-gaps-4.16-musl.patch
+++ /dev/null
@@ -1,86 +0,0 @@
-From: Natanael Copa <ncopa@alpinelinux.org>
-Patch-Source: https://git.alpinelinux.org/cgit/aports/tree/community/i3wm/musl.patch
-Project-Bug-URL: https://github.com/i3/i3/issues/1859
-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=609306
-
-Musl doesn't implement GLOB_TILDE, which is used by i3 when expanding paths.
-
-This patch replaces usage of GLOB_TILDE in glob() by replacing tilde
-with the content of $HOME - if set - manually.
-
-As mentioned in the i3 bugtracker this is an issue that should be solved by musl.
-
-A patch has been sent to musl upstream, but it hasn't been merged yet:
-http://www.openwall.com/lists/musl/2017/01/17/1
----
---- a/i3bar/src/main.c
-+++ b/i3bar/src/main.c
-@@ -48,14 +48,20 @@ void debuglog(char *fmt, ...) {
- *
- */
- static char *expand_path(char *path) {
-- static glob_t globbuf;
-- if (glob(path, GLOB_NOCHECK | GLOB_TILDE, NULL, &globbuf) < 0) {
-- ELOG("glob() failed\n");
-- exit(EXIT_FAILURE);
-+ char *home, *expanded;
-+
-+ if (strncmp(path, "~/", 2) == 0) {
-+ home = getenv("HOME");
-+ if (home != NULL) {
-+ /* new length: sum - 1 (omit '~') + 1 (for '\0') */
-+ expanded = scalloc(strlen(home)+strlen(path), 1);
-+ strcpy(expanded, home);
-+ strcat(expanded, path+1);
-+ return expanded;
-+ }
- }
-- char *result = sstrdup(globbuf.gl_pathc > 0 ? globbuf.gl_pathv[0] : path);
-- globfree(&globbuf);
-- return result;
-+
-+ return sstrdup(path);
- }
-
- void print_usage(char *elf_name) {
---- a/libi3/resolve_tilde.c
-+++ b/libi3/resolve_tilde.c
-@@ -19,28 +19,18 @@
- *
- */
- char *resolve_tilde(const char *path) {
-- static glob_t globbuf;
-- char *head, *tail, *result;
-+ char *home, *expanded;
-
-- tail = strchr(path, '/');
-- head = sstrndup(path, tail ? (size_t)(tail - path) : strlen(path));
--
-- int res = glob(head, GLOB_TILDE, NULL, &globbuf);
-- free(head);
-- /* no match, or many wildcard matches are bad */
-- if (res == GLOB_NOMATCH || globbuf.gl_pathc != 1)
-- result = sstrdup(path);
-- else if (res != 0) {
-- err(EXIT_FAILURE, "glob() failed");
-- } else {
-- head = globbuf.gl_pathv[0];
-- result = scalloc(strlen(head) + (tail ? strlen(tail) : 0) + 1, 1);
-- strcpy(result, head);
-- if (tail) {
-- strcat(result, tail);
-+ if (strncmp(path, "~/", 2) == 0) {
-+ home = getenv("HOME");
-+ if (home != NULL) {
-+ /* new length: sum - 1 (omit '~') + 1 (for '\0') */
-+ expanded = scalloc(strlen(home)+strlen(path), 1);
-+ strcpy(expanded, home);
-+ strcat(expanded, path+1);
-+ return expanded;
- }
- }
-- globfree(&globbuf);
-
-- return result;
-+ return sstrdup(path);
- }
diff --git a/x11-wm/i3-gaps/files/i3-gaps-4.17-musl.patch b/x11-wm/i3-gaps/files/i3-gaps-4.17-musl.patch
deleted file mode 100644
index d4f9113e6b15..000000000000
--- a/x11-wm/i3-gaps/files/i3-gaps-4.17-musl.patch
+++ /dev/null
@@ -1,71 +0,0 @@
---- a/i3bar/src/main.c
-+++ b/i3bar/src/main.c
-@@ -48,14 +48,20 @@ void debuglog(char *fmt, ...) {
- *
- */
- static char *expand_path(char *path) {
-- static glob_t globbuf;
-- if (glob(path, GLOB_NOCHECK | GLOB_TILDE, NULL, &globbuf) < 0) {
-- ELOG("glob() failed\n");
-- exit(EXIT_FAILURE);
-+ char *home, *expanded;
-+
-+ if (strncmp(path, "~/", 2) == 0) {
-+ home = getenv("HOME");
-+ if (home != NULL) {
-+ /* new length: sum - 1 (omit '~') + 1 (for '\0') */
-+ expanded = scalloc(strlen(home)+strlen(path), 1);
-+ strcpy(expanded, home);
-+ strcat(expanded, path+1);
-+ return expanded;
-+ }
- }
-- char *result = sstrdup(globbuf.gl_pathc > 0 ? globbuf.gl_pathv[0] : path);
-- globfree(&globbuf);
-- return result;
-+
-+ return sstrdup(path);
- }
-
- void print_usage(char *elf_name) {
---- a/libi3/resolve_tilde.c
-+++ b/libi3/resolve_tilde.c
-@@ -19,28 +19,18 @@
- *
- */
- char *resolve_tilde(const char *path) {
-- static glob_t globbuf;
-- char *head, *tail, *result;
-+ char *home, *expanded;
-
-- tail = strchr(path, '/');
-- head = sstrndup(path, tail ? (size_t)(tail - path) : strlen(path));
--
-- int res = glob(head, GLOB_TILDE, NULL, &globbuf);
-- free(head);
-- /* no match, or many wildcard matches are bad */
-- if (res == GLOB_NOMATCH || globbuf.gl_pathc != 1)
-- result = sstrdup(path);
-- else if (res != 0) {
-- err(EXIT_FAILURE, "glob() failed");
-- } else {
-- head = globbuf.gl_pathv[0];
-- result = scalloc(strlen(head) + (tail ? strlen(tail) : 0) + 1, 1);
-- strcpy(result, head);
-- if (tail) {
-- strcat(result, tail);
-+ if (strncmp(path, "~/", 2) == 0) {
-+ home = getenv("HOME");
-+ if (home != NULL) {
-+ /* new length: sum - 1 (omit '~') + 1 (for '\0') */
-+ expanded = scalloc(strlen(home)+strlen(path), 1);
-+ strcpy(expanded, home);
-+ strcat(expanded, path+1);
-+ return expanded;
- }
- }
-- globfree(&globbuf);
-
-- return result;
-+ return sstrdup(path);
- }
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
new file mode 100644
index 000000000000..f6312fd0bf8f
--- /dev/null
+++ b/x11-wm/i3-gaps/files/i3-gaps-4.18.2-drop-branch-test.patch
@@ -0,0 +1,11 @@
+diff --git a/testcases/t/193-ipc-version.t b/testcases/t/193-ipc-version.t
+index d5f4badf..1f911a63 100644
+--- a/testcases/t/193-ipc-version.t
++++ b/testcases/t/193-ipc-version.t
+@@ -32,6 +32,4 @@ cmp_ok($version->{minor}, '>', 0, 'minor version > 0');
+
+ is(int($version->{minor}), $version->{minor}, 'minor version is an integer');
+ is(int($version->{patch}), $version->{patch}, 'patch version is an integer');
+-like($version->{human_readable}, qr/branch/, 'human readable version contains branch name');
+-
+ done_testing;
diff --git a/x11-wm/i3-gaps/files/i3-gaps-4.19-fix-docdir.patch b/x11-wm/i3-gaps/files/i3-gaps-4.19-fix-docdir.patch
new file mode 100644
index 000000000000..6917aa091dff
--- /dev/null
+++ b/x11-wm/i3-gaps/files/i3-gaps-4.19-fix-docdir.patch
@@ -0,0 +1,22 @@
+diff --git a/meson.build b/meson.build
+index 11541e21..a6f8974e 100644
+--- a/meson.build
++++ b/meson.build
+@@ -642,7 +642,7 @@ if get_option('docs')
+ '@OUTPUT@',
+ ],
+ install: true,
+- install_dir: join_paths(get_option('datadir'), 'doc', 'i3'),
++ install_dir: docdir,
+ )
+
+ custom_target(
+@@ -655,7 +655,7 @@ if get_option('docs')
+ '@OUTPUT@',
+ ],
+ install: true,
+- install_dir: join_paths(get_option('datadir'), 'doc', 'i3'),
++ install_dir: docdir,
+ )
+ endif
+
diff --git a/x11-wm/i3-gaps/i3-gaps-4.16.1-r2.ebuild b/x11-wm/i3-gaps/i3-gaps-4.16.1-r2.ebuild
deleted file mode 100644
index 6c96e3a29216..000000000000
--- a/x11-wm/i3-gaps/i3-gaps-4.16.1-r2.ebuild
+++ /dev/null
@@ -1,87 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools out-of-source
-
-DESCRIPTION="i3 fork with gaps and some more features"
-HOMEPAGE="https://github.com/Airblader/i3"
-SRC_URI="https://github.com/Airblader/i3/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="doc"
-
-DEPEND="
- dev-libs/glib:2
- dev-libs/libev
- dev-libs/libpcre
- dev-libs/yajl
- x11-libs/cairo[X,xcb(+)]
- x11-libs/libxcb[xkb]
- x11-libs/libxkbcommon[X]
- x11-libs/pango[X]
- x11-libs/startup-notification
- x11-libs/xcb-util
- x11-libs/xcb-util-cursor
- x11-libs/xcb-util-keysyms
- x11-libs/xcb-util-wm
- x11-libs/xcb-util-xrm
-"
-BDEPEND="
- app-text/asciidoc
- app-text/xmlto
- dev-lang/perl
- virtual/pkgconfig
-"
-RDEPEND="${DEPEND}
- dev-lang/perl
- dev-perl/AnyEvent-I3
- dev-perl/JSON-XS
- !x11-wm/i3
-"
-
-S=${WORKDIR}/i3-${PV}
-
-DOCS=( RELEASE-NOTES-$(ver_cut 1-3) )
-
-PATCHES=( "${FILESDIR}/${PN}-$(ver_cut 1-2)-musl.patch" )
-
-src_prepare() {
- default
- eautoreconf
- cat <<- EOF > "${T}"/i3wm
- #!/bin/sh
- exec /usr/bin/i3
- EOF
-}
-
-my_src_configure() {
- # disable sanitizer: otherwise injects -O0 -g
- local myeconfargs=(
- $(use_enable doc docs)
- --enable-debug=no
- --enable-mans
- --disable-sanitizers
- )
- econf "${myeconfargs[@]}"
-}
-
-my_src_install_all() {
- doman "${BUILD_DIR}"/man/*.1
- einstalldocs
-
- exeinto /etc/X11/Sessions
- doexe "${T}"/i3wm
-}
-
-pkg_postinst() {
- einfo "There are several packages that you may find useful with ${PN} and"
- einfo "their usage is suggested by the upstream maintainers, namely:"
- einfo " x11-misc/dmenu"
- einfo " x11-misc/i3lock"
- einfo " x11-misc/i3status"
- einfo "Please refer to their description for additional info."
-}
diff --git a/x11-wm/i3-gaps/i3-gaps-4.17.1-r1.ebuild b/x11-wm/i3-gaps/i3-gaps-4.17.1-r1.ebuild
deleted file mode 100644
index 760a674fe049..000000000000
--- a/x11-wm/i3-gaps/i3-gaps-4.17.1-r1.ebuild
+++ /dev/null
@@ -1,87 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools out-of-source
-
-DESCRIPTION="i3 fork with gaps and some more features"
-HOMEPAGE="https://github.com/Airblader/i3"
-SRC_URI="https://github.com/Airblader/i3/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc64 ~x86"
-IUSE="doc"
-
-DEPEND="
- dev-libs/glib:2
- dev-libs/libev
- dev-libs/libpcre
- dev-libs/yajl
- x11-libs/cairo[X,xcb(+)]
- x11-libs/libxcb[xkb]
- x11-libs/libxkbcommon[X]
- x11-libs/pango[X]
- x11-libs/startup-notification
- x11-libs/xcb-util
- x11-libs/xcb-util-cursor
- x11-libs/xcb-util-keysyms
- x11-libs/xcb-util-wm
- x11-libs/xcb-util-xrm
-"
-BDEPEND="
- app-text/asciidoc
- app-text/xmlto
- dev-lang/perl
- virtual/pkgconfig
-"
-RDEPEND="${DEPEND}
- dev-lang/perl
- dev-perl/AnyEvent-I3
- dev-perl/JSON-XS
- !x11-wm/i3
-"
-
-S=${WORKDIR}/i3-${PV}
-
-DOCS=( RELEASE-NOTES-$(ver_cut 1-3) )
-
-PATCHES=( "${FILESDIR}/${PN}-$(ver_cut 1-2)-musl.patch" )
-
-src_prepare() {
- default
- eautoreconf
- cat <<- EOF > "${T}"/i3wm
- #!/bin/sh
- exec /usr/bin/i3
- EOF
-}
-
-my_src_configure() {
- # disable sanitizer: otherwise injects -O0 -g
- local myeconfargs=(
- $(use_enable doc docs)
- --enable-debug=no
- --enable-mans
- --disable-sanitizers
- )
- econf "${myeconfargs[@]}"
-}
-
-my_src_install_all() {
- doman "${BUILD_DIR}"/man/*.1
- einstalldocs
-
- exeinto /etc/X11/Sessions
- doexe "${T}"/i3wm
-}
-
-pkg_postinst() {
- einfo "There are several packages that you may find useful with ${PN} and"
- einfo "their usage is suggested by the upstream maintainers, namely:"
- einfo " x11-misc/dmenu"
- einfo " x11-misc/i3lock"
- einfo " x11-misc/i3status"
- einfo "Please refer to their description for additional info."
-}
diff --git a/x11-wm/i3-gaps/i3-gaps-4.18.1.ebuild b/x11-wm/i3-gaps/i3-gaps-4.18.2.ebuild
index 760a674fe049..61451b2c94d4 100644
--- a/x11-wm/i3-gaps/i3-gaps-4.18.1.ebuild
+++ b/x11-wm/i3-gaps/i3-gaps-4.18.2.ebuild
@@ -11,11 +11,11 @@ SRC_URI="https://github.com/Airblader/i3/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~ppc64 ~x86"
-IUSE="doc"
+KEYWORDS="amd64 ~ppc64 x86"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
-DEPEND="
- dev-libs/glib:2
+CDEPEND="dev-libs/glib:2
dev-libs/libev
dev-libs/libpcre
dev-libs/yajl
@@ -30,32 +30,43 @@ DEPEND="
x11-libs/xcb-util-wm
x11-libs/xcb-util-xrm
"
+DEPEND="${CDEPEND}
+ test? (
+ dev-perl/ExtUtils-PkgConfig
+ dev-perl/IPC-Run
+ dev-perl/Inline
+ dev-perl/Inline-C
+ dev-perl/X11-XCB
+ dev-perl/XS-Object-Magic
+ x11-base/xorg-server[xephyr,xvfb]
+ x11-misc/xvfb-run
+ )
+"
BDEPEND="
app-text/asciidoc
app-text/xmlto
dev-lang/perl
virtual/pkgconfig
"
-RDEPEND="${DEPEND}
+RDEPEND="${CDEPEND}
dev-lang/perl
dev-perl/AnyEvent-I3
dev-perl/JSON-XS
!x11-wm/i3
"
-S=${WORKDIR}/i3-${PV}
+S="${WORKDIR}/i3-${PV}"
DOCS=( RELEASE-NOTES-$(ver_cut 1-3) )
-PATCHES=( "${FILESDIR}/${PN}-$(ver_cut 1-2)-musl.patch" )
+PATCHES=(
+ "${FILESDIR}/${PN}-$(ver_cut 1-2)-musl.patch"
+ "${FILESDIR}/${PN}-4.18.2-drop-branch-test.patch"
+)
src_prepare() {
default
eautoreconf
- cat <<- EOF > "${T}"/i3wm
- #!/bin/sh
- exec /usr/bin/i3
- EOF
}
my_src_configure() {
@@ -74,7 +85,10 @@ my_src_install_all() {
einstalldocs
exeinto /etc/X11/Sessions
- doexe "${T}"/i3wm
+ newexe - i3wm <<- EOF
+ #!/usr/bin/env sh
+ exec /usr/bin/i3
+ EOF
}
pkg_postinst() {
diff --git a/x11-wm/i3-gaps/i3-gaps-4.19.ebuild b/x11-wm/i3-gaps/i3-gaps-4.19.ebuild
new file mode 100644
index 000000000000..be6619cfd961
--- /dev/null
+++ b/x11-wm/i3-gaps/i3-gaps-4.19.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit meson optfeature
+
+DESCRIPTION="i3 fork with gaps and some more features"
+HOMEPAGE="https://github.com/Airblader/i3"
+SRC_URI="https://github.com/Airblader/i3/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+COMMON_DEPEND="dev-libs/glib:2
+ dev-libs/libev
+ dev-libs/libpcre
+ dev-libs/yajl
+ x11-libs/cairo[X,xcb(+)]
+ x11-libs/libxcb[xkb]
+ x11-libs/libxkbcommon[X]
+ x11-libs/pango[X]
+ x11-libs/startup-notification
+ x11-libs/xcb-util
+ x11-libs/xcb-util-cursor
+ x11-libs/xcb-util-keysyms
+ x11-libs/xcb-util-wm
+ x11-libs/xcb-util-xrm
+"
+DEPEND="${COMMON_DEPEND}
+ test? (
+ dev-perl/ExtUtils-PkgConfig
+ dev-perl/IPC-Run
+ dev-perl/Inline
+ dev-perl/Inline-C
+ dev-perl/X11-XCB
+ dev-perl/XS-Object-Magic
+ x11-apps/xhost
+ x11-base/xorg-server[xephyr,xvfb]
+ x11-misc/xvfb-run
+ )
+"
+BDEPEND="app-text/asciidoc
+ app-text/xmlto
+ dev-lang/perl
+ virtual/pkgconfig
+"
+RDEPEND="${COMMON_DEPEND}
+ dev-lang/perl
+ dev-perl/AnyEvent-I3
+ dev-perl/JSON-XS
+ !x11-wm/i3
+"
+
+S="${WORKDIR}/i3-${PV}"
+
+DOCS=( RELEASE-NOTES-$(ver_cut 1-3) )
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.18-musl.patch"
+ "${FILESDIR}/${PN}-4.19-fix-docdir.patch"
+)
+
+src_configure() {
+ local emesonargs=(
+ -Ddocdir="/usr/share/doc/${PF}"
+ -Ddocs=$(usex doc true false)
+ -Dmans=true
+ )
+
+ meson_src_configure
+}
+
+src_install() {
+ meson_src_install
+
+ exeinto /etc/X11/Sessions
+ newexe - i3wm <<- EOF
+ #!/usr/bin/env sh
+ exec /usr/bin/i3
+ EOF
+}
+
+pkg_postinst() {
+ optfeature "Application launcher" x11-misc/dmenu
+ optfeature "Simple screen locker" x11-misc/i3lock
+ optfeature "Status bar generator" x11-misc/i3status
+}
diff --git a/x11-wm/i3-gaps/metadata.xml b/x11-wm/i3-gaps/metadata.xml
index 1a5dfaf1b54d..fbc9f7517917 100644
--- a/x11-wm/i3-gaps/metadata.xml
+++ b/x11-wm/i3-gaps/metadata.xml
@@ -5,6 +5,14 @@
<email>johu@gentoo.org</email>
<name>Johannes Huber</name>
</maintainer>
+ <maintainer type="person">
+ <email>jchelmert3@posteo.net</email>
+ <name>John Helmert III</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
<upstream>
<remote-id type="github">Airblader/i3</remote-id>
</upstream>