Gentoo Archives: gentoo-commits

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