blob: 37149c58e56a35a861733674420b1c4d2f53992f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson xdg
DESCRIPTION="Minimal image viewer designed for tiling window manager users"
HOMEPAGE="https://sr.ht/~exec64/imv/"
SRC_URI="https://git.sr.ht/~exec64/imv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-v${PV}"
LICENSE="MIT-with-advertising"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="+X +freeimage gif heif icu jpeg png svg test tiff wayland"
REQUIRED_USE="|| ( X wayland )"
RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/glib:2
dev-libs/inih
media-libs/libglvnd[X?]
x11-libs/cairo
x11-libs/libxkbcommon[X?]
x11-libs/pango
X? (
x11-libs/libX11
x11-libs/libxcb:=
)
freeimage? ( media-libs/freeimage )
gif? ( media-libs/libnsgif )
heif? ( media-libs/libheif:= )
icu? ( dev-libs/icu:= )
!icu? ( >=dev-libs/libgrapheme-2:= )
jpeg? ( media-libs/libjpeg-turbo:= )
png? ( media-libs/libpng:= )
svg? ( >=gnome-base/librsvg-2.44:2 )
tiff? ( media-libs/tiff:= )
wayland? ( dev-libs/wayland )
!sys-apps/renameutils"
DEPEND="
${RDEPEND}
X? ( x11-base/xorg-proto )
test? ( dev-util/cmocka )"
BDEPEND="
app-text/asciidoc
wayland? ( dev-util/wayland-scanner )"
PATCHES=(
"${FILESDIR}"/${PN}-4.3.1_p20211221-animated-gif.patch
)
src_prepare() {
default
# if wayland-only, don't automagic on libGL and force libOpenGL
if ! use X; then
sed -i "/dependency('gl'/{s/'gl'/'opengl'/;s/false/true/}" meson.build || die
fi
# glu isn't used by anything
sed -i "/dependency('glu')/d" meson.build || die
}
src_configure() {
local emesonargs=(
$(meson_feature freeimage)
$(meson_feature gif libnsgif)
$(meson_feature heif libheif)
$(meson_feature jpeg libjpeg)
$(meson_feature png libpng)
$(meson_feature svg librsvg)
$(meson_feature test)
$(meson_feature tiff libtiff)
-Dunicode=$(usex icu{,} grapheme)
-Dwindows=$(usex X $(usex wayland all x11) wayland)
)
meson_src_configure
}
|