1 |
commit: 6747bb3076a52389d8dd8fa173cf2abc1dd1774b |
2 |
Author: Aidan Harris <me <AT> aidanharris <DOT> io> |
3 |
AuthorDate: Tue Mar 26 17:47:44 2019 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 27 02:10:17 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6747bb30 |
7 |
|
8 |
dev-libs/bemenu: Update for upstream build changes |
9 |
|
10 |
Fixes: https://bugs.gentoo.org/681808 |
11 |
|
12 |
Signed-off-by: Aidan Harris <me <AT> aidanharris.io> |
13 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
14 |
|
15 |
dev-libs/bemenu/bemenu-9999.ebuild | 35 +++++++++++++++++++++++++---------- |
16 |
1 file changed, 25 insertions(+), 10 deletions(-) |
17 |
|
18 |
diff --git a/dev-libs/bemenu/bemenu-9999.ebuild b/dev-libs/bemenu/bemenu-9999.ebuild |
19 |
index 1bfa5ce8fae..f9113da669b 100644 |
20 |
--- a/dev-libs/bemenu/bemenu-9999.ebuild |
21 |
+++ b/dev-libs/bemenu/bemenu-9999.ebuild |
22 |
@@ -12,22 +12,37 @@ EGIT_REPO_URI="https://github.com/Cloudef/bemenu.git" |
23 |
LICENSE="GPL-3" |
24 |
SLOT="0" |
25 |
KEYWORDS="" |
26 |
-IUSE="doc" |
27 |
+IUSE="doc ncurses wayland X" |
28 |
+ |
29 |
+# Require at least one backend be built |
30 |
+REQUIRED_USE="|| ( ncurses wayland X )" |
31 |
|
32 |
DEPEND=" |
33 |
- x11-libs/cairo |
34 |
- x11-libs/pango |
35 |
- dev-libs/wayland |
36 |
- x11-libs/libxcb |
37 |
- dev-libs/wayland-protocols |
38 |
- sys-libs/ncurses:0 |
39 |
- x11-libs/libXext |
40 |
- x11-libs/libX11" |
41 |
+ ncurses? ( sys-libs/ncurses:0 ) |
42 |
+ wayland? ( |
43 |
+ dev-libs/wayland |
44 |
+ dev-libs/wayland-protocols |
45 |
+ x11-libs/cairo |
46 |
+ x11-libs/pango |
47 |
+ ) |
48 |
+ X? ( |
49 |
+ x11-libs/libxcb |
50 |
+ x11-libs/libXext |
51 |
+ x11-libs/libX11 |
52 |
+ x11-libs/cairo[X] |
53 |
+ x11-libs/pango[X] |
54 |
+ ) |
55 |
+" |
56 |
RDEPEND="${DEPEND}" |
57 |
BDEPEND="doc? ( app-doc/doxygen )" |
58 |
|
59 |
src_configure() { |
60 |
- local mycmakeargs=(-DCURSES_LIBRARY=/usr/$(get_libdir)/libncursesw.so) |
61 |
+ local mycmakeargs=( |
62 |
+ -DCURSES_LIBRARY=/usr/$(get_libdir)/libncursesw.so |
63 |
+ -DBEMENU_CURSES_RENDERER=$(usex ncurses ON OFF) |
64 |
+ -DBEMENU_WAYLAND_RENDERER=$(usex wayland ON OFF) |
65 |
+ -DBEMENU_X11_RENDERER=$(usex X ON OFF) |
66 |
+ ) |
67 |
cmake-utils_src_configure |
68 |
} |