diff options
author | Michael Mair-Keimberger <mmk@levelnine.at> | 2021-05-14 19:57:28 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-05-14 19:57:28 +0200 |
commit | 79c1348db8babd09a249b98bf7fb210c6cdc1add (patch) | |
tree | 79dbadd1ed737c1f3090dd520a0483189d86e84e /media-plugins/vdr-burn/vdr-burn-0.3.0-r2.ebuild | |
parent | x11-misc/spacefm: point to sys-apps/util-linux as optional dependency (diff) | |
download | gentoo-79c1348db8babd09a249b98bf7fb210c6cdc1add.tar.gz gentoo-79c1348db8babd09a249b98bf7fb210c6cdc1add.tar.bz2 gentoo-79c1348db8babd09a249b98bf7fb210c6cdc1add.zip |
media-plugins/vdr-burn: depend on sys-apps/util-linux directly, sort, r2
Package-Manager: Portage-3.0.18, Repoman-3.0.3
RepoMan-Options: --force
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-plugins/vdr-burn/vdr-burn-0.3.0-r2.ebuild')
-rw-r--r-- | media-plugins/vdr-burn/vdr-burn-0.3.0-r2.ebuild | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/media-plugins/vdr-burn/vdr-burn-0.3.0-r2.ebuild b/media-plugins/vdr-burn/vdr-burn-0.3.0-r2.ebuild new file mode 100644 index 000000000000..af941eb2a615 --- /dev/null +++ b/media-plugins/vdr-burn/vdr-burn-0.3.0-r2.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit vdr-plugin-2 + +VERSION="2028" # every bump, new version! + +DESCRIPTION="VDR Plugin: burn records on DVD" +HOMEPAGE="https://projects.vdr-developer.org/projects/plg-burn" +SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="GPL-2" +IUSE="dvdarchive" + +DEPEND="media-libs/gd[png,truetype,jpeg] + media-video/vdr" +RDEPEND="${DEPEND} + app-cdr/dvd+rw-tools + dev-libs/libcdio + media-fonts/corefonts + media-video/dvdauthor + media-video/mjpegtools[png] + media-video/projectx + media-video/transcode + sys-apps/util-linux" + +# depends that are not rdepend +DEPEND="${DEPEND} + dev-libs/boost" + +S="${WORKDIR}/${P#vdr-}" + +src_prepare() { + vdr-plugin-2_src_prepare + + eapply \ + "${FILESDIR}"/${P}_gentoo-path.patch \ + "${FILESDIR}"/${P}_setdefaults.patch \ + "${FILESDIR}"/${P}_dmh-archive.patch + + if use dvdarchive; then + sed -i Makefile \ + -e "s:#ENABLE_DMH_ARCHIVE:ENABLE_DMH_ARCHIVE:" || die + fi + + sed -i Makefile \ + -e 's:^ISODIR=.*$:ISODIR=/var/vdr/video/dvd-images:' || die + + sed -i Makefile -e 's:DEFINES += -DTTXT_SUBTITLES:#DEFINES += -DTTXT_SUBTITLES:' || die + + # do not install deprecated fonts, do not install in /etc/vdr/plugin config dir + sed -i Makefile \ + -e "s:install-res install-conf::" || die + + # ttf-bitstream-vera deprecated, bug #335782 + sed -e "s:Vera:arial:" -i skins.c || die + + # fix deprecated warnings pkg-config + sed -i Makefile \ + -e "s:gdlib-config:pkg-config gdlib:" || die + + # 786492 + sed -e "s|=min|=std::min|" -i genindex/pes.c || die + + fix_vdr_libsi_include scanner.c +} + +src_install() { + vdr-plugin-2_src_install + + insinto /usr/share/vdr/burn + doins "${S}"/resource/menu-silence.mp2 + newins "${S}"/resource/menu-button.png menu-button-default.png + newins "${S}"/resource/menu-bg.png menu-bg-default.png + + newins "${S}"/config/ProjectX.ini projectx-vdr.ini + + dosym menu-bg-default.png /usr/share/vdr/burn/menu-bg.png + dosym menu-button-default.png /usr/share/vdr/burn/menu-button.png + + insinto /usr/share/vdr/burn/counters/ + doins "${S}/config/counters/standard" + + fowners -R vdr:vdr /usr/share/vdr/burn +} + +pkg_preinst() { + if [[ -d ${EROOT}/etc/vdr/plugins/burn && ( ! -L ${EROOT}/etc/vdr/plugins/burn ) ]]; then + einfo "Moving /etc/vdr/plugins/burn away" + mv "${EROOT}"/etc/vdr/plugins/burn "${EROOT}"/etc/vdr/plugins/burn_old + fi +} + +pkg_postinst() { + vdr-plugin-2_pkg_postinst + + if [[ -e ${EROOT}/etc/vdr/reccmds/reccmds.burn.conf ]]; then + eerror "\nPlease remove the following unneeded file:" + eerror "\t/etc/vdr/reccmds/reccmds.burn.conf\n" + fi +} |