Gentoo Archives: gentoo-commits

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