Gentoo Archives: gentoo-commits

From: "Doug Goldstein (cardoe)" <cardoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-tv/mythtv: ChangeLog mythtv-0.21_p18116.ebuild
Date: Tue, 12 Aug 2008 03:28:40
Message-Id: E1KSkYm-0002Hy-HY@stork.gentoo.org
1 cardoe 08/08/12 03:28:36
2
3 Modified: ChangeLog
4 Added: mythtv-0.21_p18116.ebuild
5 Log:
6 newer 0.21.x version from upstream. fixes DVD/CD mounting issues. Fixes jobsqueue error. fixes empty database creation
7 (Portage version: 2.2_rc7/cvs/Linux 2.6.25-gentoo-r6 x86_64)
8
9 Revision Changes Path
10 1.249 media-tv/mythtv/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.249&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.249&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.248&r2=1.249
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v
19 retrieving revision 1.248
20 retrieving revision 1.249
21 diff -u -r1.248 -r1.249
22 --- ChangeLog 27 Jul 2008 21:44:36 -0000 1.248
23 +++ ChangeLog 12 Aug 2008 03:28:35 -0000 1.249
24 @@ -1,6 +1,13 @@
25 # ChangeLog for media-tv/mythtv
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.248 2008/07/27 21:44:36 carlo Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.249 2008/08/12 03:28:35 cardoe Exp $
29 +
30 +*mythtv-0.21_p18116 (12 Aug 2008)
31 +
32 + 12 Aug 2008; Doug Goldstein <cardoe@g.o>
33 + +mythtv-0.21_p18116.ebuild:
34 + newer 0.21.x version from upstream. fixes DVD/CD mounting issues. Fixes
35 + jobsqueue error. fixes empty database creation
36
37 27 Jul 2008; Carsten Lohrke <carlo@g.o>
38 mythtv-0.20.2_p15634.ebuild:
39
40
41
42 1.1 media-tv/mythtv/mythtv-0.21_p18116.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_p18116.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_p18116.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mythtv-0.21_p18116.ebuild
48 ===================================================================
49 # Copyright 1999-2008 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.21_p18116.ebuild,v 1.1 2008/08/12 03:28:35 cardoe Exp $
52
53 EAPI=1
54 inherit flag-o-matic multilib eutils qt3 mythtv toolchain-funcs python confutils
55
56 DESCRIPTION="Homebrew PVR project"
57 SLOT="0"
58 KEYWORDS="~amd64 ~ppc ~x86"
59
60 IUSE_VIDEO_CARDS="video_cards_nvidia"
61 IUSE="aac alsa altivec autostart debug directv dvb dvd fftw ieee1394 jack lcd \
62 lirc mmx opengl perl python x264 xvid xvmc ${IUSE_VIDEO_CARDS}"
63
64 RDEPEND=">=media-libs/freetype-2.0
65 >=media-sound/lame-3.93.1
66 x11-libs/libX11
67 x11-libs/libXext
68 x11-libs/libXinerama
69 x11-libs/libXv
70 x11-libs/libXrandr
71 x11-libs/libXxf86vm
72 >=x11-libs/qt-3.3:3
73 virtual/mysql
74 virtual/opengl
75 virtual/glu
76 || ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.43 )
77 aac? ( media-libs/faac
78 media-libs/faad2 )
79 alsa? ( >=media-libs/alsa-lib-0.9 )
80 autostart? ( net-dialup/mingetty
81 x11-wm/evilwm
82 x11-apps/xset )
83 directv? ( virtual/perl-Time-HiRes )
84 dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers )
85 dvd? ( media-libs/libdvdcss )
86 fftw? ( sci-libs/fftw:3.0 )
87 ieee1394? ( >=sys-libs/libraw1394-1.2.0
88 >=sys-libs/libavc1394-0.5.3
89 >=media-libs/libiec61883-1.0.0 )
90 jack? ( media-sound/jack-audio-connection-kit )
91 lcd? ( app-misc/lcdproc )
92 lirc? ( app-misc/lirc )
93 perl? ( dev-perl/DBD-mysql )
94 python? ( dev-python/mysql-python )
95 x264? ( media-libs/x264 )
96 xvid? ( media-libs/xvid )
97 xvmc? ( x11-libs/libXvMC
98 app-admin/eselect-xvmc )"
99
100 DEPEND="${RDEPEND}
101 x11-proto/xineramaproto
102 x11-proto/xf86vidmodeproto
103 x11-apps/xinit"
104
105 PDEPEND="=x11-themes/mythtv-themes-${MY_PV}*"
106
107 S="${WORKDIR}/${PN}-${MY_PV}"
108
109 MYTHTV_GROUPS="video,audio,tty,uucp"
110
111 pkg_setup() {
112
113 confutils_require_built_with_all =x11-libs/qt-3* mysql opengl
114
115 elog "This ebuild now uses a heavily stripped down version of your CFLAGS"
116
117 if use xvmc && use video_cards_nvidia; then
118 elog
119 elog "For NVIDIA based cards, the XvMC renderer only works on"
120 elog "the NVIDIA 4, 5, 6 & 7 series cards."
121 fi
122
123 enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} \
124 || die "Problem adding mythtv user"
125 usermod -a -G ${MYTHTV_GROUPS} mythtv
126 }
127
128 src_unpack() {
129 subversion_src_unpack
130
131 # upstream wants the revision number in their version.cpp
132 # since the subversion.eclass strips out the .svn directory
133 # svnversion in MythTV's build doesn't work
134 sed -e "s:\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`:${MYTHTV_REV}:" \
135 -i "${S}"/version.pro || die "svnversion sed failed"
136
137 # Perl bits need to go into vender_perl and not site_perl
138 sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \
139 -i "${S}"/bindings/perl/perl.pro
140 }
141
142 src_compile() {
143 local myconf="--prefix=/usr
144 --mandir=/usr/share/man
145 --libdir-name=$(get_libdir)"
146 use aac && myconf="${myconf} --enable-libfaad --enable-libfaac"
147 use alsa || myconf="${myconf} --disable-audio-alsa"
148 use altivec || myconf="${myconf} --disable-altivec"
149 use fftw && myconf="${myconf} --enable-libfftw3"
150 use jack || myconf="${myconf} --disable-audio-jack"
151 use x264 && myconf="${myconf} --enable-libx264"
152 use xvid && myconf="${myconf} --enable-libxvid"
153 # let's give this a whirl from bug #220857
154 use xvmc && myconf="${myconf} --enable-xvmc --enable-xvmcw \
155 --disable-xvmc-vld"
156 #use xvmc && ! use video_cards_via && \
157 # myconf="${myconf} --enable-xvmc"
158 #use xvmc && use video_cards_via && myconf="${myconf} --enable-xvmc \
159 # --enable-xvmc-pro --disable-xvmcw"
160 # nvidia-drivers-71 don't support GLX 1.4
161 #use video_cards_nvidia && has_version =x11-drivers/nvidia-drivers-71* \
162 # && myconf="${myconf} --enable-glx-procaddrarb"
163 # according to the Ubuntu guys, this works better always on
164 myconf="${myconf} --enable-glx-procaddrarb"
165
166 myconf="${myconf}
167 $(use_enable dvb)
168 $(use_enable ieee1394 firewire)
169 $(use_enable lirc)
170 --disable-audio-arts
171 --disable-directfb
172 --dvb-path=/usr/include
173 --enable-opengl-vsync
174 --enable-libmp3lame
175 --enable-xrandr
176 --enable-xv
177 --enable-x11"
178
179 if use mmx || use amd64; then
180 myconf="${myconf} --enable-mmx"
181 else
182 myconf="${myconf} --disable-mmx"
183 fi
184
185 if use perl && use python; then
186 myconf="${myconf} --with-bindings=perl,python"
187 elif use perl; then
188 myconf="${myconf} --with-bindings=perl"
189 elif use python; then
190 myconf="${myconf} --with-bindings=python"
191 else
192 myconf="${myconf} --without-bindings=perl,python"
193 fi
194
195 if use debug; then
196 myconf="${myconf} --compile-type=debug"
197 else
198 myconf="${myconf} --compile-type=profile"
199 fi
200
201 ## CFLAG cleaning so it compiles
202 MARCH=$(get-flag "march")
203 MTUNE=$(get-flag "mtune")
204 strip-flags
205 filter-flags "-march=*" "-mtune=*" "-mcpu=*"
206 filter-flags "-O" "-O?"
207
208 if [[ -n "${MARCH}" ]]; then
209 myconf="${myconf} --cpu=${MARCH}"
210 fi
211 if [[ -n "${MTUNE}" ]]; then
212 myconf="${myconf} --tune=${MTUNE}"
213 fi
214
215 # myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\""
216 hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc"
217 hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache"
218
219 # let MythTV come up with our CFLAGS. Upstream will support this
220 CFLAGS=""
221 CXXFLAGS=""
222 einfo "Running ./configure ${myconf}"
223 ./configure ${myconf} || die "configure died"
224
225 eqmake3 mythtv.pro -o "Makefile" || die "eqmake3 failed"
226 emake || die "emake failed"
227
228 # firewire support should build the tester
229 if use ieee1394; then
230 cd contrib
231 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester firewire_tester.c \
232 ${LDFLAGS} -liec61883 -lraw1394 || \
233 die "failed to compile firewire_tester"
234
235 cd channel_changers
236 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch 6200ch.c \
237 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
238 die "failed to compile 6200ch"
239 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch sa3250ch.c \
240 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
241 die "failed to compile sa3250ch"
242 fi
243
244 cd "${S}"/contrib/channel_changers
245 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye.c ${LDFLAGS} || \
246 die "failed to compile red_eye"
247 }
248
249 src_install() {
250
251 einstall INSTALL_ROOT="${D}" || die "install failed"
252 dodoc AUTHORS FAQ UPGRADING README
253
254 insinto /usr/share/mythtv/database
255 doins database/*
256
257 exeinto /usr/share/mythtv
258 doexe "${FILESDIR}/mythfilldatabase.cron"
259
260 newinitd "${FILESDIR}"/mythbackend-0.18.2.rc mythbackend
261 newconfd "${FILESDIR}"/mythbackend-0.18.2.conf mythbackend
262
263 dodoc keys.txt docs/*.{txt,pdf}
264 dohtml docs/*.html
265
266 keepdir /etc/mythtv
267 chown -R mythtv "${D}"/etc/mythtv
268 keepdir /var/log/mythtv
269 chown -R mythtv "${D}"/var/log/mythtv
270
271 insinto /etc/logrotate.d
272 newins "${FILESDIR}"/mythtv.logrotate.d mythtv
273
274 insinto /usr/share/mythtv/contrib
275 doins -r contrib/*
276
277 dobin "${FILESDIR}"/runmythfe
278
279 if use autostart; then
280 dodir /etc/env.d/
281 echo 'CONFIG_PROTECT="/home/mythtv/"' > "${D}"/etc/env.d/95mythtv
282
283 insinto /home/mythtv
284 newins "${FILESDIR}"/bash_profile .bash_profile
285 newins "${FILESDIR}"/xinitrc .xinitrc
286 fi
287
288 if use ieee1394; then
289 dobin firewire_tester || die "failed to install firewire_tester"
290 dodoc contrib/firewire_tester-README
291
292 dobin 6200ch || die "failed to install 6200ch"
293 dodoc contrib/channel_changers/6200ch-README
294
295 dobin sa3250ch || die "failed to install sa3250ch"
296 dodoc contrib/channel_changers/sa3250ch-README
297 fi
298
299 dobin red_eye || die "failed to install red_eye"
300 dodoc contrib/channel_changers/red_eye-README
301
302 if use directv; then
303 dobin contrib/channel_changers/d10control.pl || die "failed to install d10control"
304 dodoc contrib/channel_changers/d10control-README
305 fi
306 }
307
308 pkg_preinst() {
309 export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/"
310 }
311
312 pkg_postinst() {
313 python_version
314 python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/MythTV
315
316 echo
317 elog "Want mythfrontend to start automatically?"
318 elog "Set USE=autostart. Details can be found at:"
319 elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html"
320
321 elog
322 elog "To always have MythBackend running and available run the following:"
323 elog "rc-update add mythbackend default"
324 elog
325 ewarn "Your recordings folder must be owned by the user 'mythtv' now"
326 ewarn "chown -R mythtv /path/to/store"
327
328 if use xvmc && [[ ! -s "${ROOT}/etc/X11/XvMCConfig" ]]; then
329 ewarn
330 ewarn "No XvMC implementation has been selected yet"
331 ewarn "Use 'eselect xvmc list' for a list of available choices"
332 ewarn "Then use 'eselect xvmc set <choice>' to choose"
333 ewarn "'eselect xvmc set nvidia' for example"
334 fi
335
336 if use autostart; then
337 elog
338 elog "Please add the following to your /etc/inittab file at the end of"
339 elog "the TERMINALS section"
340 elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8"
341 fi
342
343 }
344
345 pkg_postrm()
346 {
347 python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/MythTV
348 }
349
350 pkg_info() {
351 "${ROOT}"/usr/bin/mythfrontend --version
352 }
353
354 pkg_config() {
355 echo "Creating mythtv MySQL user and mythconverg database if it does not"
356 echo "already exist. You will be prompted for your MySQL root password."
357 "${ROOT}"/usr/bin/mysql -u root -p < "${ROOT}"/usr/share/mythtv/database/mc.sql
358 }