diff options
author | Alessandro Barbieri <lssndrbarbieri@gmail.com> | 2022-06-30 05:36:07 +0200 |
---|---|---|
committer | Alessandro Barbieri <lssndrbarbieri@gmail.com> | 2022-06-30 12:26:16 +0200 |
commit | 04983033307881b3ce86f6f632bad2042da465d1 (patch) | |
tree | c7bda91c476d3b852f067e7d4d55138eca2ffb51 /x11-terms | |
parent | sys-cluster/otf2: add 3.0, use custom compiler (diff) | |
download | guru-04983033307881b3ce86f6f632bad2042da465d1.tar.gz guru-04983033307881b3ce86f6f632bad2042da465d1.tar.bz2 guru-04983033307881b3ce86f6f632bad2042da465d1.zip |
x11-terms/mlterm-canna: also install fb and wl modules
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
Diffstat (limited to 'x11-terms')
-rw-r--r-- | x11-terms/mlterm-canna/mlterm-canna-3.9.2-r1.ebuild (renamed from x11-terms/mlterm-canna/mlterm-canna-3.9.2.ebuild) | 48 |
1 files changed, 43 insertions, 5 deletions
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 index 8f05bab49..59c02f644 100644 --- a/x11-terms/mlterm-canna/mlterm-canna-3.9.2.ebuild +++ b/x11-terms/mlterm-canna/mlterm-canna-3.9.2-r1.ebuild @@ -14,13 +14,29 @@ S="${WORKDIR}/${MYP}" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64" +IUSE="cairo fbcon wayland X xft" -DEPEND="app-i18n/canna" +DEPEND=" + app-i18n/canna + cairo? ( x11-libs/cairo[X(+)] ) + wayland? ( + dev-libs/wayland + x11-libs/libxkbcommon + ) + X? ( + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + ) + xft? ( x11-libs/libXft ) +" RDEPEND=" ${DEPEND} - ~x11-terms/mlterm-${PV} + ~x11-terms/mlterm-${PV}[cairo=,fbcon=,wayland=,X=,xft=] " +REQUIRED_USE="|| ( X fbcon wayland )" + src_configure() { local myconf=( --disable-brlapi @@ -40,11 +56,12 @@ src_configure() { --disable-vt52 --disable-wnn --enable-canna - --with-gui=console + --with-gui=$(usex X "xlib" "")$(usex fbcon ",fb" "")$(usex wayland ",wayland" "") + --with-type-engines=xcore$(usex xft ",xft" "")$(usex cairo ",cairo" "") --without-gtk - --without-type-engines --without-utmp - --without-x + + $(use_with X x) ) addpredict /dev/ptmx @@ -60,6 +77,16 @@ src_compile() { popd || die pushd inputmethod/canna || die emake + popd || die + pushd gui/fb/inputmethod/canna/ || die + emake + popd || die + + if use wayland; then + pushd gui/wayland/inputmethod/canna/ || die + emake + popd || die + fi } src_test() { @@ -69,5 +96,16 @@ src_test() { src_install() { pushd inputmethod/canna || die DESTDIR="${D}" emake install + popd || die + pushd gui/fb/inputmethod/canna/ || die + DESTDIR="${D}" emake install + popd || die + + if use wayland; then + pushd gui/wayland/inputmethod/canna/ || die + DESTDIR="${D}" emake install + popd || die + fi + find "${ED}" -name '*.la' -delete || die } |