1 |
commit: 4350b79c663e88bc4d1a27a93821bcce032fefdf |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 21 22:11:10 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 22 00:01:54 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4350b79c |
7 |
|
8 |
media-tv/mythtv: 0.28.1 version bump |
9 |
|
10 |
Cleanup whitespace |
11 |
Drop bogus subslots |
12 |
Set qmake path using qmake-utils |
13 |
Sort dependencies |
14 |
Sort IUSE |
15 |
Switch HOMEPAGE to https |
16 |
|
17 |
Thanks-to: Andreas Steinmetz <ast <AT> domdv.de> |
18 |
Gentoo-bug: 582218, 608996 |
19 |
|
20 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
21 |
|
22 |
media-tv/mythtv/Manifest | 1 + |
23 |
media-tv/mythtv/mythtv-0.28.1.ebuild | 362 +++++++++++++++++++++++++++++++++++ |
24 |
2 files changed, 363 insertions(+) |
25 |
|
26 |
diff --git a/media-tv/mythtv/Manifest b/media-tv/mythtv/Manifest |
27 |
index d6cf058bb27..292f59c4285 100644 |
28 |
--- a/media-tv/mythtv/Manifest |
29 |
+++ b/media-tv/mythtv/Manifest |
30 |
@@ -1,2 +1,3 @@ |
31 |
DIST mythtv-0.27.6_p20160318.tar.gz 85676387 SHA256 d0b8c03d95e082e87e0fab8656358e9f3991cd08b2ec5edcbb10a9a91b1e4162 SHA512 7e94d07b4f99a15b978b42d8be11f329a938842b02ad99c9628ab6dda2fa802ca7148c5db9e6f7fae40f44027f55e69f1cdb6879ee83400934025f18ac68468f WHIRLPOOL d0f040c1ecb35e5c526477134d756a67d978aeefbf478b624eaa16e4ca1639e3b8f038507052b7d05e3a18fb85fd4e1eaeeb1a185ccfdf0fb2255fdc657be6c1 |
32 |
+DIST mythtv-0.28.1.tar.gz 104477892 SHA256 73dd4de0de6fe5688c290781b76de6380b256a87159f2c6e3dad66870389da1f SHA512 67a81858cd19b90f519113b234119ecc248366d8545c862d887755f256cddf04d9ca16a7bf67f63e06f7628730e7dbde2a2099ca8aaeb9061b2e55a5a0b7d5e7 WHIRLPOOL 370f3a528438d50d302ab6adadba5089b32749f8127cbf270b85ef16d35ca15026e0947e292920a3dd6acf2ed65de68af8754d985944bd59f3310a42b03551de |
33 |
DIST mythtv-0.28.tar.gz 104364066 SHA256 9d640ab0551b300dab9b633f969efc6f1987f9bdedbef5997a44ddf97d863171 SHA512 7087fa69b89a7166ddfa96a5a65f48e0ee1858bc150376b2ac2309707b4d1fb9cc544d60b114227284fd0d4891eabded6edc31215fb8f11d1df304fe77ff8f85 WHIRLPOOL f593ab2c232c4f5361b3997d35ba631c845d0f12399a772fdfc296a9e120f5a03a7ba22dbe26b972c522f46a13907fc09b2619e84874cd952095b72df54d53e1 |
34 |
|
35 |
diff --git a/media-tv/mythtv/mythtv-0.28.1.ebuild b/media-tv/mythtv/mythtv-0.28.1.ebuild |
36 |
new file mode 100644 |
37 |
index 00000000000..3d443c2d3ea |
38 |
--- /dev/null |
39 |
+++ b/media-tv/mythtv/mythtv-0.28.1.ebuild |
40 |
@@ -0,0 +1,362 @@ |
41 |
+# Copyright 1999-2017 Gentoo Foundation |
42 |
+# Distributed under the terms of the GNU General Public License v2 |
43 |
+ |
44 |
+EAPI=5 |
45 |
+ |
46 |
+PYTHON_COMPAT=( python2_7 ) |
47 |
+ |
48 |
+# git diff --relative=mythtv v0.27.6.. > ~/mythtv-0.27.6/patches/mythtv.patch |
49 |
+BACKPORTS="03f44039848bd09444ff4baa8dc158bd61454079" |
50 |
+MY_P=${P%_p*} |
51 |
+MY_PV=${PV%_p*} |
52 |
+ |
53 |
+inherit flag-o-matic multilib eutils python-single-r1 qmake-utils user systemd vcs-snapshot |
54 |
+ |
55 |
+MYTHTV_BRANCH="fixes/0.28" |
56 |
+ |
57 |
+DESCRIPTION="Homebrew PVR project" |
58 |
+HOMEPAGE="https://www.mythtv.org" |
59 |
+SRC_URI="https://github.com/MythTV/mythtv/archive/${BACKPORTS}.tar.gz -> ${P}.tar.gz" |
60 |
+ |
61 |
+LICENSE="GPL-2" |
62 |
+KEYWORDS="~amd64 ~x86" |
63 |
+SLOT="0/${PV}" |
64 |
+ |
65 |
+IUSE_INPUT_DEVICES="input_devices_joystick" |
66 |
+IUSE="alsa altivec autostart bluray cec crystalhd debug dvb dvd egl fftw +hls \ |
67 |
+ieee1394 jack lcd libass lirc +mythlogserver perl pulseaudio python systemd +theora \ |
68 |
+vaapi vdpau +vorbis +wrapper +xml xmltv +xvid zeroconf ${IUSE_INPUT_DEVICES}" |
69 |
+ |
70 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
71 |
+ bluray? ( xml ) |
72 |
+ theora? ( vorbis )" |
73 |
+ |
74 |
+COMMON=" |
75 |
+ dev-libs/glib:2 |
76 |
+ dev-qt/qtcore:5 |
77 |
+ dev-qt/qtdbus:5 |
78 |
+ dev-qt/qtgui:5 |
79 |
+ dev-qt/qtnetwork:5 |
80 |
+ dev-qt/qtscript:5 |
81 |
+ dev-qt/qtsql:5[mysql] |
82 |
+ dev-qt/qtopengl:5 |
83 |
+ dev-qt/qtwebkit:5 |
84 |
+ dev-qt/qtwidgets:5 |
85 |
+ dev-qt/qtxml:5 |
86 |
+ media-gfx/exiv2:= |
87 |
+ media-libs/freetype:2 |
88 |
+ media-libs/taglib |
89 |
+ >=media-sound/lame-3.93.1 |
90 |
+ sys-libs/zlib |
91 |
+ virtual/mysql |
92 |
+ virtual/opengl |
93 |
+ x11-libs/libX11 |
94 |
+ x11-libs/libXext |
95 |
+ x11-libs/libXinerama |
96 |
+ x11-libs/libXv |
97 |
+ x11-libs/libXrandr |
98 |
+ x11-libs/libXxf86vm |
99 |
+ x11-misc/wmctrl |
100 |
+ alsa? ( >=media-libs/alsa-lib-1.0.24 ) |
101 |
+ bluray? ( |
102 |
+ dev-libs/libcdio:= |
103 |
+ media-libs/libbluray:= |
104 |
+ sys-fs/udisks:0 |
105 |
+ ) |
106 |
+ cec? ( dev-libs/libcec ) |
107 |
+ dvb? ( |
108 |
+ media-libs/libdvb |
109 |
+ virtual/linuxtv-dvb-headers |
110 |
+ ) |
111 |
+ dvd? ( |
112 |
+ dev-libs/libcdio:= |
113 |
+ sys-fs/udisks:0 |
114 |
+ ) |
115 |
+ egl? ( media-libs/mesa[egl] ) |
116 |
+ fftw? ( sci-libs/fftw:3.0= ) |
117 |
+ hls? ( |
118 |
+ media-libs/faac |
119 |
+ <media-libs/libvpx-1.7.0:= |
120 |
+ >=media-libs/x264-0.0.20111220:= |
121 |
+ ) |
122 |
+ ieee1394? ( |
123 |
+ >=media-libs/libiec61883-1.0.0 |
124 |
+ >=sys-libs/libavc1394-0.5.3 |
125 |
+ >=sys-libs/libraw1394-1.2.0 |
126 |
+ ) |
127 |
+ jack? ( media-sound/jack-audio-connection-kit ) |
128 |
+ lcd? ( app-misc/lcdproc ) |
129 |
+ libass? ( >=media-libs/libass-0.9.11:= ) |
130 |
+ lirc? ( app-misc/lirc ) |
131 |
+ perl? ( |
132 |
+ >=dev-perl/libwww-perl-5 |
133 |
+ dev-perl/DBD-mysql |
134 |
+ dev-perl/HTTP-Message |
135 |
+ dev-perl/IO-Socket-INET6 |
136 |
+ dev-perl/LWP-Protocol-https |
137 |
+ dev-perl/Net-UPnP |
138 |
+ ) |
139 |
+ pulseaudio? ( media-sound/pulseaudio ) |
140 |
+ python? ( |
141 |
+ ${PYTHON_DEPS} |
142 |
+ dev-python/lxml |
143 |
+ dev-python/mysql-python |
144 |
+ dev-python/urlgrabber |
145 |
+ ) |
146 |
+ systemd? ( sys-apps/systemd:= ) |
147 |
+ theora? ( media-libs/libtheora media-libs/libogg ) |
148 |
+ vaapi? ( x11-libs/libva[opengl] ) |
149 |
+ vdpau? ( x11-libs/libvdpau ) |
150 |
+ vorbis? ( >=media-libs/libvorbis-1.0 media-libs/libogg ) |
151 |
+ xml? ( >=dev-libs/libxml2-2.6.0 ) |
152 |
+ xvid? ( >=media-libs/xvid-1.1.0 ) |
153 |
+ zeroconf? ( |
154 |
+ dev-libs/openssl:0= |
155 |
+ net-dns/avahi[mdnsresponder-compat] |
156 |
+ ) |
157 |
+" |
158 |
+RDEPEND="${COMMON} |
159 |
+ !media-tv/mythtv-bindings |
160 |
+ !x11-themes/mythtv-themes |
161 |
+ media-fonts/corefonts |
162 |
+ media-fonts/dejavu |
163 |
+ media-fonts/liberation-fonts |
164 |
+ x11-apps/xinit |
165 |
+ autostart? ( |
166 |
+ net-dialup/mingetty |
167 |
+ x11-apps/xset |
168 |
+ x11-wm/evilwm |
169 |
+ ) |
170 |
+ dvd? ( media-libs/libdvdcss ) |
171 |
+ xmltv? ( >=media-tv/xmltv-0.5.43 ) |
172 |
+" |
173 |
+DEPEND="${COMMON} |
174 |
+ dev-lang/yasm |
175 |
+ x11-proto/xf86vidmodeproto |
176 |
+ x11-proto/xineramaproto |
177 |
+" |
178 |
+ |
179 |
+S="${WORKDIR}/${P}/mythtv" |
180 |
+ |
181 |
+MYTHTV_GROUPS="video,audio,tty,uucp" |
182 |
+ |
183 |
+pkg_setup() { |
184 |
+ python-single-r1_pkg_setup |
185 |
+ enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} |
186 |
+ usermod -a -G ${MYTHTV_GROUPS} mythtv |
187 |
+} |
188 |
+ |
189 |
+src_prepare() { |
190 |
+ # Perl bits need to go into vender_perl and not site_perl |
191 |
+ sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \ |
192 |
+ -i "${S}"/bindings/perl/Makefile |
193 |
+ |
194 |
+ # Fix up the version info since we are using the fixes/${PV} branch |
195 |
+ echo "SOURCE_VERSION=\"v${MY_PV}\"" > "${S}"/VERSION |
196 |
+ echo "BRANCH=\"${MYTHTV_BRANCH}\"" >> "${S}"/VERSION |
197 |
+ echo "SOURCE_VERSION=\"${BACKPORTS}\"" > "${S}"/EXPORTED_VERSION |
198 |
+ echo "BRANCH=\"${MYTHTV_BRANCH}\"" >> "${S}"/EXPORTED_VERSION |
199 |
+ |
200 |
+ echo "setting.extra -= -ldconfig" >> "${S}"/programs/mythfrontend/mythfrontend.pro |
201 |
+ |
202 |
+ epatch_user |
203 |
+} |
204 |
+ |
205 |
+src_configure() { |
206 |
+ local myconf= |
207 |
+ |
208 |
+ # Setup paths |
209 |
+ myconf="${myconf} --prefix=${EPREFIX}/usr" |
210 |
+ myconf="${myconf} --libdir=${EPREFIX}/usr/$(get_libdir)" |
211 |
+ myconf="${myconf} --libdir-name=$(get_libdir)" |
212 |
+ myconf="${myconf} --mandir=${EPREFIX}/usr/share/man" |
213 |
+ |
214 |
+ # Audio |
215 |
+ myconf="${myconf} $(use_enable alsa audio-alsa)" |
216 |
+ myconf="${myconf} $(use_enable jack audio-jack)" |
217 |
+ use pulseaudio || myconf="${myconf} --disable-audio-pulseoutput" |
218 |
+ |
219 |
+ use altivec || myconf="${myconf} --disable-altivec" |
220 |
+ myconf="${myconf} $(use_enable dvb)" |
221 |
+ myconf="${myconf} $(use_enable ieee1394 firewire)" |
222 |
+ myconf="${myconf} $(use_enable lirc)" |
223 |
+ myconf="${myconf} $(use_enable xvid libxvid)" |
224 |
+ myconf="${myconf} --dvb-path=/usr/include" |
225 |
+ myconf="${myconf} --enable-xrandr" |
226 |
+ myconf="${myconf} --enable-xv" |
227 |
+ myconf="${myconf} --enable-x11" |
228 |
+ myconf="${myconf} --enable-nonfree" |
229 |
+ myconf="${myconf} --enable-libmp3lame" |
230 |
+ use cec || myconf="${myconf} --disable-libcec" |
231 |
+ use zeroconf || myconf="${myconf} --disable-libdns-sd" |
232 |
+ myconf="${myconf} $(use_enable theora libtheora)" |
233 |
+ myconf="${myconf} $(use_enable vorbis libvorbis)" |
234 |
+ |
235 |
+ if use hls; then |
236 |
+ myconf="${myconf} --enable-libx264" |
237 |
+ myconf="${myconf} --enable-libvpx" |
238 |
+ myconf="${myconf} --enable-libfaac" |
239 |
+ fi |
240 |
+ |
241 |
+ myconf="${myconf} $(use_enable libass)" |
242 |
+ |
243 |
+ if use perl && use python; then |
244 |
+ myconf="${myconf} --with-bindings=perl,python" |
245 |
+ elif use perl; then |
246 |
+ myconf="${myconf} --without-bindings=python" |
247 |
+ myconf="${myconf} --with-bindings=perl" |
248 |
+ elif use python; then |
249 |
+ myconf="${myconf} --without-bindings=perl" |
250 |
+ myconf="${myconf} --with-bindings=python" |
251 |
+ else |
252 |
+ myconf="${myconf} --without-bindings=perl,python" |
253 |
+ fi |
254 |
+ |
255 |
+ use python && myconf="${myconf} --python=${EPYTHON}" |
256 |
+ |
257 |
+ if use debug; then |
258 |
+ myconf="${myconf} --compile-type=debug" |
259 |
+ else |
260 |
+ myconf="${myconf} --compile-type=release" |
261 |
+ #myconf="${myconf} --enable-debug" does nothing per sphery |
262 |
+ #myconf="${myconf} --disable-stripping" does nothing per sphery |
263 |
+ fi |
264 |
+ |
265 |
+ # Video |
266 |
+ myconf="${myconf} $(use_enable vdpau)" |
267 |
+ myconf="${myconf} $(use_enable vaapi)" |
268 |
+ myconf="${myconf} $(use_enable crystalhd)" |
269 |
+ |
270 |
+ # Input |
271 |
+ use input_devices_joystick || myconf="${myconf} --disable-joystick-menu" |
272 |
+ |
273 |
+ # Clean up DSO load times and other compiler bits |
274 |
+ myconf="${myconf} --enable-symbol-visibility" |
275 |
+ myconf="${myconf} --enable-pic" |
276 |
+ |
277 |
+ # CPU settings |
278 |
+ for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do |
279 |
+ [ "${i}" = "native" ] && i="host" |
280 |
+ myconf="${myconf} --cpu=${i}" |
281 |
+ break |
282 |
+ done |
283 |
+ |
284 |
+ if tc-is-cross-compiler ; then |
285 |
+ myconf="${myconf} --enable-cross-compile --arch=$(tc-arch-kernel)" |
286 |
+ myconf="${myconf} --cross-prefix=${CHOST}-" |
287 |
+ fi |
288 |
+ |
289 |
+ # Build boosters |
290 |
+ has distcc ${FEATURES} || myconf="${myconf} --disable-distcc" |
291 |
+ has ccache ${FEATURES} || myconf="${myconf} --disable-ccache" |
292 |
+ |
293 |
+ myconf="${myconf} $(use_enable systemd systemd_notify)" |
294 |
+ use systemd || myconf="${myconf} $(use_enable mythlogserver)" |
295 |
+ |
296 |
+ chmod +x ./external/FFmpeg/version.sh |
297 |
+ |
298 |
+ einfo "Running ./configure ${myconf}" |
299 |
+ ./configure \ |
300 |
+ --cc="$(tc-getCC)" \ |
301 |
+ --cxx="$(tc-getCXX)" \ |
302 |
+ --ar="$(tc-getAR)" \ |
303 |
+ --extra-cflags="${CFLAGS}" \ |
304 |
+ --extra-cxxflags="${CXXFLAGS}" \ |
305 |
+ --extra-ldflags="${LDFLAGS}" \ |
306 |
+ --qmake=$(qt5_get_bindir)/qmake \ |
307 |
+ ${myconf} || die "configure died" |
308 |
+} |
309 |
+ |
310 |
+src_install() { |
311 |
+ emake INSTALL_ROOT="${D}" install || die "install failed" |
312 |
+ dodoc AUTHORS UPGRADING README |
313 |
+ |
314 |
+ insinto /usr/share/mythtv/database |
315 |
+ doins database/* |
316 |
+ |
317 |
+ newinitd "${FILESDIR}"/mythbackend.init-r2 mythbackend |
318 |
+ newconfd "${FILESDIR}"/mythbackend.conf-r1 mythbackend |
319 |
+ systemd_newunit "${FILESDIR}"/mythbackend.service-28 mythbackend.service |
320 |
+ |
321 |
+ dodoc keys.txt |
322 |
+ |
323 |
+ keepdir /etc/mythtv |
324 |
+ chown -R mythtv "${ED}"/etc/mythtv |
325 |
+ keepdir /var/log/mythtv |
326 |
+ chown -R mythtv "${ED}"/var/log/mythtv |
327 |
+ dodir /var/log/mythtv/old |
328 |
+ |
329 |
+ insinto /etc/logrotate.d |
330 |
+ newins "${FILESDIR}"/mythtv.logrotate.d-r4 mythtv |
331 |
+ |
332 |
+ insinto /usr/share/mythtv/contrib |
333 |
+ # Ensure we don't install scripts needing the perl bindings (bug #516968) |
334 |
+ use perl || find contrib/ -name '*.pl' -exec rm -f {} \; |
335 |
+ # Ensure we don't install scripts needing the python bindings (bug #516968) |
336 |
+ use python || find contrib/ -name '*.py' -exec rm -f {} \; |
337 |
+ doins -r contrib/* |
338 |
+ |
339 |
+ # Install our mythfrontend wrapper which is similar to Mythbuntu's |
340 |
+ if use wrapper; then |
341 |
+ mv "${ED}/usr/bin/mythfrontend" "${ED}/usr/bin/mythfrontend.real" |
342 |
+ newbin "${FILESDIR}"/mythfrontend.wrapper mythfrontend |
343 |
+ newconfd "${FILESDIR}"/mythfrontend.conf mythfrontend |
344 |
+ fi |
345 |
+ |
346 |
+ if use autostart; then |
347 |
+ dodir /etc/env.d/ |
348 |
+ echo 'CONFIG_PROTECT="/home/mythtv/"' > "${ED}"/etc/env.d/95mythtv |
349 |
+ |
350 |
+ insinto /home/mythtv |
351 |
+ newins "${FILESDIR}"/bash_profile .bash_profile |
352 |
+ newins "${FILESDIR}"/xinitrc-r1 .xinitrc |
353 |
+ fi |
354 |
+ |
355 |
+ # Make Python files executable |
356 |
+ find "${ED}/usr/share/mythtv" -type f -name '*.py' | while read file; do |
357 |
+ if [[ ! "${file##*/}" = "__init__.py" ]]; then |
358 |
+ chmod a+x "${file}" |
359 |
+ fi |
360 |
+ done |
361 |
+ |
362 |
+ # Ensure that Python scripts are executed by Python 2 |
363 |
+ python_fix_shebang "${ED}/usr/share/mythtv" |
364 |
+ |
365 |
+ # Make shell & perl scripts executable |
366 |
+ find "${ED}" -type f -name '*.sh' -o -type f -name '*.pl' | \ |
367 |
+ while read file; do |
368 |
+ chmod a+x "${file}" |
369 |
+ done |
370 |
+} |
371 |
+ |
372 |
+pkg_preinst() { |
373 |
+ export CONFIG_PROTECT="${CONFIG_PROTECT} ${EROOT}/home/mythtv/" |
374 |
+} |
375 |
+ |
376 |
+pkg_postinst() { |
377 |
+ elog "To have this machine operate as recording host for MythTV, " |
378 |
+ elog "mythbackend must be running. Run the following:" |
379 |
+ elog "rc-update add mythbackend default" |
380 |
+ elog |
381 |
+ elog "Your recordings folder must be owned 'mythtv'. e.g." |
382 |
+ elog "chown -R mythtv /var/lib/mythtv" |
383 |
+ |
384 |
+ elog "Want mythfrontend to start automatically?" |
385 |
+ elog "Set USE=autostart. Details can be found at:" |
386 |
+ elog "https://dev.gentoo.org/~cardoe/mythtv/autostart.html" |
387 |
+ elog |
388 |
+ elog "Note that the systemd unit now restarts by default and logs" |
389 |
+ elog "to journald via the console at the notice verbosity." |
390 |
+} |
391 |
+ |
392 |
+pkg_info() { |
393 |
+ if [[ -f "${EROOT}"/usr/bin/mythfrontend ]]; then |
394 |
+ "${EROOT}"/usr/bin/mythfrontend --version |
395 |
+ fi |
396 |
+} |
397 |
+ |
398 |
+pkg_config() { |
399 |
+ echo "Creating mythtv MySQL user and mythconverg database if it does not" |
400 |
+ echo "already exist. You will be prompted for your MySQL root password." |
401 |
+ "${EROOT}"/usr/bin/mysql -u root -p < "${EROOT}"/usr/share/mythtv/database/mc.sql |
402 |
+} |