Сравнение ansifilter-2.18 с ansifilter-2.19

/usr/portage/app-text/ansifilter/ansifilter-2.19.ebuild 2023-10-09 14:52:28.864368334 +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
inherit desktop toolchain-funcs qmake-utils
6
inherit toolchain-funcs qmake-utils xdg
7 7

  
8 8
DESCRIPTION="Handles text files containing ANSI terminal escape codes"
9 9
HOMEPAGE="http://www.andre-simon.de/"
......
11 11

  
12 12
LICENSE="GPL-3+"
13 13
SLOT="0"
14
KEYWORDS="amd64 arm arm64 hppa ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
15
IUSE="qt5"
14
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
15
IUSE="gui"
16 16

  
17 17
RDEPEND="
18
	qt5? (
18
	gui? (
19 19
		dev-qt/qtcore:5
20 20
		dev-qt/qtgui:5
21 21
		dev-qt/qtwidgets:5
22
	)"
22
	)
23
"
23 24
DEPEND="${RDEPEND}"
24 25

  
25 26
DOCS=( ChangeLog.adoc README.adoc  )
......
30 31
	# bug 431452
31 32
	rm src/qt-gui/moc_mydialog.cpp || die
32 33

  
33
	sed -e "s/-O2//" -i src/makefile || die
34
	sed \
35
		-e "/GZIP/d" \
36
		-e "/COPYING/d" \
37
		-i makefile || die
38

  
39
	sed \
40
		-e "s/-O2//" \
41
		-i src/makefile || die
34 42
}
35 43

  
36 44
src_configure() {
37
	if use qt5 ; then
45
	if use gui ; then
38 46
		pushd src/qt-gui > /dev/null || die
39 47
		eqmake5
40 48
		popd > /dev/null || die
......
44 52
src_compile() {
45 53
	emake -f makefile CXX="$(tc-getCXX)"
46 54

  
47
	if use qt5 ; then
48
		pushd src/qt-gui > /dev/null || die
49
		emake
50
		popd > /dev/null || die
55
	if use gui ; then
56
		emake -C src/qt-gui
51 57
	fi
52 58
}
53 59

  
54 60
src_install() {
55
	dobin src/${PN}
56
	if use qt5 ; then
57
		dobin src/qt-gui/${PN}-gui
58
		domenu ${PN}.desktop
59
	fi
61
	emake -f makefile \
62
		DESTDIR="${D}" \
63
		doc_dir="/usr/share/doc/${PF}" \
64
		-j1 \
65
		install $(usev gui install-gui)
60 66

  
61
	doman man/${PN}.1
62 67
	einstalldocs
63 68
}
69

  
70
pkg_preinst() {
71
	use gui && xdg_pkg_preinst
72
}
73

  
74
pkg_postrm() {
75
	use gui && xdg_pkg_postrm
76
}
77

  
78
pkg_postinst() {
79
	use gui && xdg_pkg_postinst
80
}
Спасибо!