summaryrefslogtreecommitdiff
blob: eb01453dfd26043ab52b71d4d003d19ac516db63 (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
31
32
33
34
35
36
37
38
39
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit vdr-plugin-2

GIT_COMMIT="43b60b1566878104240cbae5b1e322bbacd380e1"
MY_P="vdr-plugin-satip-${GIT_COMMIT}"

DESCRIPTION="VDR Plugin: integrates SAT>IP network devices seamlessly into VDR"
HOMEPAGE="https://github.com/rofafor/vdr-plugin-satip"
SRC_URI="https://github.com/rofafor/vdr-plugin-satip/archive/${GIT_COMMIT}.tar.gz -> ${MY_P}.tar.gz"

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

DEPEND="
	>=media-video/vdr-2.4.0
	>=net-misc/curl-7.36
	|| ( dev-libs/tinyxml dev-libs/pugixml )"
RDEPEND="${DEPEND}"

QA_FLAGS_IGNORED="
	usr/lib/vdr/plugins/libvdr-satip.*
	usr/lib64/vdr/plugins/libvdr-satip.*"
S="${WORKDIR}/${MY_P}"

src_prepare() {
	vdr-plugin-2_src_prepare

	if has_version "dev-libs/tinyxml"; then
		sed -e "s:#SATIP_USE_TINYXML:SATIP_USE_TINYXML:" -i Makefile || die "sed failed"
	fi

	local GIT_COMMIT_SHORT=${GIT_COMMIT:0:7}
	sed -i -e "s:GITTAG  =.*:GITTAG=${GIT_COMMIT_SHORT}:" Makefile || die "Failed to modify Makefile"
}