Gentoo Archives: gentoo-commits

From: "Doug Klima (cardoe)" <cardoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-tv/mythtv: ChangeLog mythtv-0.21_beta16340.ebuild mythtv-0.21_beta16210.ebuild mythtv-0.21_beta16171.ebuild
Date: Mon, 03 Mar 2008 15:39:02
Message-Id: E1JWCkl-00050g-8J@stork.gentoo.org
1 cardoe 08/03/03 15:38:59
2
3 Modified: ChangeLog
4 Added: mythtv-0.21_beta16340.ebuild
5 Removed: mythtv-0.21_beta16210.ebuild
6 mythtv-0.21_beta16171.ebuild
7 Log:
8 bump to latest beta
9 (Portage version: 2.1.4.4)
10
11 Revision Changes Path
12 1.217 media-tv/mythtv/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.217&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.217&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.216&r2=1.217
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v
21 retrieving revision 1.216
22 retrieving revision 1.217
23 diff -u -r1.216 -r1.217
24 --- ChangeLog 27 Feb 2008 21:11:37 -0000 1.216
25 +++ ChangeLog 3 Mar 2008 15:38:58 -0000 1.217
26 @@ -1,6 +1,12 @@
27 # ChangeLog for media-tv/mythtv
28 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.216 2008/02/27 21:11:37 cardoe Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.217 2008/03/03 15:38:58 cardoe Exp $
31 +
32 +*mythtv-0.21_beta16340 (03 Mar 2008)
33 +
34 + 03 Mar 2008; Doug Klima <cardoe@g.o> -mythtv-0.21_beta16171.ebuild,
35 + -mythtv-0.21_beta16210.ebuild, +mythtv-0.21_beta16340.ebuild:
36 + bump to latest beta
37
38 27 Feb 2008; Doug Klima <cardoe@g.o> mythtv-0.21_beta16309.ebuild:
39 opengl-xvmc explicitly requires 100.x.y series of NVIDIA drivers
40
41
42
43 1.1 media-tv/mythtv/mythtv-0.21_beta16340.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_beta16340.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_beta16340.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mythtv-0.21_beta16340.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.21_beta16340.ebuild,v 1.1 2008/03/03 15:38:58 cardoe Exp $
53
54 EAPI=1
55 inherit flag-o-matic multilib eutils qt3 mythtv toolchain-funcs python
56
57 DESCRIPTION="Homebrew PVR project"
58 SLOT="0"
59 KEYWORDS="~amd64 ~ppc ~x86"
60
61 IUSE_VIDEO_CARDS="video_cards_nvidia video_cards_via"
62 IUSE="alsa altivec autostart dbox2 debug directv dvb dvd hdhomerun ieee1394 iptv \
63 ivtv jack joystick lcd lirc mmx opengl opengl-video opengl-xvmc perl python \
64 vorbis xvmc ${IUSE_VIDEO_CARDS}"
65
66 RDEPEND=">=media-libs/freetype-2.0
67 >=media-sound/lame-3.93.1
68 x11-libs/libX11
69 x11-libs/libXext
70 x11-libs/libXinerama
71 x11-libs/libXv
72 x11-libs/libXrandr
73 x11-libs/libXxf86vm
74 >=x11-libs/qt-3.3:3
75 virtual/mysql
76 virtual/opengl
77 virtual/glu
78 || ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.34 )
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/libdvdnav )
86 ieee1394? ( >=sys-libs/libraw1394-1.2.0
87 >=sys-libs/libavc1394-0.5.0
88 >=media-libs/libiec61883-1.0.0 )
89 ivtv? ( media-tv/ivtv )
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 opengl-xvmc? ( >=x11-drivers/nvidia-drivers-100 )
96 xvmc? ( x11-libs/libXvMC
97 app-admin/eselect-xvmc )"
98
99 DEPEND="${RDEPEND}
100 x11-proto/xineramaproto
101 x11-proto/xf86vidmodeproto
102 x11-apps/xinit"
103
104 PDEPEND="=x11-themes/mythtv-themes-${MY_PV}*"
105
106 S="${WORKDIR}/${PN}-${MY_PV}"
107
108 MYTHTV_GROUPS="video,audio,tty,uucp"
109
110 pkg_setup() {
111
112 if ! built_with_use -a =x11-libs/qt-3* mysql opengl ; then
113 echo
114 eerror "MythTV requires Qt to be built with mysql and opengl use flags enabled."
115 eerror "Please re-emerge =x11-libs/qt-3*, after having the use flags set."
116 echo
117 die "Please fix the above issues, before continuing."
118 fi
119
120 echo
121 einfo "This ebuild now uses a heavily stripped down version of your CFLAGS"
122 einfo "Don't complain because your -momfg-fast-speed CFLAG is being stripped"
123 einfo "Only additional CFLAG issues that will be addressed are for binary"
124 einfo "package building."
125 echo
126
127 if use xvmc && use opengl-xvmc ; then
128 einfo "Enabling USE=opengl-xvmc results in an experimental OpenGL"
129 einfo "& XvMC renderer that only works on NVIDIA GeForce 4,5,6, & 7"
130 einfo "series of cards. It is typically slower then stock XVideo"
131 einfo "support that is the default in MythTV."
132 echo
133 fi
134
135 if use opengl-video ; then
136 einfo "Enabling USE=opengl-video results in an experimental OpenGL"
137 einfo "renderer that is typically slower then the default XVideo"
138 einfo "renderer. Enable at your own risk."
139 echo
140 fi
141
142 enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} || die "Problem adding mythtv user"
143 usermod -a -G ${MYTHTV_GROUPS} mythtv
144 }
145
146 src_unpack() {
147 subversion_src_unpack
148
149 # upstream wants the revision number in their version.cpp
150 # since the subversion.eclass strips out the .svn directory
151 # svnversion in MythTV's build doesn't work
152 sed -e "s:\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`:${MYTHTV_REV}:" \
153 -i "${S}"/version.pro || die "svnversion sed failed"
154
155 # Perl bits need to go into vender_perl and not site_perl
156 sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \
157 -i "${S}"/bindings/perl/perl.pro
158 }
159
160 src_compile() {
161 local myconf="--prefix=/usr
162 --mandir=/usr/share/man
163 --libdir-name=$(get_libdir)"
164 use alsa || myconf="${myconf} --disable-audio-alsa"
165 use altivec || myconf="${myconf} --disable-altivec"
166 use dbox2 || myconf="${myconf} --disable-dbox2"
167 use hdhomerun || myconf="${myconf} --disable-hdhomerun"
168 use ivtv || myconf="${myconf} --disable-ivtv"
169 use jack || myconf="${myconf} --disable-audio-jack"
170 use opengl-video && myconf="${myconf} --enable-opengl-video"
171 use xvmc && ! use video_cards_via ! use opengl-xvmc && myconf="${myconf} --enable-xvmc --xvmc-lib=XvMCW"
172 use xvmc && use video_cards_via && myconf="${myconf} --enable-xvmc --enable-xvmc-pro"
173 use xvmc && use video_cards_nvidia && use opengl-xvmc && myconf="${myconf} --enable-xvmc --enable-xvmc-opengl"
174 myconf="${myconf}
175 $(use_enable dvb)
176 $(use_enable ieee1394 firewire)
177 $(use_enable iptv)
178 $(use_enable joystick joystick-menu)
179 $(use_enable lirc)
180 --disable-audio-arts
181 --disable-directfb
182 --dvb-path=/usr/include
183 --enable-opengl-vsync
184 --enable-xrandr
185 --enable-xv
186 --enable-x11
187 --enable-gpl"
188
189 if use mmx || use amd64; then
190 myconf="${myconf} --enable-mmx"
191 else
192 myconf="${myconf} --disable-mmx"
193 fi
194
195 if use perl && use python; then
196 myconf="${myconf} --with-bindings=perl,python"
197 elif use perl; then
198 myconf="${myconf} --with-bindings=perl"
199 elif use python; then
200 myconf="${myconf} --with-bindings=python"
201 else
202 myconf="${myconf} --without-bindings=perl,python"
203 fi
204
205 if use debug; then
206 myconf="${myconf} --compile-type=debug"
207 else
208 myconf="${myconf} --compile-type=profile"
209 fi
210
211 ## CFLAG cleaning so it compiles
212 MARCH=$(get-flag "march")
213 MTUNE=$(get-flag "mtune")
214 strip-flags
215 filter-flags "-march=*" "-mtune=*" "-mcpu=*"
216 filter-flags "-O" "-O?"
217
218 if [[ -n "${MARCH}" ]]; then
219 myconf="${myconf} --cpu=${MARCH}"
220 fi
221 if [[ -n "${MTUNE}" ]]; then
222 myconf="${myconf} --tune=${MTUNE}"
223 fi
224
225 # myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\""
226 hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc"
227 hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache"
228
229 # let MythTV come up with our CFLAGS. Upstream will support this
230 CFLAGS=""
231 CXXFLAGS=""
232 einfo "Running ./configure ${myconf}"
233 ./configure ${myconf} || die "configure died"
234
235 eqmake3 mythtv.pro -o "Makefile" || die "eqmake3 failed"
236 emake || die "emake failed"
237
238 # firewire support should build the tester
239 if use ieee1394; then
240 cd contrib
241 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester firewire_tester.c \
242 ${LDFLAGS} -liec61883 -lraw1394 || \
243 die "failed to compile firewire_tester"
244
245 cd channel_changers
246 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch 6200ch.c \
247 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
248 die "failed to compile 6200ch"
249 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch sa3250ch.c \
250 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
251 die "failed to compile sa3250ch"
252 fi
253
254 cd "${S}"/contrib/channel_changers
255 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye.c ${LDFLAGS} || \
256 die "failed to compile red_eye"
257 }
258
259 src_install() {
260
261 einstall INSTALL_ROOT="${D}" || die "install failed"
262 dodoc AUTHORS FAQ UPGRADING README
263
264 insinto /usr/share/mythtv/database
265 doins database/*
266
267 exeinto /usr/share/mythtv
268 doexe "${FILESDIR}/mythfilldatabase.cron"
269
270 newinitd "${FILESDIR}"/mythbackend-0.18.2.rc mythbackend
271 newconfd "${FILESDIR}"/mythbackend-0.18.2.conf mythbackend
272
273 dodoc keys.txt docs/*.{txt,pdf}
274 dohtml docs/*.html
275
276 keepdir /etc/mythtv
277 chown -R mythtv "${D}"/etc/mythtv
278 keepdir /var/log/mythtv
279 chown -R mythtv "${D}"/var/log/mythtv
280
281 insinto /etc/logrotate.d
282 newins "${FILESDIR}"/mythtv.logrotate.d mythtv
283
284 insinto /usr/share/mythtv/contrib
285 doins -r contrib/*
286
287 dobin "${FILESDIR}"/runmythfe
288
289 if use autostart; then
290 dodir /etc/env.d/
291 echo 'CONFIG_PROTECT="/home/mythtv/"' > "${D}"/etc/env.d/95mythtv
292
293 insinto /home/mythtv
294 newins "${FILESDIR}"/bash_profile .bash_profile
295 newins "${FILESDIR}"/xinitrc .xinitrc
296 fi
297
298 if use ieee1394; then
299 dobin firewire_tester || die "failed to install firewire_tester"
300 dodoc contrib/firewire_tester-README
301
302 dobin 6200ch || die "failed to install 6200ch"
303 dodoc contrib/channel_changers/6200ch-README
304
305 dobin sa3250ch || die "failed to install sa3250ch"
306 dodoc contrib/channel_changers/sa3250ch-README
307 fi
308
309 dobin red_eye || die "failed to install red_eye"
310 dodoc contrib/channel_changers/red_eye-README
311
312 if use directv; then
313 dobin contrib/channel_changers/d10control.pl || die "failed to install d10control"
314 dodoc contrib/channel_changers/d10control-README
315 fi
316 }
317
318 pkg_preinst() {
319 export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/"
320 }
321
322 pkg_postinst() {
323 python_version
324 python_mod_optimize "${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/MythTV"
325
326 echo
327 elog "Want mythfrontend to start automatically?"
328 elog "Set USE=autostart. Details can be found at:"
329 elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html"
330
331 echo
332 elog "To always have MythBackend running and available run the following:"
333 elog "rc-update add mythbackend default"
334 echo
335 ewarn "Your recordings folder must be owned by the user 'mythtv' now"
336 ewarn "chown -R mythtv /path/to/store"
337
338 if use xvmc; then
339 echo
340 elog "Please set the proper XvMC provider with eselect xvmc"
341 fi
342
343 if use autostart; then
344 echo
345 elog "Please add the following to your /etc/inittab file at the end of"
346 elog "the TERMINALS section"
347 elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8"
348 fi
349
350 }
351
352 pkg_postrm()
353 {
354 python_version
355 python_mod_cleanup "/usr/$(get_libdir)/python${PYVER}/site-packages/MythTV"
356 }
357
358 pkg_info() {
359 "${ROOT}"/usr/bin/mythfrontend --version
360 }
361
362 pkg_config() {
363 echo "Creating mythtv MySQL user and mythconverg database if it does not"
364 echo "already exist. You will be prompted for your MySQL root password."
365 "${ROOT}"/usr/bin/mysql -u root -p < "${ROOT}"/usr/share/mythtv/database/mc.sql
366 }
367
368
369
370 --
371 gentoo-commits@l.g.o mailing list