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