summaryrefslogtreecommitdiff
blob: 0497eb2de3a3955ff632b3ce4424712ca459f90c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit vdr-plugin-2

DESCRIPTION="VDR Plugin: Show still image instead of live tv to safe cpu"
HOMEPAGE="http://phivdr.dyndns.org/vdr/vdr-suspendoutput/"
SRC_URI="http://phivdr.dyndns.org/vdr/vdr-suspendoutput/${P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="media-video/vdr"
RDEPEND="${DEPEND}"

src_prepare() {
	vdr-plugin-2_src_prepare

	# compile fix, wrt bug 574162
	sed -e 246c"unsigned int TimeoutMs, bool runOnce)" \
		-e 254c"unsigned int TimeoutMs, bool runOnce)" \
		-i timer.h || die

	# gcc-11, bug 787506
	sed -e "s|max|std::max|" -i timer.c || die
}