diff options
Diffstat (limited to 'dev-libs/bemenu/bemenu-0.6.14.ebuild')
-rw-r--r-- | dev-libs/bemenu/bemenu-0.6.14.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-libs/bemenu/bemenu-0.6.14.ebuild b/dev-libs/bemenu/bemenu-0.6.14.ebuild new file mode 100644 index 000000000000..1c57d8e71681 --- /dev/null +++ b/dev-libs/bemenu/bemenu-0.6.14.ebuild @@ -0,0 +1,59 @@ +# Copyright 2019-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="dmenu clone for wayland" +HOMEPAGE="https://github.com/Cloudef/bemenu" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Cloudef/bemenu.git" +else + SRC_URI="https://github.com/Cloudef/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~x86" +fi + +LICENSE="GPL-3" +SLOT="0" +IUSE="doc ncurses wayland X" + +# Require at least one backend be built +REQUIRED_USE="|| ( ncurses wayland X )" + +RDEPEND=" + ncurses? ( sys-libs/ncurses:= ) + wayland? ( + dev-libs/wayland + x11-libs/cairo + x11-libs/pango + x11-libs/libxcb + ) + X? ( + x11-libs/libxcb + x11-libs/libXext + x11-libs/libX11 + x11-libs/cairo[X] + x11-libs/pango[X] + x11-libs/libXinerama + ) +" +DEPEND=" + ${RDEPEND} + wayland? ( + dev-libs/wayland-protocols + ) +" +BDEPEND="doc? ( app-doc/doxygen )" + +src_compile() { + tc-export CC + + emake clients $(usex ncurses curses "") $(usex X x11 "") $(usex wayland wayland "") PREFIX=/usr libdir=/$(get_libdir) + use doc && emake doxygen PREFIX=/usr libdir=/$(get_libdir) +} + +src_install() { + emake install PREFIX="${D}"/usr libdir=/$(get_libdir) +} |