Diff cool-retro-term-1.1.1-r2 with a cool-retro-term-1.2.0

/usr/portage/x11-terms/cool-retro-term/cool-retro-term-1.2.0.ebuild 2023-10-09 14:52:35.980368514 +0300
1
# Copyright 1999-2020 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 qmake-utils xdg-utils
6
inherit qmake-utils xdg
7 7

  
8
QTW_PN=qmltermwidget
9
QTW_PV=0.2.0
10
QTW_P=${QTW_PN}-${QTW_PV}
8
QTW_PN="qmltermwidget"
9
QTW_PV=63228027e1f97c24abb907550b22ee91836929c5
10
QTW_P="${QTW_PN}-${QTW_PV}"
11 11

  
12
DESCRIPTION="terminal emulator which mimics the look and feel of the old cathode tube screens"
13
HOMEPAGE="https://github.com/Swordfish90/cool-retro-term"
14
SRC_URI="https://github.com/Swordfish90/cool-retro-term/archive/${PV}.tar.gz -> ${P}.tar.gz
15
	https://github.com/Swordfish90/qmltermwidget/archive/${QTW_PV}.tar.gz -> ${QTW_P}.tar.gz"
12
DESCRIPTION="Terminal emulator with an old school look and feel"
13
HOMEPAGE="https://github.com/Swordfish90/cool-retro-term/"
16 14

  
17
LICENSE="GPL-2 GPL-3"
15
SRC_URI="
16
	https://github.com/Swordfish90/cool-retro-term/archive/${PV}.tar.gz -> ${P}.tar.gz
17
	https://github.com/Swordfish90/qmltermwidget/archive/${QTW_PV}.tar.gz -> ${QTW_P}.tar.gz
18
"
19

  
20
LICENSE="BSD GPL-2+ GPL-3+"
18 21
SLOT="0"
19 22
KEYWORDS="~amd64 ~ppc64 ~x86"
20
IUSE=""
21 23

  
22 24
DEPEND="
25
	dev-qt/qtcore:5
23 26
	dev-qt/qtdeclarative:5[localstorage]
24 27
	dev-qt/qtgraphicaleffects:5
28
	dev-qt/qtgui:5
29
	dev-qt/qtnetwork:5
25 30
	dev-qt/qtquickcontrols:5[widgets]
26
	dev-qt/qtsql:5
31
	dev-qt/qtquickcontrols2:5[widgets]
27 32
	dev-qt/qtwidgets:5
28 33
"
29 34

  
30
RDEPEND="${DEPEND}"
35
RDEPEND="${DEPEND}
36
	virtual/opengl"
31 37

  
32 38
src_prepare() {
33 39
	default
34 40

  
35
	rmdir qmltermwidget || die
36
	mv "${WORKDIR}/${QTW_P}" qmltermwidget || die
37
	pushd qmltermwidget || die
38
	eapply "${FILESDIR}"/qmltermwidget-0.2.0-gcc-10.patch
39
	popd || die
41
	rmdir "${QTW_PN}" || die
42
	mv "${WORKDIR}/${QTW_P}" "${QTW_PN}" || die
40 43
}
41 44

  
42 45
src_configure() {
......
44 47
}
45 48

  
46 49
src_install() {
47
	# default attempts to install directly to /usr
48
	emake INSTALL_ROOT="${D}" install
49
	doman packaging/debian/cool-retro-term.1
50
}
50
	# `default` attempts to install directly to /usr and parallelised
51
	# installation is not supported as `qmake5 -install` does not implictly
52
	# create target directory.
51 53

  
52
pkg_postinst() {
53
	xdg_icon_cache_update
54
	xdg_desktop_database_update
55
}
54
	emake -j1 INSTALL_ROOT="${ED}" install
55
	doman "packaging/debian/cool-retro-term.1"
56 56

  
57
pkg_postrm() {
58
	xdg_icon_cache_update
59
	xdg_desktop_database_update
57
	insinto "/usr/share/metainfo"
58
	doins "packaging/appdata/cool-retro-term.appdata.xml"
60 59
}
Thank you!