1 |
commit: fd6a0cb16a2d9dd2a03b27803310e20e1c8d6dcb |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 4 16:33:55 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 4 16:34:03 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd6a0cb1 |
7 |
|
8 |
media-tv/mythtv: Drop obsolete 31.0-r1 |
9 |
|
10 |
Package-Manager: Portage-3.0.5, Repoman-3.0.1 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
media-tv/mythtv/mythtv-31.0-r1.ebuild | 436 ---------------------------------- |
14 |
1 file changed, 436 deletions(-) |
15 |
|
16 |
diff --git a/media-tv/mythtv/mythtv-31.0-r1.ebuild b/media-tv/mythtv/mythtv-31.0-r1.ebuild |
17 |
deleted file mode 100644 |
18 |
index caa46bd6d11..00000000000 |
19 |
--- a/media-tv/mythtv/mythtv-31.0-r1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,436 +0,0 @@ |
22 |
-# Copyright 1999-2020 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-PYTHON_COMPAT=( python3_{6,7} ) |
28 |
- |
29 |
-MY_P=${P%_p*} |
30 |
-MY_PV=${PV%_p*} |
31 |
- |
32 |
-inherit eutils flag-o-matic python-any-r1 qmake-utils readme.gentoo-r1 systemd user-info |
33 |
- |
34 |
-MYTHTV_BRANCH="fixes/${P%.*}" |
35 |
- |
36 |
-DESCRIPTION="Open Source DVR and media center hub" |
37 |
-HOMEPAGE="https://www.mythtv.org https://github.com/MythTV/mythtv" |
38 |
-SRC_URI="https://github.com/MythTV/mythtv/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
39 |
- |
40 |
-LICENSE="GPL-2+" |
41 |
-KEYWORDS="~amd64 ~x86" |
42 |
-SLOT="0" |
43 |
- |
44 |
-IUSE_INPUT_DEVICES="input_devices_joystick" |
45 |
-IUSE_VIDEO_CAPTURE_DEVICES="v4l ivtv ieee1394 hdpvr hdhomerun vbox ceton" |
46 |
-IUSE="alsa altivec asi autostart bluray cdda cdr cec debug dvd dvb egl exif fftw jack java |
47 |
- +lame lcd libass lirc nvdec +opengl oss perl pulseaudio python raw systemd vaapi vdpau vpx |
48 |
- +wrapper x264 x265 +xml xmltv +xvid +X zeroconf |
49 |
- ${IUSE_INPUT_DEVICES} ${IUSE_VIDEO_CAPTURE_DEVICES}" |
50 |
- |
51 |
-REQUIRED_USE=" |
52 |
- bluray? ( xml ) |
53 |
- cdr? ( cdda ) |
54 |
-" |
55 |
-RDEPEND=" |
56 |
- acct-user/mythtv |
57 |
- dev-libs/glib:2 |
58 |
- dev-libs/lzo |
59 |
- dev-qt/qtcore:5 |
60 |
- dev-qt/qtdbus:5 |
61 |
- dev-qt/qtgui:5 |
62 |
- dev-qt/qtnetwork:5 |
63 |
- dev-qt/qtscript:5 |
64 |
- dev-qt/qtsql:5[mysql] |
65 |
- dev-qt/qtwidgets:5 |
66 |
- dev-qt/qtxml:5 |
67 |
- media-fonts/corefonts |
68 |
- media-fonts/dejavu |
69 |
- media-fonts/liberation-fonts |
70 |
- media-fonts/tex-gyre |
71 |
- media-gfx/exiv2:= |
72 |
- media-libs/freetype:2 |
73 |
- media-libs/libsamplerate |
74 |
- media-libs/taglib |
75 |
- sys-libs/zlib |
76 |
- alsa? ( media-libs/alsa-lib ) |
77 |
- autostart? ( |
78 |
- net-dialup/mingetty |
79 |
- x11-apps/xset |
80 |
- x11-wm/evilwm |
81 |
- ) |
82 |
- bluray? ( |
83 |
- dev-libs/libcdio:= |
84 |
- media-libs/libbluray:=[java?] |
85 |
- sys-fs/udisks:2 |
86 |
- ) |
87 |
- cec? ( dev-libs/libcec ) |
88 |
- dvd? ( |
89 |
- dev-libs/libcdio:= |
90 |
- media-libs/libdvdcss |
91 |
- sys-fs/udisks:2 |
92 |
- ) |
93 |
- egl? ( media-libs/mesa[egl] ) |
94 |
- fftw? ( sci-libs/fftw:3.0=[threads] ) |
95 |
- hdhomerun? ( media-libs/libhdhomerun ) |
96 |
- ieee1394? ( |
97 |
- media-libs/libiec61883 |
98 |
- sys-libs/libavc1394 |
99 |
- sys-libs/libraw1394 |
100 |
- ) |
101 |
- jack? ( media-sound/jack-audio-connection-kit ) |
102 |
- java? ( dev-java/ant-core ) |
103 |
- lame? ( media-sound/lame ) |
104 |
- lcd? ( app-misc/lcdproc ) |
105 |
- libass? ( media-libs/libass:= ) |
106 |
- lirc? ( app-misc/lirc ) |
107 |
- nvdec? ( x11-drivers/nvidia-drivers ) |
108 |
- opengl? ( dev-qt/qtopengl:5 ) |
109 |
- pulseaudio? ( media-sound/pulseaudio ) |
110 |
- systemd? ( sys-apps/systemd:= ) |
111 |
- vaapi? ( x11-libs/libva:=[opengl] ) |
112 |
- vdpau? ( x11-libs/libvdpau ) |
113 |
- vpx? ( media-libs/libvpx:= ) |
114 |
- x264? ( media-libs/x264:= ) |
115 |
- X? ( |
116 |
- x11-apps/xinit |
117 |
- x11-libs/libX11:= |
118 |
- x11-libs/libXext:= |
119 |
- x11-libs/libXinerama:= |
120 |
- x11-libs/libXrandr:= |
121 |
- x11-libs/libXv:= |
122 |
- x11-libs/libXxf86vm:= |
123 |
- x11-misc/wmctrl:= |
124 |
- ) |
125 |
- x265? ( media-libs/x265 ) |
126 |
- xml? ( dev-libs/libxml2:2 ) |
127 |
- xmltv? ( |
128 |
- dev-perl/XML-LibXML |
129 |
- dev-qt/qtwebkit:5 |
130 |
- media-tv/xmltv |
131 |
- ) |
132 |
- xvid? ( media-libs/xvid ) |
133 |
- zeroconf? ( |
134 |
- dev-libs/openssl:= |
135 |
- net-dns/avahi[mdnsresponder-compat] |
136 |
- ) |
137 |
-" |
138 |
-BDEPEND=" |
139 |
- virtual/pkgconfig |
140 |
- opengl? ( virtual/opengl ) |
141 |
- python? ( ${PYTHON_DEPS} ) |
142 |
-" |
143 |
-DEPEND=" |
144 |
- ${RDEPEND} |
145 |
- dev-lang/yasm |
146 |
- x11-base/xorg-proto |
147 |
- perl? ( |
148 |
- dev-perl/DBD-mysql |
149 |
- dev-perl/DBI |
150 |
- dev-perl/HTTP-Message |
151 |
- dev-perl/IO-Socket-INET6 |
152 |
- dev-perl/LWP-Protocol-https |
153 |
- dev-perl/Net-UPnP |
154 |
- dev-perl/XML-Simple |
155 |
- ) |
156 |
- python? ( |
157 |
- $(python_gen_any_dep ' |
158 |
- dev-python/future[${PYTHON_USEDEP}] |
159 |
- dev-python/lxml[${PYTHON_USEDEP}] |
160 |
- dev-python/mysqlclient[${PYTHON_USEDEP}] |
161 |
- dev-python/simplejson[${PYTHON_USEDEP}] |
162 |
- ') |
163 |
- ) |
164 |
-" |
165 |
-python_check_deps() { |
166 |
- use python || return 0 |
167 |
- has_version "dev-python/future[${PYTHON_USEDEP}]" && |
168 |
- has_version "dev-python/lxml[${PYTHON_USEDEP}]" && |
169 |
- has_version "dev-python/mysqlclient[${PYTHON_USEDEP}]" && |
170 |
- has_version "dev-python/simplejson[${PYTHON_USEDEP}]" |
171 |
-} |
172 |
- |
173 |
-PATCHES=( |
174 |
- "${FILESDIR}/${PN}-30.0_p20190808-respect_LDFLAGS.patch" |
175 |
- "${FILESDIR}/${P}-Remove_ldconfig.patch" |
176 |
- "${FILESDIR}/${P}-Include_QPainterPath.patch" |
177 |
-) |
178 |
- |
179 |
-# mythtv and mythplugins are separate builds in the github mythtv project |
180 |
-S="${WORKDIR}/${P}/mythtv" |
181 |
- |
182 |
-DISABLE_AUTOFORMATTING="yes" |
183 |
-DOC_CONTENTS=" |
184 |
-If a MYSQL server is installed, a mythtv MySQL user and mythconverg database |
185 |
-is created if it does not already exist. |
186 |
-You will be prompted for your MySQL root password. |
187 |
- |
188 |
-A mythtv user is maintained by acct-user/mythtv. An existing mythtv user |
189 |
-may be modified to the configuration defined by acct-user/mythtv. |
190 |
-The mythtv user's primary group is now mythtv. (formerly video) |
191 |
-An existing mythtv user may be changed which may alter some functionality. |
192 |
-If it breaks mythtv you may need to (choose one): |
193 |
- * Restore the original mythtv user |
194 |
- * Create custom acct-user/mythtv overlay for your system |
195 |
- * Fix you system to use mythtv as daemon only (recommended) |
196 |
-Failure to emerge acct-user/mythtv indicates that the existing mythtv user |
197 |
-is customized and not changed. Corrective action (choose one): |
198 |
- * Ignore emerge failure |
199 |
- * Create custom acct-user/mythtv overlay for your system |
200 |
- * Fix you system to use mythtv as daemon only |
201 |
- * Delete existing user and try again (dangerous) |
202 |
- |
203 |
-Mythtv is updated to use correct FHS/Gentoo policy paths. |
204 |
-Updating mythtv installations may report: |
205 |
- * mythtv is in use, cannot update home |
206 |
- * There was an error when attempting to update the home directory for mythtv |
207 |
- * Please update it manually on your system (as root): |
208 |
- * usermod -d "/var/lib/mythtv" "mythtv" |
209 |
-This can be ignored. The previous default was "/home/mythtv". |
210 |
-Use caution if you change the home directory. |
211 |
- |
212 |
-To have this machine operate as recording host for MythTV, |
213 |
-mythbackend must be running. Run the following: |
214 |
-rc-update add mythbackend default |
215 |
- |
216 |
-Your recordings folder must be owned 'mythtv'. e.g. |
217 |
-chown -R mythtv /var/lib/mythtv |
218 |
- |
219 |
-Want mythfrontend to start automatically? |
220 |
-Set USE=autostart. Details can be found at: |
221 |
-https://dev.gentoo.org/~cardoe/mythtv/autostart.html |
222 |
- |
223 |
-Note that the systemd unit now restarts by default and logs |
224 |
-to journald via the console at the notice verbosity. |
225 |
-" |
226 |
- |
227 |
-pkg_setup() { |
228 |
- use python && python-any-r1_pkg_setup |
229 |
- # The acct-user/mythtv package creates/manages the user 'mythtv' |
230 |
-} |
231 |
- |
232 |
-src_prepare() { |
233 |
- default |
234 |
- |
235 |
- # Perl bits need to go into vender_perl and not site_perl |
236 |
- sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \ |
237 |
- -i "${S}"/bindings/perl/Makefile || die "Cannot convert site_perl to vendor_perl!" |
238 |
- |
239 |
- # Fix up the version info when using the fixes/${PV} branch |
240 |
-# echo "SOURCE_VERSION=\"v${MY_PV}\"" > "${S}"/VERSION |
241 |
-# echo "BRANCH=\"${MYTHTV_BRANCH}\"" >> "${S}"/VERSION |
242 |
-# echo "SOURCE_VERSION=\"${BACKPORTS}\"" > "${S}"/EXPORTED_VERSION |
243 |
-# echo "BRANCH=\"${MYTHTV_BRANCH}\"" >> "${S}"/EXPORTED_VERSION |
244 |
-} |
245 |
- |
246 |
-src_configure() { |
247 |
- local -a myconf |
248 |
- |
249 |
- # Setup paths |
250 |
- myconf+=(--prefix="${EPREFIX}"/usr) |
251 |
- myconf+=(--libdir="${EPREFIX}"/usr/$(get_libdir)) |
252 |
- myconf+=(--libdir-name=$(get_libdir)) |
253 |
- myconf+=(--mandir="${EPREFIX}"/usr/share/man) |
254 |
- |
255 |
- if use debug; then |
256 |
- myconf+=(--compile-type=debug) |
257 |
- myconf+=(--disable-stripping) # FIXME: does not disable for all files, only for some |
258 |
- myconf+=(--enable-valgrind) # disables timeouts for valgrind memory debugging |
259 |
- else |
260 |
- myconf+=(--compile-type=release) |
261 |
- fi |
262 |
- |
263 |
- # Build boosters |
264 |
- has ccache "${FEATURES}" || myconf+=(--disable-ccache) |
265 |
- has distcc "${FEATURES}" || myconf+=(--disable-distcc) |
266 |
- |
267 |
- # CPU settings |
268 |
- # Mythtv's configure is borrowed from ffmpeg, |
269 |
- # Bug #172723 |
270 |
- # Try to get cpu type based on CFLAGS. |
271 |
- # We need to do this so that features of that CPU will be better used |
272 |
- # If they contain an unknown CPU it will not hurt since ffmpeg's configure |
273 |
- # will just ignore it. |
274 |
- for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do |
275 |
- [ "${i}" = "native" ] && i="host" # bug #273421 |
276 |
- myconf+=(--cpu="${i}") |
277 |
- break |
278 |
- done |
279 |
- myconf+=($(use_enable altivec)) |
280 |
- |
281 |
- # Sound Output Support |
282 |
- myconf+=( |
283 |
- $(use_enable oss audio-oss) |
284 |
- $(use_enable alsa audio-alsa) |
285 |
- $(use_enable jack audio-jack) |
286 |
- $(use_enable pulseaudio audio-pulseoutput) |
287 |
- ) |
288 |
- |
289 |
- # Input Support |
290 |
- myconf+=( |
291 |
- $(use_enable lirc) |
292 |
- $(use_enable input_devices_joystick joystick-menu) |
293 |
- $(use_enable cec libcec) |
294 |
- $(use_enable ieee1394 firewire) |
295 |
- $(use_enable hdhomerun) |
296 |
- $(use_enable vbox) |
297 |
- $(use_enable ceton) |
298 |
- $(use_enable v4l v4l2) |
299 |
- $(use_enable ivtv) |
300 |
- $(use_enable hdpvr) |
301 |
- $(use_enable dvb) |
302 |
- $(use_enable asi) |
303 |
- ) |
304 |
- |
305 |
- # Video Output Support |
306 |
- myconf+=( |
307 |
- $(use_enable X x11) |
308 |
- $(use_enable X xrandr) |
309 |
- ) |
310 |
- |
311 |
- # Hardware accellerators |
312 |
- myconf+=( |
313 |
- $(use_enable nvdec) |
314 |
- $(use_enable vaapi) |
315 |
- $(use_enable vdpau) |
316 |
- $(use_enable opengl) |
317 |
- $(use_enable libass) |
318 |
- ) |
319 |
- |
320 |
- # System tools |
321 |
- myconf+=( |
322 |
- $(use_enable systemd systemd_notify) |
323 |
- $(use_enable systemd systemd_journal) |
324 |
- $(use_enable xml libxml2) |
325 |
- $(use_enable zeroconf libdns-sd) |
326 |
- ) |
327 |
- |
328 |
- # Bindings |
329 |
- if use perl && use python; then |
330 |
- myconf+=(--with-bindings=perl,python) |
331 |
- elif use perl; then |
332 |
- myconf+=(--without-bindings=python) |
333 |
- myconf+=(--with-bindings=perl) |
334 |
- elif use python; then |
335 |
- myconf+=(--without-bindings=perl) |
336 |
- myconf+=(--with-bindings=python) |
337 |
- else |
338 |
- myconf+=(--without-bindings=perl,python) |
339 |
- fi |
340 |
- use python && myconf+=(--python="${EPYTHON}") |
341 |
- myconf+=($(use_enable java bdjava)) |
342 |
- |
343 |
- # External codec library options (used for mythffmpeg and streaming transcode) |
344 |
- # lame is required for some broadcasts for silence detection of commercials |
345 |
- # default enable in IUSE with +lame |
346 |
- myconf+=( |
347 |
- $(use_enable lame libmp3lame) |
348 |
- $(use_enable xvid libxvid) |
349 |
- $(use_enable x264 libx264) |
350 |
- $(use_enable x265 libx265) |
351 |
- $(use_enable vpx libvpx) |
352 |
- ) |
353 |
- |
354 |
- # Clean up DSO load times and other compiler bits |
355 |
- myconf+=(--enable-symbol-visibility) |
356 |
- myconf+=(--enable-pic) |
357 |
- |
358 |
- if tc-is-cross-compiler ; then |
359 |
- myconf+=(--enable-cross-compile --arch=$(tc-arch-kernel)) |
360 |
- myconf+=(--cross-prefix="${CHOST}"-) |
361 |
- fi |
362 |
- |
363 |
- myconf+=($(use_enable bluray libbluray_external)) |
364 |
- |
365 |
- # econf sets these options that are not handled by configure: |
366 |
- # --build --host --infodir --localstatedir --sysconfdir |
367 |
- |
368 |
- einfo "Running ./configure ${myconf[@]} - THIS MAY TAKE A WHILE." |
369 |
- ./configure \ |
370 |
- --prefix="${EPREFIX}/usr" \ |
371 |
- --cc="$(tc-getCC)" \ |
372 |
- --cxx="$(tc-getCXX)" \ |
373 |
- --ar="$(tc-getAR)" \ |
374 |
- --optflags="${CFLAGS}" \ |
375 |
- --extra-cflags="${CFLAGS}" \ |
376 |
- --extra-cxxflags="${CXXFLAGS}" \ |
377 |
- --extra-ldflags="${LDFLAGS}" \ |
378 |
- --qmake=$(qt5_get_bindir)/qmake \ |
379 |
- "${myconf[@]}" |
380 |
-} |
381 |
- |
382 |
-src_install() { |
383 |
- emake STRIP="true" INSTALL_ROOT="${D}" install |
384 |
- use python && python_optimize # does all packages by default |
385 |
- dodoc AUTHORS UPGRADING README |
386 |
- readme.gentoo_create_doc |
387 |
- |
388 |
- insinto /usr/share/mythtv/database |
389 |
- doins database/* |
390 |
- |
391 |
- newinitd "${FILESDIR}"/mythbackend.init-r3 mythbackend |
392 |
- newconfd "${FILESDIR}"/mythbackend.conf-r1 mythbackend |
393 |
- if use systemd; then |
394 |
- systemd_newunit "${FILESDIR}"/mythbackend.service-28 mythbackend.service |
395 |
- fi |
396 |
- |
397 |
- dodoc keys.txt |
398 |
- |
399 |
- keepdir /etc/mythtv |
400 |
- fowners -R mythtv /etc/mythtv |
401 |
- keepdir /var/log/mythtv |
402 |
- fowners -R mythtv /var/log/mythtv |
403 |
- |
404 |
- insinto /etc/logrotate.d |
405 |
- newins "${FILESDIR}"/mythtv.logrotate.d-r4 mythtv |
406 |
- |
407 |
- insinto /usr/share/mythtv/contrib |
408 |
- # Ensure we don't install scripts needing the perl bindings (bug #516968) Finding none is OK. |
409 |
- if ! use perl; then |
410 |
- find contrib/ -name '*.pl' -exec rm {} \; |
411 |
- fi |
412 |
- # Ensure we don't install scripts needing the python bindings (bug #516968) Finding none is OK. |
413 |
- if ! use python; then |
414 |
- find contrib/ -name '*.py' -exec rm {} \; |
415 |
- fi |
416 |
- doins -r contrib/* |
417 |
- |
418 |
- # Install our mythfrontend wrapper which is similar to Mythbuntu's |
419 |
- if use wrapper; then |
420 |
- mv "${ED}/usr/bin/mythfrontend" "${ED}/usr/bin/mythfrontend.real" || die "Failed to install mythfrontend.real" |
421 |
- newbin "${FILESDIR}"/mythfrontend.wrapper mythfrontend |
422 |
- newconfd "${FILESDIR}"/mythfrontend.conf mythfrontend |
423 |
- fi |
424 |
- |
425 |
- if use autostart; then |
426 |
- newenvd - 95mythtv <<- _EOF_ |
427 |
- CONFIG_PROTECT=\"$(egethome mythtv)\" |
428 |
- _EOF_ |
429 |
- insinto $(egethome mythtv) |
430 |
- newins "${FILESDIR}"/bash_profile .bash_profile |
431 |
- newins "${FILESDIR}"/xinitrc-r1 .xinitrc |
432 |
- fi |
433 |
- |
434 |
- # Make Python files executable but not files named "__init__.py" |
435 |
- find "${ED}/usr/share/mythtv" -type f -name '*.py' -exec expr \( {} : '.*__init__.py' \) = 0 \; \ |
436 |
- -exec chmod a+x {} \; || die "Failed to make python file $(basename ${file}) executable" |
437 |
- |
438 |
- # Ensure that Python scripts are executed by Python 2 |
439 |
- use python && python_fix_shebang "${ED}/usr/share/mythtv" |
440 |
- |
441 |
- # Make shell & perl scripts executable |
442 |
- find "${ED}" -type f \( -name '*.sh' -o -name '*.pl' \) -exec chmod a+x {} \; || die "Failed to make script executable" |
443 |
-} |
444 |
- |
445 |
-pkg_postinst() { |
446 |
- readme.gentoo_print_elog |
447 |
-} |
448 |
- |
449 |
-pkg_info() { |
450 |
- return |
451 |
-} |
452 |
- |
453 |
-pkg_config() { |
454 |
- if [[ -e "${EROOT}"/usr/bin/mysql ]]; then |
455 |
- "${EROOT}"/usr/bin/mysql -u root -p < "${EROOT}"/usr/share/mythtv/database/mc.sql |
456 |
- fi |
457 |
-} |