1 # Copyright 2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="VDR plugin: create timers from epg content based on saved search expressions"
9 HOMEPAGE="http://winni.vdr-developer.org/epgsearch"
14 SRC_URI="http://winni.vdr-developer.org/epgsearch/downloads/beta/${MY_P}.tgz"
15 S="${WORKDIR}/${MY_P#vdr-}"
18 GIT_COMMIT_ID="a908daa4c5c6edd6c560ed96939358b4352e9b42"
19 GIT_COMMIT_DATE="20141227"
20 SRC_URI="http://projects.vdr-developer.org/git/vdr-plugin-epgsearch.git/snapshot/vdr-plugin-epgsearch-${GIT_COMMIT_ID}.tar.gz
22 S="${WORKDIR}/vdr-plugin-epgsearch-${GIT_COMMIT_ID}"
25 SRC_URI="http://winni.vdr-developer.org/epgsearch/downloads/${P}.tgz"
32 IUSE="+conflictcheckonly +epgsearchonly l10n_de pcre +quicksearch tre"
33 REQUIRED_USE="?? ( pcre tre )"
35 DEPEND="media-video/vdr
36 pcre? ( dev-libs/libpcre )
37 tre? ( dev-libs/tre )"
39 QA_FLAGS_IGNORED="usr/lib/vdr/plugins/libvdr-.* usr/lib64/vdr/plugins/libvdr-.* usr/bin/createcats"
42 # make detection in vdr-plugin-2.eclass for new Makefile handling happy
43 echo "# SOFILE" >> Makefile || die "cannot write to Makefile"
45 # remove untranslated .po files
46 rm "${S}"/po/{ca_ES,da_DK,el_GR,et_EE,hr_HR,hu_HU,nn_NO,pl_PL,pt_PT,ro_RO,ru_RU,sl_SI,sv_SE,tr_TR}.po || die "cannot remove .po files"
49 "${FILESDIR}/vdr-epgsearch-1.x.makefile.patch"
50 "${FILESDIR}/fix-manpage-generation.diff"
53 use conflictcheckonly || sed -e "s:install-\$(PLUGIN3)::" -i Makefile || die "cannot modify Makefile"
54 use epgsearchonly || sed -e "s:install-\$(PLUGIN2)::" -i Makefile || die "cannot modify Makefile"
55 use quicksearch || sed -e "s:install-\$(PLUGIN4)::" -i Makefile || die "cannot modify Makefile"
57 vdr-plugin-2_src_prepare
59 fix_vdr_libsi_include conflictcheck.c
61 # install conf-file disabled
62 sed -e '/^Menu/s:^:#:' -i conf/epgsearchmenu.conf || die "cannot modify epgsearchmenu.conf"
64 # Get rid of the broken symlink
65 rm README || die "cannot remove broken symlink"
69 BUILD_PARAMS="SENDMAIL=/usr/bin/sendmail AUTOCONFIG=0"
72 BUILD_PARAMS+=" REGEXLIB=pcre"
73 einfo "Using pcre for regexp searches"
77 BUILD_PARAMS+=" REGEXLIB=tre"
78 einfo "Using tre for unlimited fuzzy searches"
81 vdr-plugin-2_src_compile
85 DOCS=( conf/*.templ HISTORY* README.Translators )
86 vdr-plugin-2_src_install
88 diropts -m 755 -o vdr -g vdr
89 insopts -m 644 -o vdr -g vdr
90 keepdir /etc/vdr/plugins/epgsearch
91 insinto /etc/vdr/plugins/epgsearch
97 doman -i18n=de man/de/*