1 |
|
# Copyright 2020-2021 Gentoo Authors
|
|
1 |
# Copyright 2020-2022 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 vdr-plugin-2
|
7 |
|
|
8 |
|
GIT_VERSION="e2a9b979d3fb92967c7a6a8221e674eb7e55c813"
|
|
6 |
inherit toolchain-funcs vdr-plugin-2
|
9 |
7 |
|
10 |
8 |
DESCRIPTION="VDR Plugin: Client/Server and http streaming plugin"
|
11 |
|
HOMEPAGE="https://projects.vdr-developer.org/projects/plg-streamdev"
|
12 |
|
SRC_URI="https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git/snapshot/vdr-plugin-streamdev-${GIT_VERSION}.tar.bz2"
|
|
9 |
HOMEPAGE="https://github.com/vdr-projects/vdr-plugin-streamdev"
|
|
10 |
SRC_URI="https://github.com/vdr-projects/vdr-plugin-streamdev/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
|
11 |
S="${WORKDIR}/vdr-plugin-streamdev-${PV}"
|
13 |
12 |
|
14 |
13 |
LICENSE="GPL-2"
|
15 |
14 |
SLOT="0"
|
16 |
15 |
KEYWORDS="amd64 ~arm x86"
|
17 |
|
IUSE="client server"
|
|
16 |
IUSE="client +server"
|
18 |
17 |
REQUIRED_USE="|| ( client server )"
|
19 |
18 |
|
20 |
|
DEPEND=">=media-video/vdr-2.3"
|
|
19 |
DEPEND="acct-user/vdr
|
|
20 |
>=media-video/vdr-2.3"
|
|
21 |
BDEPEND="${DEPEND}"
|
21 |
22 |
RDEPEND="${DEPEND}"
|
22 |
23 |
|
23 |
24 |
QA_FLAGS_IGNORED="
|
24 |
25 |
usr/lib/vdr/plugins/libvdr-streamdev-.*
|
25 |
26 |
usr/lib64/vdr/plugins/libvdr-streamdev-.*"
|
26 |
|
S="${WORKDIR}/vdr-plugin-streamdev-${GIT_VERSION}"
|
|
27 |
PATCHES=( "${FILESDIR}/${P}-Makefile.patch" )
|
27 |
28 |
|
28 |
29 |
# vdr-plugin-2.eclass changes
|
29 |
30 |
PO_SUBDIR="client server"
|
... | ... | |
32 |
33 |
# make detection in vdr-plugin-2.eclass for new Makefile handling happy
|
33 |
34 |
echo "# SOFILE" >> Makefile || die "modify Makefile failed"
|
34 |
35 |
|
35 |
|
# rm unneeded entry
|
|
36 |
# remove unnecessary include
|
36 |
37 |
sed -i Makefile -e "s:-I\$(VDRDIR)/include::" || die "modify Makefile failed"
|
37 |
38 |
|
38 |
39 |
vdr-plugin-2_src_prepare
|
39 |
40 |
|
|
41 |
local flag
|
40 |
42 |
for flag in client server; do
|
41 |
43 |
if ! use ${flag}; then
|
42 |
44 |
sed -i Makefile \
|
... | ... | |
50 |
52 |
fix_vdr_libsi_include server/livestreamer.c
|
51 |
53 |
}
|
52 |
54 |
|
|
55 |
src_compile() {
|
|
56 |
emake AR="$(tc-getAR)"
|
|
57 |
}
|
|
58 |
|
53 |
59 |
src_install() {
|
54 |
60 |
vdr-plugin-2_src_install
|
55 |
61 |
|
... | ... | |
73 |
79 |
|
74 |
80 |
if [[ -e "${EROOT}"/etc/vdr/plugins/streamdev/streamdevhosts.conf ]]; then
|
75 |
81 |
einfo "move config file to new config DIR ${EROOT}/etc/vdr/plugins/streamdev-server/"
|
76 |
|
mv "${EROOT}"/etc/vdr/plugins/streamdev/streamdevhosts.conf "${EROOT}"/etc/vdr/plugins/streamdev-server/streamdevhosts.conf
|
|
82 |
mv "${EROOT}"/etc/vdr/plugins/streamdev/streamdevhosts.conf "${EROOT}"/etc/vdr/plugins/streamdev-server/streamdevhosts.conf || die
|
77 |
83 |
fi
|
78 |
84 |
}
|