1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="An improved dynamic tiling window manager"
9 HOMEPAGE="https://i3wm.org/"
10 # iw3m.org tarball for 4.14 is broken, see https://github.com/i3/i3/issues/2905
11 SRC_URI="https://github.com/i3/i3/archive/${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="~amd64 ~arm ~x86"
18 RESTRICT="!test? ( test )"
20 CDEPEND="dev-libs/libev
24 x11-libs/libxkbcommon[X]
25 x11-libs/startup-notification
27 x11-libs/xcb-util-cursor
28 x11-libs/xcb-util-keysyms
31 >=x11-libs/cairo-1.14.4[X,xcb(+)]
32 >=x11-libs/pango-1.30.0[X]"
35 doc? ( app-text/xmlto dev-lang/perl )
37 dev-perl/Module-Install
45 # Test without debug will apply optimization levels, which results
46 # in type-punned pointers - which in turn causes test failures.
47 REQUIRED_USE="test? ( debug )"
54 "${FILESDIR}/${PN}-musl-GLOB_TILDE.patch"
58 emake -C "${CBUILD}" check
64 cat <<- EOF > "${T}"/i3wm
76 econf "${myeconfargs[@]}"
84 emake -C "${CBUILD}" DESTDIR="${D}" install
85 doman "${CBUILD}"/man/*.1
87 use doc && einstalldocs
89 exeinto /etc/X11/Sessions
94 # Only show the elog information on a new install
95 if [[ ! ${REPLACING_VERSIONS} ]]; then
96 elog "There are several packages that you may find useful with ${PN} and"
97 elog "their usage is suggested by the upstream maintainers, namely:"
98 elog " x11-misc/dmenu"
99 elog " x11-misc/i3status"
100 elog " x11-misc/i3lock"
101 elog "Please refer to their description for additional info."