Сравнение highlight-4.1 с highlight-4.6

/usr/portage/app-text/highlight/highlight-4.6.ebuild 2023-10-09 14:52:28.880368335 +0300
1 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 6
LUA_COMPAT=( lua5-{1..4} luajit )
7 7

  
......
13 13

  
14 14
LICENSE="GPL-3"
15 15
SLOT="0"
16
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
17
IUSE="examples qt5"
16
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
17
IUSE="examples gui"
18 18

  
19 19
REQUIRED_USE="${LUA_REQUIRED_USE}"
20 20

  
21 21
RDEPEND="
22 22
	${LUA_DEPS}
23
	qt5? (
23
	gui? (
24 24
		dev-qt/qtcore:5
25 25
		dev-qt/qtgui:5
26 26
		dev-qt/qtwidgets:5
27 27
	)
28 28
"
29
DEPEND="${RDEPEND}
29
DEPEND="
30
	${RDEPEND}
30 31
	dev-libs/boost
31 32
"
32 33
BDEPEND="
33 34
	virtual/pkgconfig
34
	qt5? ( dev-qt/linguist-tools:5 )
35
	gui? ( dev-qt/linguist-tools:5 )
35 36
"
36 37

  
37 38
PATCHES=(
......
49 50
	HL_DATA_DIR="${EPREFIX}/usr/share/highlight/"
50 51
	doc_dir="${EPREFIX}/usr/share/doc/${PF}/"
51 52
	conf_dir="${EPREFIX}/etc/highlight/"
53
	examples_dir="${EPREFIX}/usr/share/doc/${PF}/extras"
52 54
)
53 55

  
54 56
src_prepare() {
55 57
	default
56 58

  
57
	# disable man page compression
58
	sed -e "/GZIP/d" -i makefile || die
59
	# Disable man page compression
60
	sed \
61
		-e "/GZIP/d" \
62
		-e "/COPYING/d" \
63
		-i makefile || die
59 64

  
60 65
	sed -e "/LSB_DOC_DIR/s:doc/${PN}:doc/${PF}:" \
61 66
		-i src/core/datadir.cpp || die
......
73 78
}
74 79

  
75 80
src_configure() {
76
	if use qt5 ; then
81
	if use gui ; then
77 82
		pushd src/gui-qt > /dev/null || die
78 83
		eqmake5 \
79 84
			'DEFINES+=DATA_DIR=\\\"'"${EPREFIX}"'/usr/share/${PN}/\\\" CONFIG_DIR=\\\"'"${EPREFIX}"'/etc/${PN}/\\\" DOC_DIR=\\\"'"${EPREFIX}"'/usr/share/doc/${PF}/\\\"'
......
83 88

  
84 89
src_compile() {
85 90
	emake -f makefile LUA_PKG_NAME="${ELUA}" "${myhlopts[@]}"
86
	if use qt5 ; then
87
		pushd src/gui-qt > /dev/null || die
88
		emake
89
		popd > /dev/null || die
91
	if use gui ; then
92
		emake -C src/gui-qt
90 93
	fi
91 94
}
92 95

  
93 96
src_install() {
94 97
	emake -f makefile "${myhlopts[@]}" install
95
	if use qt5; then
98

  
99
	if use gui; then
96 100
		emake -f makefile "${myhlopts[@]}" install-gui
97 101
		docompress -x /usr/share/doc/${PF}/{ChangeLog,COPYING,README,README_PLUGINS}
98 102
	fi
Спасибо!