From 77c610c807c3901eddc6ed65e08eefebaa58ddfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Efe=20=C4=B0zbudak?= Date: Thu, 13 Jul 2023 09:07:05 -0400 Subject: [PATCH] www-client/vimb: fix compilation for gtk+[-X,wayland] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The XEMBED feature has to be disabled if gtk+ has been built with wayland flag only (no X). Also added missing einstalldocs function to src_install. Signed-off-by: Efe İzbudak --- www-client/vimb/vimb-3.6.0.ebuild | 4 +++- www-client/vimb/vimb-9999.ebuild | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/www-client/vimb/vimb-3.6.0.ebuild b/www-client/vimb/vimb-3.6.0.ebuild index f7ced56c82..2ffaa59244 100644 --- a/www-client/vimb/vimb-3.6.0.ebuild +++ b/www-client/vimb/vimb-3.6.0.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit savedconfig optfeature +inherit flag-o-matic optfeature savedconfig DESCRIPTION="A fast, lightweight, vim-like browser based on webkit" HOMEPAGE="https://fanglingsu.github.io/vimb/" @@ -35,6 +35,7 @@ src_prepare() { } src_compile() { + has_version x11-libs/gtk+:3[-X,wayland] && append-cflags -DFEATURE_NO_XEMBED=1 emake PREFIX="/usr" } @@ -42,6 +43,7 @@ src_install() { emake PREFIX="/usr" DESTDIR="${D}" install save_config src/config.def.h use adblock && dosym /usr/lib/wyebrowser/adblock.so /usr/lib/vimb/adblock.so + einstalldocs } pkg_postinst() { diff --git a/www-client/vimb/vimb-9999.ebuild b/www-client/vimb/vimb-9999.ebuild index f7ced56c82..2ffaa59244 100644 --- a/www-client/vimb/vimb-9999.ebuild +++ b/www-client/vimb/vimb-9999.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit savedconfig optfeature +inherit flag-o-matic optfeature savedconfig DESCRIPTION="A fast, lightweight, vim-like browser based on webkit" HOMEPAGE="https://fanglingsu.github.io/vimb/" @@ -35,6 +35,7 @@ src_prepare() { } src_compile() { + has_version x11-libs/gtk+:3[-X,wayland] && append-cflags -DFEATURE_NO_XEMBED=1 emake PREFIX="/usr" } @@ -42,6 +43,7 @@ src_install() { emake PREFIX="/usr" DESTDIR="${D}" install save_config src/config.def.h use adblock && dosym /usr/lib/wyebrowser/adblock.so /usr/lib/vimb/adblock.so + einstalldocs } pkg_postinst() {