1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit toolchain-funcs cmake-utils
7 if [[ ${PV} == 9999* ]]; then
9 EGIT_REPO_URI="https://github.com/herbstluftwm/herbstluftwm"
10 BDEPEND="app-text/asciidoc"
12 SRC_URI="https://herbstluftwm.org/tarballs/${P}.tar.gz"
13 KEYWORDS="~amd64 ~x86"
17 DESCRIPTION="A manual tiling window manager for X"
18 HOMEPAGE="https://herbstluftwm.org/"
22 IUSE="examples xinerama zsh-completion"
27 xinerama? ( x11-libs/libXinerama )
32 zsh-completion? ( app-shells/zsh )
40 -e '/^install.*LICENSEDIR/d' \
41 -e '/set(DOCDIR / s#.*#set(DOCDIR ${CMAKE_INSTALL_DOCDIR})#' \
45 -DWITH_XINERAMA=$(usex xinerama)
48 cmake-utils_src_configure
52 cmake-utils_src_install
54 if ! use examples; then
55 rm -r "${ED}"/usr/share/doc/${PF}/examples || die
58 if ! use zsh-completion; then
59 rm -r "${ED}"/usr/share/zsh || die