summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2021-08-05 21:28:57 -0400
committerIonen Wolkens <ionen@gentoo.org>2021-08-05 21:30:27 -0400
commitdc14c6d5f341e1c0ff25522df2c3dd73e46b58c6 (patch)
tree0abc8f6a8a435c7ddff75e6cc9fdd5afd4bf8e95 /media-gfx/imv
parentmedia-gfx/imv: add 4.3.0 (diff)
downloadgentoo-dc14c6d5f341e1c0ff25522df2c3dd73e46b58c6.tar.gz
gentoo-dc14c6d5f341e1c0ff25522df2c3dd73e46b58c6.tar.bz2
gentoo-dc14c6d5f341e1c0ff25522df2c3dd73e46b58c6.zip
media-gfx/imv: sync live
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'media-gfx/imv')
-rw-r--r--media-gfx/imv/imv-9999.ebuild16
1 files changed, 8 insertions, 8 deletions
diff --git a/media-gfx/imv/imv-9999.ebuild b/media-gfx/imv/imv-9999.ebuild
index 9b3b3c026ab9..73b075d4566b 100644
--- a/media-gfx/imv/imv-9999.ebuild
+++ b/media-gfx/imv/imv-9999.ebuild
@@ -14,7 +14,7 @@ else
fi
DESCRIPTION="Minimal image viewer designed for tiling window manager users"
-HOMEPAGE="https://github.com/eXeC64/imv"
+HOMEPAGE="https://github.com/eXeC64/imv/"
LICENSE="MIT-with-advertising"
SLOT="0"
@@ -23,9 +23,11 @@ REQUIRED_USE="|| ( X wayland )"
RESTRICT="!test? ( test )"
RDEPEND="
+ dev-libs/glib:2
dev-libs/icu:=
dev-libs/inih
media-libs/libglvnd[X?]
+ x11-libs/cairo
x11-libs/libxkbcommon[X?]
x11-libs/pango
X? (
@@ -43,6 +45,7 @@ RDEPEND="
!sys-apps/renameutils"
DEPEND="
${RDEPEND}
+ X? ( x11-base/xorg-proto )
test? ( dev-util/cmocka )"
BDEPEND="
app-text/asciidoc
@@ -51,9 +54,9 @@ BDEPEND="
src_prepare() {
default
- # allow building with libglvnd[-X]
+ # if wayland-only, don't automagic on libGL and force libOpenGL
if ! use X; then
- sed -i "/dependency('gl')/s/gl/opengl/" meson.build || die
+ sed -i "/dependency('gl'/{s/'gl'/'opengl'/;s/false/true/}" meson.build || die
fi
# glu isn't used by anything
@@ -61,10 +64,6 @@ src_prepare() {
}
src_configure() {
- local windows=all
- use X || windows=wayland
- use wayland || windows=x11
-
local emesonargs=(
$(meson_feature freeimage)
$(meson_feature gif libnsgif)
@@ -74,7 +73,8 @@ src_configure() {
$(meson_feature svg librsvg)
$(meson_feature test)
$(meson_feature tiff libtiff)
- -Dwindows=${windows}
+ -Dwindows=$(usex X $(usex wayland all x11) wayland)
)
+
meson_src_configure
}