+++ /dev/null
-diff -Naur epgsearch-1.0.0.orig/epgsearchsvdrp.c epgsearch-1.0.0/epgsearchsvdrp.c
---- epgsearch-1.0.0.orig/epgsearchsvdrp.c 2012-12-15 11:42:41.000000000 +0100
-+++ epgsearch-1.0.0/epgsearchsvdrp.c 2012-12-15 11:44:38.000000000 +0100
-@@ -564,7 +564,7 @@
- strftime(bufStart, sizeof(bufStart), "%H%M", localtime_r(&start, &tm_r));
- strftime(bufEnd, sizeof(bufEnd), "%H%M", localtime_r(&stop, &tm_r));
-
-- int timerMatch;
-+ eTimerMatch timerMatch;
- bool hasTimer = false;
- if (Timers.GetMatch(pEvent, &timerMatch))
- hasTimer = (timerMatch == tmFull);
-diff -Naur epgsearch-1.0.0.orig/mail.c epgsearch-1.0.0/mail.c
---- epgsearch-1.0.0.orig/mail.c 2012-12-15 11:42:41.000000000 +0100
-+++ epgsearch-1.0.0/mail.c 2012-12-15 11:45:02.000000000 +0100
-@@ -49,7 +49,7 @@
- const cEvent* pEvent = GetEvent();
- if (!pEvent) return "";
-
-- int TimerMatch = tmNone;
-+ eTimerMatch TimerMatch = tmNone;
- cTimer* pTimer = Timers.GetMatch(pEvent, &TimerMatch);
- if (!pTimer) return "";
-
-diff -Naur epgsearch-1.0.0.orig/menu_commands.c epgsearch-1.0.0/menu_commands.c
---- epgsearch-1.0.0.orig/menu_commands.c 2012-12-15 11:42:41.000000000 +0100
-+++ epgsearch-1.0.0/menu_commands.c 2012-12-15 11:45:40.000000000 +0100
-@@ -121,7 +121,7 @@
- {
- if (!event) return osContinue;
-
-- int timerMatch = tmNone;
-+ eTimerMatch timerMatch = tmNone;
- cTimer* timer = Timers.GetMatch(event, &timerMatch);
- if (timerMatch == tmFull)
- {
-diff -Naur epgsearch-1.0.0.orig/menu_event.c epgsearch-1.0.0/menu_event.c
---- epgsearch-1.0.0.orig/menu_event.c 2012-12-15 11:42:41.000000000 +0100
-+++ epgsearch-1.0.0/menu_event.c 2012-12-15 11:46:17.000000000 +0100
-@@ -92,7 +92,7 @@
- cEventObj* eventObjPrev = GetPrev(event);
- cEventObj* eventObjNext = GetNext(event);
-
-- int timerMatch = tmNone;
-+ eTimerMatch timerMatch = tmNone;
- Timers.GetMatch(event, &timerMatch);
- const char* szRed = trVDR("Button$Record");
- if (timerMatch == tmFull)
-diff -Naur epgsearch-1.0.0.orig/menu_main.c epgsearch-1.0.0/menu_main.c
---- epgsearch-1.0.0.orig/menu_main.c 2012-12-15 11:42:41.000000000 +0100
-+++ epgsearch-1.0.0/menu_main.c 2012-12-15 11:47:08.000000000 +0100
-@@ -181,7 +181,7 @@
- if (item) {
- if (item->timerMatch == tmFull)
- {
-- int tm = tmNone;
-+ eTimerMatch tm = tmNone;
- cTimer *timer = Timers.GetMatch(item->event, &tm);
- if (timer)
- {
-diff -Naur epgsearch-1.0.0.orig/menu_searchresults.c epgsearch-1.0.0/menu_searchresults.c
---- epgsearch-1.0.0.orig/menu_searchresults.c 2012-12-15 11:42:41.000000000 +0100
-+++ epgsearch-1.0.0/menu_searchresults.c 2012-12-15 11:51:12.000000000 +0100
-@@ -217,7 +217,7 @@
- if (item) {
- if (item->timerMatch == tmFull)
- {
-- int tm = tmNone;
-+ eTimerMatch tm = tmNone;
- cTimer *timer = Timers.GetMatch(item->event, &tm);
- if (timer)
- {
-diff -Naur epgsearch-1.0.0.orig/menu_searchresults.h epgsearch-1.0.0/menu_searchresults.h
---- epgsearch-1.0.0.orig/menu_searchresults.h 2012-12-15 11:42:41.000000000 +0100
-+++ epgsearch-1.0.0/menu_searchresults.h 2012-12-15 11:51:57.000000000 +0100
-@@ -50,7 +50,7 @@
- bool episodeOnly;
- cMenuTemplate* menuTemplate;
- public:
-- int timerMatch;
-+ eTimerMatch timerMatch;
- bool inSwitchList;
- const cEvent *event;
- const cSearchExt* search;
-diff -Naur epgsearch-1.0.0.orig/menu_whatson.c epgsearch-1.0.0/menu_whatson.c
---- epgsearch-1.0.0.orig/menu_whatson.c 2012-12-15 11:42:41.000000000 +0100
-+++ epgsearch-1.0.0/menu_whatson.c 2012-12-15 11:52:37.000000000 +0100
-@@ -527,7 +527,7 @@
- {
- if (item->timerMatch == tmFull)
- {
-- int tm = tmNone;
-+ eTimerMatch tm = tmNone;
- cTimer *timer = Timers.GetMatch(item->event, &tm);
- if (timer)
- {
-diff -Naur epgsearch-1.0.0.orig/menu_whatson.h epgsearch-1.0.0/menu_whatson.h
---- epgsearch-1.0.0.orig/menu_whatson.h 2012-12-15 11:42:41.000000000 +0100
-+++ epgsearch-1.0.0/menu_whatson.h 2012-12-15 11:53:09.000000000 +0100
-@@ -35,7 +35,7 @@
- const cEvent *event;
- cChannel *channel;
- showMode mode;
-- int timerMatch;
-+ eTimerMatch timerMatch;
- bool inSwitchList;
- cMenuTemplate* menuTemplate;
-
-diff -Naur epgsearch-1.0.0.orig/services.c epgsearch-1.0.0/services.c
---- epgsearch-1.0.0.orig/services.c 2012-12-15 11:42:41.000000000 +0100
-+++ epgsearch-1.0.0/services.c 2012-12-15 11:53:34.000000000 +0100
-@@ -143,7 +143,7 @@
- strftime(bufStart, sizeof(bufStart), "%H%M", localtime_r(&start, &tm_r));
- strftime(bufEnd, sizeof(bufEnd), "%H%M", localtime_r(&stop, &tm_r));
-
-- int timerMatch;
-+ eTimerMatch timerMatch;
- bool hasTimer = false;
- if (Timers.GetMatch(pEvent, &timerMatch))
- hasTimer = (timerMatch == tmFull);
+++ /dev/null
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit vdr-plugin-2
-
-DESCRIPTION="VDR Plugin: Searchtimer and replacement of the VDR program menu"
-HOMEPAGE="http://winni.vdr-developer.org/epgsearch"
-
-case ${P#*_} in
- rc*|beta*)
- MY_P="${P/_/.}"
- SRC_URI="http://winni.vdr-developer.org/epgsearch/downloads/beta/${MY_P}.tgz"
- S="${WORKDIR}/${MY_P#vdr-}"
- ;;
- *)
- SRC_URI="http://winni.vdr-developer.org/epgsearch/downloads/${P}.tgz"
- ;;
-esac
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="pcre tre l10n_de"
-
-DEPEND=">=media-video/vdr-1.3.45
- pcre? ( dev-libs/libpcre )
- tre? ( dev-libs/tre )"
-RDEPEND="${DEPEND}"
-
-REQUIRED_USE="pcre? ( !tre )
- tre? ( !pcre )"
-
-src_prepare() {
- vdr-plugin-2_src_prepare
-
- fix_vdr_libsi_include conflictcheck.c
-
- if has_version ">=media-video/vdr-1.7.25"; then
- epatch "${FILESDIR}/${P}_vdr-1.7.25.diff"
- fi
-
- if has_version ">=media-video/vdr-1.7.28"; then
- sed -i "s:SetRecording(recording->FileName(), recording->Title:SetRecording(recording->FileName:" menu_searchresults.c
- fi
-
- if has_version ">=media-video/vdr-1.7.33"; then
- epatch "${FILESDIR}/${P}_vdr-1.7.33.diff"
- fi
-
- epatch "${FILESDIR}/${P}_vdr-2.1.2.diff"
-
- # disable automagic deps
- sed -i Makefile -e '/^AUTOCONFIG=/s/^/#/'
-
- if use pcre; then
- einfo "Using pcre for regexp searches"
- sed -i Makefile -e 's:^#REGEXLIB = pcre:REGEXLIB = pcre:'
- fi
-
- if use tre; then
- einfo "Using tre for unlimited fuzzy searches"
- sed -i Makefile -e 's:^#REGEXLIB = pcre:REGEXLIB = tre:'
- fi
-
- # install conf-file disabled
- sed -e '/^Menu/s:^:#:' -i conf/epgsearchmenu.conf
-
- # Get a rid of the broken symlinks
- rm -f README{,.DE} MANUAL
-}
-
-src_install() {
- vdr-plugin-2_src_install
-
- diropts "-m755 -o vdr -g vdr"
- keepdir /etc/vdr/plugins/epgsearch
- insinto /etc/vdr/plugins/epgsearch
-
- doins conf/epgsearchmenu.conf
- doins conf/epgsearchconflmail.templ conf/epgsearchupdmail.templ
-
- dodoc conf/*.templ
-
- doman man/en/*.gz
-
- if use l10n_de; then
- doman -i18n=de man/de/*.gz
- fi
-}
-
-pkg_preinst() {
- has_version "<${CATEGORY}/${PN}-0.9.18"
- previous_less_than_0_9_18=$?
-}
-
-pkg_postinst() {
- vdr-plugin-2_pkg_postinst
- if [[ $previous_less_than_0_9_18 = 0 ]] ; then
- elog "Moving config-files to new location /etc/vdr/plugins/epgsearch"
- cd "${ROOT}"/etc/vdr/plugins
- local f
- local moved=""
- for f in epgsearch*.* .epgsearch*; do
- [[ -e ${f} ]] || continue
- mv "${f}" "${ROOT}/etc/vdr/plugins/epgsearch"
- moved="${moved} ${f}"
- done
- elog "These files were moved:${moved}"
- fi
-}