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