Сравнение nomacs-3.16.224-r5 с nomacs-3.16.224-r6

/usr/portage/media-gfx/nomacs/nomacs-3.16.224-r6.ebuild 2023-10-09 14:52:31.640368404 +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=7
4
EAPI=8
5 5

  
6
CMAKE_BUILD_TYPE="Release" # buildsys: what a mess
6 7
PLUGIN_PKG="${PN}-plugins-$(ver_cut 1-2)"
7
inherit cmake xdg-utils
8
inherit cmake xdg
8 9

  
9 10
DESCRIPTION="Qt-based image viewer"
10 11
HOMEPAGE="https://nomacs.org/"
11 12
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
12 13
plugins? ( https://github.com/${PN}/${PN}-plugins/archive/$(ver_cut 1-2).tar.gz -> ${PLUGIN_PKG}.tar.gz )"
14
CMAKE_USE_DIR="${S}/ImageLounge"
13 15

  
14 16
LICENSE="GPL-3+"
15 17
SLOT="0"
16
KEYWORDS="amd64 ~arm64 ~riscv x86 ~amd64-linux"
17
IUSE="+jpeg +opencv plugins raw +tiff zip"
18
KEYWORDS="~amd64 ~arm64 ~riscv ~x86 ~amd64-linux"
19
IUSE="+opencv plugins raw +tiff zip"
18 20

  
19 21
REQUIRED_USE="
20 22
	raw? ( opencv )
......
24 26
RDEPEND="
25 27
	dev-qt/qtconcurrent:5
26 28
	dev-qt/qtcore:5
27
	dev-qt/qtgui:5[jpeg?]
29
	dev-qt/qtgui:5[jpeg]
28 30
	dev-qt/qtnetwork:5
29 31
	dev-qt/qtprintsupport:5
30 32
	dev-qt/qtsvg:5
......
44 46
	virtual/pkgconfig
45 47
"
46 48

  
47
S="${WORKDIR}/${P}/ImageLounge"
48

  
49 49
DOCS=( src/changelog.txt )
50 50

  
51 51
PATCHES=(
52
	"${FILESDIR}"/${P}-quazip1.patch
53
	"${FILESDIR}"/${P}-DkMath-ostream.patch
52
	"${FILESDIR}"/${P}-libdir.patch
53
	"${FILESDIR}"/${P}-exiv2-0.28.patch # bug 906488
54 54
)
55 55

  
56 56
src_prepare() {
57 57
	if use plugins ; then
58
		rmdir plugins || die
59
		mv -v ../../${PLUGIN_PKG} plugins || die
60
		# Fix bug #847112
61
		sed -e 's:QT_QMAKE_EXECUTABLE NAMES "qmake" "qmake-qt5" "qmake.exe":QT_QMAKE_EXECUTABLE NAMES "qmake" "qmake5" "qmake.exe":' \
62
			-i plugins/cmake/Utils.cmake || die
63
		# Fix nomacs-plugins installation and search library directory
64
		sed -e "s:lib/nomacs-plugins:$(get_libdir)/nomacs-plugins:" \
65
			-i plugins/cmake/Utils.cmake || die
66
		sed -e "s:lib/nomacs-plugins:$(get_libdir)/nomacs-plugins:" \
67
			-i src/DkCore/DkPluginManager.cpp || die
58
		rmdir ImageLounge/plugins || die
59
		mv -v ../${PLUGIN_PKG} ImageLounge/plugins || die
68 60
	fi
61

  
62
	# from git master # reuse existing patches w/o paths adjusted
63
	pushd "ImageLounge" > /dev/null || die
64
		eapply "${FILESDIR}"/${P}-quazip1.patch
65
		eapply "${FILESDIR}"/${P}-DkMath-ostream.patch
66
	popd > /dev/null || die
67

  
68
	use plugins && eapply "${FILESDIR}"/${P}-libdir-plugins.patch
69

  
69 70
	cmake_src_prepare
70 71
}
71 72

  
72 73
src_configure() {
73 74
	local mycmakeargs=(
75
		-DQT_QMAKE_EXECUTABLE=qmake5 # bug 847112
74 76
		-DENABLE_CODE_COV=OFF
75 77
		-DUSE_SYSTEM_QUAZIP=ON
76 78
		-DENABLE_TRANSLATIONS=ON
......
82 84
	)
83 85
	cmake_src_configure
84 86
}
85

  
86
pkg_postinst() {
87
	xdg_desktop_database_update
88
}
89

  
90
pkg_postrm() {
91
	xdg_desktop_database_update
92
}
Спасибо!