You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-plugins/vdr-mplayer/vdr-mplayer-0.10.2-r2.ebuild

71 lines
1.5 KiB

# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit vdr-plugin-2
DESCRIPTION="VDR Plugin: Play video files not supported by VDR with mplayer (divx and more)"
HOMEPAGE="https://www.muempf.de/"
SRC_URI="https://www.muempf.de/down/vdr-mp3-${PV}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=">=media-video/vdr-1.4.2"
RDEPEND="${DEPEND}
media-video/mplay-sh
sys-apps/util-linux"
S=${WORKDIR}/mp3-${PV}
PATCHES=( "${FILESDIR}/${PV}/01_gentoo.diff" )
VDR_RCADDON_FILE=${FILESDIR}/rc-addon-0.9.15.sh
VDR_CONFD_FILE=${FILESDIR}/confd-0.9.15.sh
src_prepare() {
vdr-plugin-2_src_prepare
if has_version ">=media-video/vdr-2.1.2"; then
sed -e "s#VideoDirectory#cVideoDirectory::Name\(\)#" \
-i decoder.c \
-i player-mplayer.c
fi
# bug 787557
eapply "${FILESDIR}/${P}_tc-directly.patch"
}
src_install() {
vdr-plugin-2_src_install
insinto /etc/vdr/plugins/mplayer
doins "${FILESDIR}/mplayersources.conf"
into /usr/share/vdr/mplayer
newbin examples/mount.sh.example mount-mplayer.sh
dodoc HISTORY MANUAL README examples/{image_convert,network}.sh.example
}
pkg_postinst() {
vdr-plugin-2_pkg_postinst
echo
elog "Edit all config's /etc/vdr/plugins/mplayer"
echo
if ! has_version "media-plugins/vdr-mp3ng" ; then
elog "Splitted ebuild!, no support for Audio files"
elog "To play mp3, ogg and wav files,"
elog "emerge media-plugins/vdr-mp3ng -pv"
elog "or"
elog "emerge media-plugins/vdr-mp3 -pv"
echo
fi
}