1 |
commit: 04983033307881b3ce86f6f632bad2042da465d1 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Jun 30 03:36:07 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 30 10:26:16 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=04983033 |
7 |
|
8 |
x11-terms/mlterm-canna: also install fb and wl modules |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
...a-3.9.2.ebuild => mlterm-canna-3.9.2-r1.ebuild} | 48 +++++++++++++++++++--- |
13 |
1 file changed, 43 insertions(+), 5 deletions(-) |
14 |
|
15 |
diff --git a/x11-terms/mlterm-canna/mlterm-canna-3.9.2.ebuild b/x11-terms/mlterm-canna/mlterm-canna-3.9.2-r1.ebuild |
16 |
similarity index 55% |
17 |
rename from x11-terms/mlterm-canna/mlterm-canna-3.9.2.ebuild |
18 |
rename to x11-terms/mlterm-canna/mlterm-canna-3.9.2-r1.ebuild |
19 |
index 8f05bab49..59c02f644 100644 |
20 |
--- a/x11-terms/mlterm-canna/mlterm-canna-3.9.2.ebuild |
21 |
+++ b/x11-terms/mlterm-canna/mlterm-canna-3.9.2-r1.ebuild |
22 |
@@ -14,13 +14,29 @@ S="${WORKDIR}/${MYP}" |
23 |
LICENSE="BSD" |
24 |
SLOT="0" |
25 |
KEYWORDS="~amd64" |
26 |
+IUSE="cairo fbcon wayland X xft" |
27 |
|
28 |
-DEPEND="app-i18n/canna" |
29 |
+DEPEND=" |
30 |
+ app-i18n/canna |
31 |
+ cairo? ( x11-libs/cairo[X(+)] ) |
32 |
+ wayland? ( |
33 |
+ dev-libs/wayland |
34 |
+ x11-libs/libxkbcommon |
35 |
+ ) |
36 |
+ X? ( |
37 |
+ x11-libs/libICE |
38 |
+ x11-libs/libSM |
39 |
+ x11-libs/libX11 |
40 |
+ ) |
41 |
+ xft? ( x11-libs/libXft ) |
42 |
+" |
43 |
RDEPEND=" |
44 |
${DEPEND} |
45 |
- ~x11-terms/mlterm-${PV} |
46 |
+ ~x11-terms/mlterm-${PV}[cairo=,fbcon=,wayland=,X=,xft=] |
47 |
" |
48 |
|
49 |
+REQUIRED_USE="|| ( X fbcon wayland )" |
50 |
+ |
51 |
src_configure() { |
52 |
local myconf=( |
53 |
--disable-brlapi |
54 |
@@ -40,11 +56,12 @@ src_configure() { |
55 |
--disable-vt52 |
56 |
--disable-wnn |
57 |
--enable-canna |
58 |
- --with-gui=console |
59 |
+ --with-gui=$(usex X "xlib" "")$(usex fbcon ",fb" "")$(usex wayland ",wayland" "") |
60 |
+ --with-type-engines=xcore$(usex xft ",xft" "")$(usex cairo ",cairo" "") |
61 |
--without-gtk |
62 |
- --without-type-engines |
63 |
--without-utmp |
64 |
- --without-x |
65 |
+ |
66 |
+ $(use_with X x) |
67 |
) |
68 |
|
69 |
addpredict /dev/ptmx |
70 |
@@ -60,6 +77,16 @@ src_compile() { |
71 |
popd || die |
72 |
pushd inputmethod/canna || die |
73 |
emake |
74 |
+ popd || die |
75 |
+ pushd gui/fb/inputmethod/canna/ || die |
76 |
+ emake |
77 |
+ popd || die |
78 |
+ |
79 |
+ if use wayland; then |
80 |
+ pushd gui/wayland/inputmethod/canna/ || die |
81 |
+ emake |
82 |
+ popd || die |
83 |
+ fi |
84 |
} |
85 |
|
86 |
src_test() { |
87 |
@@ -69,5 +96,16 @@ src_test() { |
88 |
src_install() { |
89 |
pushd inputmethod/canna || die |
90 |
DESTDIR="${D}" emake install |
91 |
+ popd || die |
92 |
+ pushd gui/fb/inputmethod/canna/ || die |
93 |
+ DESTDIR="${D}" emake install |
94 |
+ popd || die |
95 |
+ |
96 |
+ if use wayland; then |
97 |
+ pushd gui/wayland/inputmethod/canna/ || die |
98 |
+ DESTDIR="${D}" emake install |
99 |
+ popd || die |
100 |
+ fi |
101 |
+ |
102 |
find "${ED}" -name '*.la' -delete || die |
103 |
} |