1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 inherit autotools out-of-source virtualx
10 DESCRIPTION="An improved dynamic tiling window manager"
11 HOMEPAGE="https://i3wm.org/"
12 SRC_URI="https://i3wm.org/downloads/${P}.tar.bz2"
16 KEYWORDS="amd64 ~arm64 x86"
19 CDEPEND="dev-libs/libev
23 x11-libs/libxkbcommon[X]
24 x11-libs/startup-notification
26 x11-libs/xcb-util-cursor
27 x11-libs/xcb-util-keysyms
30 x11-misc/xkeyboard-config
31 >=x11-libs/cairo-1.14.4[X,xcb(+)]
32 >=x11-libs/pango-1.30.0[X]"
36 >=dev-perl/X11-XCB-0.120.0
40 dev-perl/ExtUtils-PkgConfig
42 >=virtual/perl-Test-Simple-0.940.0
43 x11-base/xorg-server[xephyr]
51 # Test without debug will apply optimization levels, which results
52 # in type-punned pointers - which in turn causes test failures.
53 REQUIRED_USE="test? ( debug )"
56 "${FILESDIR}/${PN}-musl-GLOB_TILDE.patch"
59 # https://github.com/i3/i3/issues/3013
65 cat <<- EOF > "${T}"/i3wm
77 econf "${myeconfargs[@]}"
82 test.commands_parser \
87 -I "${S}/testcases/lib" \
88 -I "${BUILD_DIR}/testcases/lib" \
89 testcases/complete-run.pl
92 my_src_install_all() {
96 use doc && dodoc -r docs "RELEASE-NOTES-${PV}"
98 exeinto /etc/X11/Sessions
103 # Only show the elog information on a new install
104 if [[ ! ${REPLACING_VERSIONS} ]]; then
105 elog "There are several packages that you may find useful with ${PN} and"
106 elog "their usage is suggested by the upstream maintainers, namely:"
107 elog " x11-misc/dmenu"
108 elog " x11-misc/i3status"
109 elog " x11-misc/i3lock"
110 elog "Please refer to their description for additional info."