diff options
author | Martin Dummer <martin.dummer@gmx.net> | 2022-01-26 00:43:31 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2022-06-28 18:38:20 +0300 |
commit | e80c64fe3eb6669c23993dcc56bb374ad0caf8b9 (patch) | |
tree | d4fb9f1270fe3f0410832baac12573fb95b0e61e /media-plugins/vdr-streamdev/vdr-streamdev-0.6.3.ebuild | |
parent | net-analyzer/netdata: Cleanup old versions (diff) | |
download | gentoo-e80c64fe3eb6669c23993dcc56bb374ad0caf8b9.tar.gz gentoo-e80c64fe3eb6669c23993dcc56bb374ad0caf8b9.tar.bz2 gentoo-e80c64fe3eb6669c23993dcc56bb374ad0caf8b9.zip |
media-plugins/vdr-streamdev: version bump to 0.6.3
new EAPI 8
make USE=server the default
adopt proxy maintainership
change HOME due to retirement of http://projects.vdr-developer.org
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Martin Dummer <martin.dummer@gmx.net>
Closes: https://github.com/gentoo/gentoo/pull/23960
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-plugins/vdr-streamdev/vdr-streamdev-0.6.3.ebuild')
-rw-r--r-- | media-plugins/vdr-streamdev/vdr-streamdev-0.6.3.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/media-plugins/vdr-streamdev/vdr-streamdev-0.6.3.ebuild b/media-plugins/vdr-streamdev/vdr-streamdev-0.6.3.ebuild new file mode 100644 index 000000000000..3565a40465d6 --- /dev/null +++ b/media-plugins/vdr-streamdev/vdr-streamdev-0.6.3.ebuild @@ -0,0 +1,79 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit vdr-plugin-2 + +DESCRIPTION="VDR Plugin: Client/Server and http streaming plugin" +HOMEPAGE="https://github.com/vdr-projects/vdr-plugin-streamdev" +SRC_URI="https://github.com/vdr-projects/vdr-plugin-streamdev/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/vdr-plugin-streamdev-${PV}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="client +server" +REQUIRED_USE="|| ( client server )" + +DEPEND="acct-user/vdr + >=media-video/vdr-2.3" +BDEPEND="${DEPEND}" +RDEPEND="${DEPEND}" + +QA_FLAGS_IGNORED=" + usr/lib/vdr/plugins/libvdr-streamdev-.* + usr/lib64/vdr/plugins/libvdr-streamdev-.*" + +# vdr-plugin-2.eclass changes +PO_SUBDIR="client server" + +src_prepare() { + # make detection in vdr-plugin-2.eclass for new Makefile handling happy + echo "# SOFILE" >> Makefile || die "modify Makefile failed" + + # remove unnecessary include + sed -i Makefile -e "s:-I\$(VDRDIR)/include::" || die "modify Makefile failed" + + vdr-plugin-2_src_prepare + + local flag + for flag in client server; do + if ! use ${flag}; then + sed -i Makefile \ + -e '/^.PHONY:/s/'${flag}'//' \ + -e '/^.PHONY:/s/'install-${flag}'//' \ + -e '/^all:/s/'${flag}'//' \ + -e '/^install:/s/'install-${flag}'//' || die "modify Makefile failed" + fi + done + + fix_vdr_libsi_include server/livestreamer.c +} + +src_install() { + vdr-plugin-2_src_install + + if use server; then + insinto /usr/share/vdr/streamdev + doins streamdev-server/externremux.sh + + insinto /usr/share/vdr/rcscript + newins "${FILESDIR}"/rc-addon-0.6.0.sh plugin-streamdev-server.sh + + newconfd "${FILESDIR}"/confd-0.6.0 vdr.streamdev-server + + insinto /etc/vdr/plugins/streamdev-server + newins streamdev-server/streamdevhosts.conf streamdevhosts.conf + fowners vdr:vdr /etc/vdr -R + fi +} + +pkg_postinst() { + vdr-plugin-2_pkg_postinst + + if [[ -e "${EROOT}"/etc/vdr/plugins/streamdev/streamdevhosts.conf ]]; then + einfo "move config file to new config DIR ${EROOT}/etc/vdr/plugins/streamdev-server/" + mv "${EROOT}"/etc/vdr/plugins/streamdev/streamdevhosts.conf "${EROOT}"/etc/vdr/plugins/streamdev-server/streamdevhosts.conf || die + fi +} |