commit:     9ae720e061b6782e16198919b79b66762b011a79
Author:     Martin Dummer <martin.dummer <AT> gmx <DOT> net>
AuthorDate: Sun Oct 19 16:39:08 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Oct 20 09:38:15 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ae720e0

media-plugins/vdr-vompserver: update EAPI 7 -> 8

fix API issue with "GetEvent"
introduce subslot dependency on media-video/vdr

Closes: https://bugs.gentoo.org/938816
Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net>
Part-of: https://github.com/gentoo/gentoo/pull/44250
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../vdr-vompserver/files/fix_GetEvent.patch        | 30 +++++++++++++++++++
 .../vdr-vompserver/vdr-vompserver-0.5.1-r1.ebuild  | 34 ++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/media-plugins/vdr-vompserver/files/fix_GetEvent.patch 
b/media-plugins/vdr-vompserver/files/fix_GetEvent.patch
new file mode 100644
index 000000000000..2e01156b6e1d
--- /dev/null
+++ b/media-plugins/vdr-vompserver/files/fix_GetEvent.patch
@@ -0,0 +1,30 @@
+diff '--color=auto' -Naur a/picturereader.c b/picturereader.c
+--- a/picturereader.c  2019-10-29 14:58:23.000000000 +0100
++++ b/picturereader.c  2025-10-19 18:26:08.125609964 +0200
+@@ -238,7 +238,11 @@
+         Schedule = tSchedules->GetSchedule(channel);
+       }
+       const cEvent *event = NULL;
++#if APIVERSNUM >= 20502
++      if (Schedule) event=Schedule->GetEventById(req.primary_id);
++#else
+       if (Schedule) event=Schedule->GetEvent(req.primary_id);
++#endif
+       ScraperGetPosterThumb getter;
+       getter.event = event;
+       getter.recording = NULL;
+diff '--color=auto' -Naur a/vompclientrrproc.c b/vompclientrrproc.c
+--- a/vompclientrrproc.c       2019-10-29 14:58:23.000000000 +0100
++++ b/vompclientrrproc.c       2025-10-19 18:24:25.657348227 +0200
+@@ -2495,7 +2495,11 @@
+   {
+      const cSchedule *Schedule = 
tSchedules->GetSchedule(channel->GetChannelID());
+      if (Schedule) {
++#if APIVERSNUM >= 20502
++        event = Schedule->GetEventById(eventid);
++#else
+         event = Schedule->GetEvent(eventid);
++#endif
+     }
+   }
+     

diff --git a/media-plugins/vdr-vompserver/vdr-vompserver-0.5.1-r1.ebuild 
b/media-plugins/vdr-vompserver/vdr-vompserver-0.5.1-r1.ebuild
new file mode 100644
index 000000000000..9b59ac0c4ee2
--- /dev/null
+++ b/media-plugins/vdr-vompserver/vdr-vompserver-0.5.1-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2021-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit vdr-plugin-2
+
+DESCRIPTION="VDR Plugin: server part for MediaMVP device"
+HOMEPAGE="https://www.loggytronic.com/vomp.php";
+SRC_URI="https://www.loggytronic.com/dl/${P}.tgz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+
+DEPEND=">=media-video/vdr-2.4.1:="
+RDEPEND="${DEPEND}"
+
+KEEP_I18NOBJECT="yes"
+PATCHES=( "${FILESDIR}/fix_GetEvent.patch" )
+
+src_install() {
+       vdr-plugin-2_src_install
+
+       insinto /etc/vdr/plugins/vompserver
+       newins vomp.conf.sample vomp.conf
+       newins vomp-00-00-00-00-00-00.conf.sample vomp-00-00-00-00-00-00.conf
+}
+
+pkg_postinst() {
+       vdr-plugin-2_pkg_postinst
+
+       elog "\nHave a look to the VOMP sample files in /etc/vdr/plugins.\n"
+}

Reply via email to