Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/vdr-epgsearch/
Date: Sat, 27 Feb 2021 18:49:07
Message-Id: 1614451734.2d2b3017b0c6c93e17967e82369090e9f0d889b2.juippis@gentoo
1 commit: 2d2b3017b0c6c93e17967e82369090e9f0d889b2
2 Author: Martin Dummer <martin.dummer <AT> gmx <DOT> net>
3 AuthorDate: Sat Feb 27 13:34:49 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 18:48:54 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d2b3017
7
8 media-plugins/vdr-epgsearch: fix for 2.4.0_p20200402-r1
9
10 the useflag logic is wrong since commit 290ec0e38b, fix this here
11 fix sendmail path
12
13 Package-Manager: Portage-3.0.13, Repoman-3.0.2
14 Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net>
15 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
16
17 .../vdr-epgsearch-2.4.0_p20200402-r1.ebuild | 96 ++++++++++++++++++++++
18 1 file changed, 96 insertions(+)
19
20 diff --git a/media-plugins/vdr-epgsearch/vdr-epgsearch-2.4.0_p20200402-r1.ebuild b/media-plugins/vdr-epgsearch/vdr-epgsearch-2.4.0_p20200402-r1.ebuild
21 new file mode 100644
22 index 00000000000..cf329742380
23 --- /dev/null
24 +++ b/media-plugins/vdr-epgsearch/vdr-epgsearch-2.4.0_p20200402-r1.ebuild
25 @@ -0,0 +1,96 @@
26 +# Copyright 2021 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=7
30 +
31 +inherit vdr-plugin-2
32 +
33 +DESCRIPTION="VDR plugin: create timers from epg content based on saved search expressions"
34 +HOMEPAGE="http://winni.vdr-developer.org/epgsearch/index_eng.html"
35 +GIT_COMMIT_ID="d8cff1a251ef2b54f1de3f8e6ea55a838eeb73c3"
36 +SRC_URI="https://projects.vdr-developer.org/git/vdr-plugin-epgsearch.git/snapshot/vdr-plugin-epgsearch-${GIT_COMMIT_ID}.tar.gz -> ${P}.tar.gz"
37 +
38 +LICENSE="GPL-2+"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~x86"
41 +IUSE="conflictcheckonly epgsearchonly pcre quicksearch tre"
42 +REQUIRED_USE="?? ( pcre tre )"
43 +
44 +DEPEND="
45 + >=media-video/vdr-2.4
46 + pcre? ( dev-libs/libpcre )
47 + tre? ( dev-libs/tre )"
48 +RDEPEND="${DEPEND}"
49 +BDEPEND="
50 + sys-apps/groff
51 + dev-lang/perl"
52 +
53 +PATCHES=(
54 + "${FILESDIR}/${PN}-2.4.0_makefile.patch"
55 + "${FILESDIR}/${PN}-2.4.0_docsrc2man-no-gzip.patch"
56 + "${FILESDIR}/${P}_clang.patch"
57 +)
58 +
59 +QA_FLAGS_IGNORED="
60 + usr/lib/vdr/plugins/libvdr-.*
61 + usr/lib64/vdr/plugins/libvdr-.*
62 + usr/bin/createcats"
63 +S="${WORKDIR}/vdr-plugin-epgsearch-${GIT_COMMIT_ID}"
64 +
65 +src_prepare() {
66 + # remove untranslated .po files
67 + 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 \
68 + || die "cannot remove untranslated .po files"
69 +
70 + if ! use conflictcheckonly; then
71 + sed -e "s:install-\$(PLUGIN3)::" -i Makefile || die "cannot modify Makefile"
72 + fi
73 +
74 + if ! use epgsearchonly; then
75 + sed -e "s:install-\$(PLUGIN2)::" -i Makefile || die "cannot modify Makefile"
76 + fi
77 +
78 + if ! use quicksearch; then
79 + sed -e "s:install-\$(PLUGIN4)::" -i Makefile || die "cannot modify Makefile"
80 + fi
81 +
82 + vdr-plugin-2_src_prepare
83 +
84 + fix_vdr_libsi_include conflictcheck.c
85 +
86 + # install conf-file disabled
87 + sed -e '/^Menu/s:^:#:' -i conf/epgsearchmenu.conf || die "cannot modify epgsearchmenu.conf"
88 +
89 + # Get rid of the broken symlink
90 + rm README || die "cannot remove broken symlink"
91 +}
92 +
93 +src_compile() {
94 + BUILD_PARAMS="SENDMAIL=/usr/sbin/sendmail AUTOCONFIG=0"
95 +
96 + if use pcre; then
97 + BUILD_PARAMS+=" REGEXLIB=pcre"
98 + einfo "Using pcre for regexp searches"
99 + fi
100 +
101 + if use tre; then
102 + BUILD_PARAMS+=" REGEXLIB=tre"
103 + einfo "Using tre for unlimited fuzzy searches"
104 + fi
105 +
106 + vdr-plugin-2_src_compile
107 +}
108 +
109 +src_install() {
110 + local DOCS=( conf/*.templ HISTORY* README.Translators )
111 + vdr-plugin-2_src_install
112 +
113 + diropts -m 755 -o vdr -g vdr
114 + insopts -m 644 -o vdr -g vdr
115 + keepdir /etc/vdr/plugins/epgsearch
116 + insinto /etc/vdr/plugins/epgsearch
117 + doins conf/*
118 +
119 + doman man/en/*
120 + doman -i18n=de man/de/*
121 +}