1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools out-of-source virtualx
8 DESCRIPTION="An improved dynamic tiling window manager"
9 HOMEPAGE="https://i3wm.org/"
10 SRC_URI="https://i3wm.org/downloads/${P}.tar.bz2"
14 KEYWORDS="~amd64 ~arm64 ~x86"
17 CDEPEND="dev-libs/libev
21 x11-libs/libxkbcommon[X]
22 x11-libs/startup-notification
24 x11-libs/xcb-util-cursor
25 x11-libs/xcb-util-keysyms
28 x11-misc/xkeyboard-config
29 >=x11-libs/cairo-1.14.4[X,xcb(+)]
30 >=x11-libs/pango-1.30.0[X]"
34 >=dev-perl/X11-XCB-0.120.0
38 dev-perl/ExtUtils-PkgConfig
40 >=virtual/perl-Test-Simple-0.940.0
41 x11-base/xorg-server[xephyr]
49 # Test without debug will apply optimization levels, which results
50 # in type-punned pointers - which in turn causes test failures.
51 REQUIRED_USE="test? ( debug )"
54 "${FILESDIR}/${PN}-4.16-musl-GLOB_TILDE.patch"
57 # https://github.com/i3/i3/issues/3013
63 cat <<- EOF > "${T}"/i3wm
75 econf "${myeconfargs[@]}"
80 test.commands_parser \
85 -I "${S}/testcases/lib" \
86 -I "${BUILD_DIR}/testcases/lib" \
87 testcases/complete-run.pl
90 my_src_install_all() {
94 use doc && dodoc -r docs "RELEASE-NOTES-${PV}"
96 exeinto /etc/X11/Sessions
101 # Only show the elog information on a new install
102 if [[ ! ${REPLACING_VERSIONS} ]]; then
103 elog "There are several packages that you may find useful with ${PN} and"
104 elog "their usage is suggested by the upstream maintainers, namely:"
105 elog " x11-misc/dmenu"
106 elog " x11-misc/i3status"
107 elog " x11-misc/i3lock"
108 elog "Please refer to their description for additional info."