commit: e0ca39e39aba6ea303e967ec1730b8178f66ff2d Author: Martin Dummer <martin.dummer <AT> gmx <DOT> net> AuthorDate: Sat Sep 27 09:42:48 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Oct 3 00:45:45 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0ca39e3
media-plugins/vdr-markad: new package, add 4.2.15 vdr plugin for advertisement detection in video recordings markad is a replacement for media-video/noad Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net> Part-of: https://github.com/gentoo/gentoo/pull/43957 Closes: https://github.com/gentoo/gentoo/pull/43957 Signed-off-by: Sam James <sam <AT> gentoo.org> media-plugins/vdr-markad/Manifest | 1 + media-plugins/vdr-markad/files/confd | 35 +++++++++++++++++ .../vdr-markad/files/vdr-markad-Makefile.patch | 13 +++++++ media-plugins/vdr-markad/metadata.xml | 19 ++++++++++ media-plugins/vdr-markad/vdr-markad-4.2.15.ebuild | 44 ++++++++++++++++++++++ 5 files changed, 112 insertions(+) diff --git a/media-plugins/vdr-markad/Manifest b/media-plugins/vdr-markad/Manifest new file mode 100644 index 000000000000..d8e7ef43be3b --- /dev/null +++ b/media-plugins/vdr-markad/Manifest @@ -0,0 +1 @@ +DIST vdr-markad-4.2.15.tar.gz 331865 BLAKE2B d5dd6dbdf9ca79e21e50e157cbbb5e587c3c6602b2f69752e291b9fea5773a5343bca6bc88164e1f0fc13a5af7689715b2ce7625757535a1c239c2885844cf8c SHA512 48c73c6d3cdf0dd9e12040e7b880035e9b64b698b923e6ed226c5b65add08c1cce561535e81769647b3b8b8f0124197feb28f8bd1ad7fec531ec02353c5bca2c diff --git a/media-plugins/vdr-markad/files/confd b/media-plugins/vdr-markad/files/confd new file mode 100644 index 000000000000..8144580c6340 --- /dev/null +++ b/media-plugins/vdr-markad/files/confd @@ -0,0 +1,35 @@ +# /etc/conf.d/vdr.markad + +# Configuration: + +# A few settings are given on the command line rather than in the setup menu. +# Available options: +# +# -b DIR, --bindir=DIR use DIR as location for markad executable +# (default: /usr/bin) +# -l DIR --logocachedir=DIR use DIR as location for markad logos +# (default: /var/lib/markad) +# +# --loglevel=<level> sets log level of started markad process (standalone, not the plugin) to the specified value +# <level>: 1=error 2=info 3=debug 4=trace +# +# --astopoffs=SECONDS assume stop of the recording SECONDS after the end of the EPG time. +# default is 0 s +# If end marks are to early, try to add some seconds +# +# --cut cut video based on marks and write it in the recording directory +# there are no splits of the target file, make sure your filesystem can handle big files +# +# --ac3reencode re-encode AC3 stream to fix low audio level of cutted video on same devices +# requires --cut +# +# --autologo=<option> 0 = disable, only use logos from logo cache directory +# 1 = deprecated, do not use +# 2 = enable (default) +# if there is no suitable logo in the logo cache directory markad will +# try to find the logo from recording and store it in the recording directory +# If this option is set you can not configure this feature from the VDR menu +# +# +# +#_EXTRAOPTS="--loglevel=3 --cut" diff --git a/media-plugins/vdr-markad/files/vdr-markad-Makefile.patch b/media-plugins/vdr-markad/files/vdr-markad-Makefile.patch new file mode 100644 index 000000000000..46b136e12814 --- /dev/null +++ b/media-plugins/vdr-markad/files/vdr-markad-Makefile.patch @@ -0,0 +1,13 @@ +# do not install compressed manpage +# +--- vdr-plugin-markad-4.2.15.orig/command/Makefile 2025-07-31 17:48:24.000000000 +0200 ++++ vdr-plugin-markad-4.2.15/command/Makefile 2025-09-27 10:07:24.720617866 +0200 +@@ -173,7 +173,7 @@ + + install-doc: + @mkdir -p $(DESTDIR)$(MANDIR)/man1 +- @gzip -c markad.1 > $(DESTDIR)$(MANDIR)/man1/markad.1.gz ++ install -D markad.1 $(DESTDIR)$(MANDIR)/man1 + + install: install-doc markad $(I18Nmsgs) + @mkdir -p $(DESTDIR)$(BINDIR) diff --git a/media-plugins/vdr-markad/metadata.xml b/media-plugins/vdr-markad/metadata.xml new file mode 100644 index 000000000000..f2b10f5a2bc2 --- /dev/null +++ b/media-plugins/vdr-markad/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>[email protected]</email> + <name>Martin Dummer</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>[email protected]</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>[email protected]</email> + <name>Gentoo VDR Project</name> + </maintainer> + <upstream> + <remote-id type="github">kfb77/vdr-plugin-markad</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-plugins/vdr-markad/vdr-markad-4.2.15.ebuild b/media-plugins/vdr-markad/vdr-markad-4.2.15.ebuild new file mode 100644 index 000000000000..3288dea8acc6 --- /dev/null +++ b/media-plugins/vdr-markad/vdr-markad-4.2.15.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit vdr-plugin-2 + +DESCRIPTION="VDR Plugin: mark advertising in VDR recordings" +HOMEPAGE="https://github.com/kfb77/vdr-plugin-markad/" +SRC_URI="https://github.com/kfb77/vdr-plugin-markad/archive/refs/tags/V${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/vdr-plugin-markad-${PV}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" + +DEPEND="media-video/vdr:= + media-video/ffmpeg[lame] + !media-video/noad" +RDEPEND="${DEPEND}" + +src_prepare() { + default + eapply "${FILESDIR}/vdr-markad-Makefile.patch" + S="${WORKDIR}/vdr-plugin-markad-${PV}/plugin" + vdr-plugin-2_src_prepare + cp ../version.dist ../version.h || die +} + +src_compile() { + S="${WORKDIR}/vdr-plugin-markad-${PV}/" + vdr-plugin-2_src_compile +} + +src_install() { + S="${WORKDIR}/vdr-plugin-markad-${PV}/plugin" + vdr-plugin-2_src_install + + cd "${S}/.." + emake install DESTDIR="${D}" || die "emake install failed" + + cd "${WORKDIR}/${VDRPLUGIN}-${PV}" + dodoc README HISTORY +}
