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