Сравнение pqiv-2.11 с pqiv-2.12

/usr/portage/media-gfx/pqiv/pqiv-2.12.ebuild 2023-10-09 14:52:31.644368404 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=6
5
inherit linux-info toolchain-funcs xdg-utils
4
EAPI=8
6 5

  
7
if [[ ${PV} == 9999 ]]; then
8
	EGIT_REPO_URI="https://github.com/phillipberndt/pqiv.git"
9
	inherit git-r3
10
else
11
	SRC_URI="https://github.com/phillipberndt/pqiv/archive/${PV}.tar.gz -> ${P}.tar.gz"
12
	KEYWORDS="amd64 ~arm ~arm64 ~riscv x86"
13
fi
6
inherit edo linux-info toolchain-funcs xdg
14 7

  
15
DESCRIPTION="powerful GTK 3 based command-line image viewer with a minimal UI"
8
DESCRIPTION="A powerful GTK 3 based command-line image viewer with a minimal UI"
16 9
HOMEPAGE="https://github.com/phillipberndt/pqiv http://www.pberndt.com/Programme/Linux/pqiv/"
10
SRC_URI="https://github.com/phillipberndt/pqiv/archive/${PV}.tar.gz -> ${P}.tar.gz"
17 11

  
18
LICENSE="GPL-2"
12
LICENSE="GPL-3+"
19 13
SLOT="0"
14
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
20 15
IUSE="archive ffmpeg imagemagick pdf postscript webp"
21 16

  
22 17
RDEPEND="
23 18
	>=dev-libs/glib-2.32:2
24 19
	>=x11-libs/cairo-1.6
20
	>=x11-libs/gdk-pixbuf-2.2:2
25 21
	x11-libs/gtk+:3
22
	>=x11-libs/pango-1.10
26 23
	archive? ( app-arch/libarchive:0= )
27 24
	ffmpeg? ( media-video/ffmpeg:0= )
28 25
	imagemagick? ( media-gfx/imagemagick:0= )
......
30 27
	postscript? ( app-text/libspectre:0= )
31 28
	webp? ( media-libs/libwebp:0= )
32 29
"
33
DEPEND="${RDEPEND}
34
	virtual/pkgconfig"
35

  
36
doecho() {
37
	echo "$@"
38
	"$@" || die
39
}
30
DEPEND="${RDEPEND}"
31
BDEPEND="virtual/pkgconfig"
40 32

  
41 33
pkg_setup() {
42 34
	if use kernel_linux; then
......
46 38
}
47 39

  
48 40
src_configure() {
49
	local backends="gdkpixbuf"
50
	use archive && backends+=",archive,archive_cbx"
51
	use ffmpeg && backends+=",libav"
52
	use imagemagick && backends+=",wand"
53
	use pdf && backends+=",poppler"
54
	use postscript && backends+=",spectre"
55
	use webp && backends+=",webp"
56

  
57
	doecho ./configure \
58
		--backends-build=shared \
59
		--backends=${backends} \
60
		--prefix="${EPREFIX}/usr" \
61
		--libdir="${EPREFIX}/usr/$(get_libdir)" \
62
		--destdir="${ED}"
41
	local backends=(
42
		"gdkpixbuf"
43
		$(usex archive "archive" "")
44
		$(usex archive "archive_cbx" "")
45
		$(usex ffmpeg "libav" "")
46
		$(usex imagemagick "wand" "")
47
		$(usex pdf "poppler" "")
48
		$(usex postscript "spectre" "")
49
		$(usex webp "webp" "")
50
	)
51
	local myconf=(
52
		--backends-build=shared
53
		--backends=$(printf "%s," "${backends[@]}")
54
		--prefix="${EPREFIX}/usr"
55
		--libdir="${EPREFIX}/usr/$(get_libdir)"
56
	)
57
	edo ./configure "${myconf[@]}"
63 58
}
64 59

  
65 60
src_compile() {
66 61
	tc-export CC
67 62
	emake VERBOSE=1 CFLAGS="${CFLAGS}"
68 63
}
69

  
70
pkg_postinst() {
71
	xdg_desktop_database_update
72
}
73

  
74
pkg_postrm() {
75
	xdg_desktop_database_update
76
}
Спасибо!