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