Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-tv/tvheadend/
Date: Thu, 11 Feb 2021 23:10:37
Message-Id: 1613084975.cc7ba3931f2eb4cd30a0bfc283e41d180859422e.chewi@gentoo
1 commit: cc7ba3931f2eb4cd30a0bfc283e41d180859422e
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 11 23:09:35 2021 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 11 23:09:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc7ba393
7
8 media-tv/tvheadend: Use python-any-r1 eclass
9
10 Closes: https://bugs.gentoo.org/770112
11 Package-Manager: Portage-3.0.14, Repoman-3.0.2
12 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
13
14 media-tv/tvheadend/tvheadend-4.2.8-r1.ebuild | 21 +++++++++++++++------
15 media-tv/tvheadend/tvheadend-9999.ebuild | 21 +++++++++++++++------
16 2 files changed, 30 insertions(+), 12 deletions(-)
17
18 diff --git a/media-tv/tvheadend/tvheadend-4.2.8-r1.ebuild b/media-tv/tvheadend/tvheadend-4.2.8-r1.ebuild
19 index 17189591cf0..c0805930fb4 100644
20 --- a/media-tv/tvheadend/tvheadend-4.2.8-r1.ebuild
21 +++ b/media-tv/tvheadend/tvheadend-4.2.8-r1.ebuild
22 @@ -1,9 +1,11 @@
23 -# Copyright 1999-2020 Gentoo Authors
24 +# Copyright 1999-2021 Gentoo Authors
25 # Distributed under the terms of the GNU General Public License v2
26
27 EAPI=7
28
29 -inherit linux-info systemd toolchain-funcs
30 +PYTHON_COMPAT=( python3_{8,9} )
31 +
32 +inherit linux-info python-any-r1 systemd toolchain-funcs
33
34 DESCRIPTION="Tvheadend is a TV streaming server and digital video recorder"
35 HOMEPAGE="https://tvheadend.org/"
36 @@ -16,8 +18,10 @@ KEYWORDS="~amd64 ~arm ~arm64 ~x86"
37 IUSE="+capmt +constcw +cwc dbus debug dvbcsa dvben50221 +dvb +ffmpeg hdhomerun +imagecache +inotify iptv libressl satip systemd +timeshift uriparser xmltv zeroconf zlib"
38
39 BDEPEND="
40 + ${PYTHON_DEPS}
41 sys-devel/gettext
42 - virtual/pkgconfig"
43 + virtual/pkgconfig
44 +"
45
46 RDEPEND="
47 acct-user/tvheadend
48 @@ -31,15 +35,18 @@ RDEPEND="
49 libressl? ( dev-libs/libressl:= )
50 uriparser? ( dev-libs/uriparser )
51 zeroconf? ( net-dns/avahi )
52 - zlib? ( sys-libs/zlib )"
53 + zlib? ( sys-libs/zlib )
54 +"
55
56 DEPEND="
57 ${RDEPEND}
58 - dvb? ( virtual/linuxtv-dvb-headers )"
59 + dvb? ( virtual/linuxtv-dvb-headers )
60 +"
61
62 RDEPEND+="
63 dvb? ( media-tv/dtv-scan-tables )
64 - xmltv? ( media-tv/xmltv )"
65 + xmltv? ( media-tv/xmltv )
66 +"
67
68 REQUIRED_USE="dvbcsa? ( || ( capmt constcw cwc dvben50221 ) )"
69
70 @@ -59,6 +66,8 @@ PATCHES=(
71 DOCS=( README.md )
72
73 pkg_setup() {
74 + python-any-r1_pkg_setup
75 +
76 use inotify &&
77 CONFIG_CHECK="~INOTIFY_USER" linux-info_pkg_setup
78 }
79
80 diff --git a/media-tv/tvheadend/tvheadend-9999.ebuild b/media-tv/tvheadend/tvheadend-9999.ebuild
81 index ddd46284395..eb1fefae461 100644
82 --- a/media-tv/tvheadend/tvheadend-9999.ebuild
83 +++ b/media-tv/tvheadend/tvheadend-9999.ebuild
84 @@ -1,9 +1,11 @@
85 -# Copyright 1999-2020 Gentoo Authors
86 +# Copyright 1999-2021 Gentoo Authors
87 # Distributed under the terms of the GNU General Public License v2
88
89 EAPI=7
90
91 -inherit git-r3 linux-info systemd toolchain-funcs
92 +PYTHON_COMPAT=( python3_{8,9} )
93 +
94 +inherit git-r3 linux-info python-any-r1 systemd toolchain-funcs
95
96 DESCRIPTION="Tvheadend is a TV streaming server and digital video recorder"
97 HOMEPAGE="https://tvheadend.org/"
98 @@ -16,8 +18,10 @@ KEYWORDS=""
99 IUSE="dbus debug +ddci dvbcsa +dvb +ffmpeg hdhomerun +imagecache +inotify iptv libressl opus satip systemd +timeshift uriparser vpx x264 x265 xmltv zeroconf zlib"
100
101 BDEPEND="
102 + ${PYTHON_DEPS}
103 sys-devel/gettext
104 - virtual/pkgconfig"
105 + virtual/pkgconfig
106 +"
107
108 RDEPEND="
109 acct-user/tvheadend
110 @@ -30,7 +34,8 @@ RDEPEND="
111 libressl? ( dev-libs/libressl:= )
112 uriparser? ( dev-libs/uriparser )
113 zeroconf? ( net-dns/avahi )
114 - zlib? ( sys-libs/zlib )"
115 + zlib? ( sys-libs/zlib )
116 +"
117
118 # ffmpeg sub-dependencies needed for headers only. Check under
119 # src/transcoding/codec/codecs/libs for include statements.
120 @@ -43,11 +48,13 @@ DEPEND="
121 vpx? ( media-libs/libvpx )
122 x264? ( media-libs/x264 )
123 x265? ( media-libs/x265 )
124 - )"
125 + )
126 +"
127
128 RDEPEND+="
129 dvb? ( media-tv/dtv-scan-tables )
130 - xmltv? ( media-tv/xmltv )"
131 + xmltv? ( media-tv/xmltv )
132 +"
133
134 REQUIRED_USE="
135 ddci? ( dvb )
136 @@ -66,6 +73,8 @@ PATCHES=(
137 DOCS=( README.md )
138
139 pkg_setup() {
140 + python-any-r1_pkg_setup
141 +
142 use inotify &&
143 CONFIG_CHECK="~INOTIFY_USER" linux-info_pkg_setup
144 }