1 # Copyright 2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="dmenu clone for wayland"
9 HOMEPAGE="https://github.com/Cloudef/bemenu"
10 if [[ ${PV} == 9999 ]]; then
12 EGIT_REPO_URI="https://github.com/Cloudef/bemenu.git"
14 SRC_URI="https://github.com/Cloudef/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="~amd64 ~arm64 ~x86"
21 IUSE="doc ncurses wayland X"
23 # Require at least one backend be built
24 REQUIRED_USE="|| ( ncurses wayland X )"
27 ncurses? ( sys-libs/ncurses:0 )
30 dev-libs/wayland-protocols
43 BDEPEND="doc? ( app-doc/doxygen )"
47 -DCURSES_LIBRARY=/usr/$(get_libdir)/libncursesw.so
48 -DBEMENU_CURSES_RENDERER=$(usex ncurses ON OFF)
49 -DBEMENU_WAYLAND_RENDERER=$(usex wayland ON OFF)
50 -DBEMENU_X11_RENDERER=$(usex X ON OFF)
52 cmake-utils_src_configure
56 cmake-utils_src_install